Sponsored Content
Full Discussion: Compiling problem - AIX 7.2
Operating Systems AIX Compiling problem - AIX 7.2 Post 303018628 by bakunin on Tuesday 12th of June 2018 10:10:00 AM
Old 06-12-2018
I can only second what rbatte1 already said:

- which package do you try to compile?
- which compiler do you use?
- what EXACTLY are the diagnostic messages (sorry, but to find the culprit from "sometimes something doesn't work" is nigh impossible)?

Quote:
When we try to copy file "/usr/bin/sh" from AIX6.1 to replace it on AIX7.2, we can compile sucessfully.
IMHO it is a miracle that this would run at all because of different shared library versions involved. In any case /usr/bin/sh in AIX since (IIRC) v 4.1 has always been a Korn shell 88 and the ksh version hasn't changed since 5.3 at all. So, apart from version problems with shared libraries as described above, you should get the same results with both shell versions when running scripts.

I hope this helps.

bakunin
These 2 Users Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. AIX

compiling with aix 5.1

Hello, i will compile php and apache on an aix 5.1. Configure works fine. When i start the make the following error appears: /usr/include/sys/context.h:155: parse error before "sigset64_t" /usr/include/sys/context.h:158: parse error before '}' token make: 1254-004 The error code from the... (1 Reply)
Discussion started by: n-may
1 Replies

2. Programming

compiling thread safe c on aix

Hi, I'm trying to compile a Perl module for AIX 5.3. Now, Perl by default wants to use cc_r as compiler but I only have gcc installed on this system. How can I get gcc to be thread safe? Or can I use gcc without any options and expect it to behave the same as cc_r? (0 Replies)
Discussion started by: rein
0 Replies

3. UNIX and Linux Applications

Compiling samba 3.0.27a under AIX

I try to compile Samba 3.0.27a under AIX with LDAP and KErberos. The configure work fine: CFLAGS: -I/opt/pware/include -I/opt/pware/lib/ -I/opt/pware/open_ldap_exec/lib/ -I/software/samba/oldap/usr/lib -I/software/samba/oldap/usr/include ./configure --prefix=/opt/pware/samba/3.0.27a... (1 Reply)
Discussion started by: BenediktS
1 Replies

4. AIX

Compiling samba 3.0.27a under AIX

Compiling samba 3.0.27a under AIX I try to compile Samba 3.0.27a under AIX with LDAP and KErberos. The configure work fine: CFLAGS: -I/opt/pware/include -I/opt/pware/lib/ -I/opt/pware/open_ldap_exec/lib/ -I/software/samba/oldap/usr/lib -I/software/samba/oldap/usr/include ./configure... (2 Replies)
Discussion started by: BenediktS
2 Replies

5. HP-UX

Problem in HP-UX compiling

Hi When im trying to do make --version and make --help in HP-UX it throws error Make: Unknown flag argument -. Stop. a soft link is present in this directory /usr/bin/make and hard link is in /usr/ccs/bin/make what could be the reason can any1 ..please tell me how to solve this... (1 Reply)
Discussion started by: vasanthan
1 Replies

6. AIX

Purify and AIX compiling problems.

Hi, i'm trying to work with a trial version of PurifyPlus 7 with fixpack 10 from Rational that needs to run over an AIX 5.3 platform, 64-bit. I had success on compiling and running the hello_world programs and even a hash test program i found over the net, but purify can achieve the same with the... (0 Replies)
Discussion started by: chrispav
0 Replies

7. AIX

Compiling samba from source in AIX 5.3

Hello all. I have never had any issues like this when compiling applications from source. When I try to compile samba-3.5.0pre2, configure runs with no issues, but when the time comes to make, this happens: make: make 1254-025 There must be an existing description file or specify a target. ... (4 Replies)
Discussion started by: raidzero
4 Replies

8. UNIX for Advanced & Expert Users

Compiling Samba from Source on AIX, Active Directory, LDAP, Kerberos

Hello, I asked this question in the AIX subforum but never received an answer, probably because the AIX forum is not that heavily trafficked. Anyway, here it is.. I have never had any issues like this when compiling applications from source. When I try to compile samba-3.5.0pre2, configure runs... (9 Replies)
Discussion started by: raidzero
9 Replies

9. AIX

AIX server is compiling executables to 32-bits by default, how to change it?

Hi everyone: I have a server running AIX 6.1, I've upgraded the TL from 6100-0100 to 6100-04-02-1007, however since then all the executables I compile are 32-bit mode by default, how can I solve this? I'm using VisualAge C/C++ 10.0 thanks in advance (4 Replies)
Discussion started by: edgarvm
4 Replies

10. UNIX for Advanced & Expert Users

HELP - compiling error for vsftpd on AIX 6.1

I'm getting error messages when trying to compile vsftpd version 3.0.2 on AIX 6.1 (trying to compile VSFTPD with SSL): SRVR#:/opt/freeware/src/packages/SOURCES/vsftpd-3.0.2> make gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o... (2 Replies)
Discussion started by: ace1
2 Replies
dpkg-divert(8)							  dpkg utilities						    dpkg-divert(8)

NAME
dpkg-divert - override a package's version of a file SYNOPSIS
dpkg-divert [option...] command DESCRIPTION
dpkg-divert is the utility used to set up and update the list of diversions. File diversions are a way of forcing dpkg(1) not to install a file into its location, but to a diverted location. Diversions can be used through the Debian package scripts to move a file away when it causes a conflict. System administrators can also use it to override some package's configuration file, or whenever some files (which aren't marked as 'conffiles') need to be preserved by dpkg, when installing a newer version of a package which contains those files. COMMANDS
[--add] file Add a diversion for file. --remove file Remove a diversion for file. --list glob-pattern List diversions matching glob-pattern. --listpackage file Print the name of the package that diverts file. Prints LOCAL if file is locally diverted and nothing if file is not diverted. --truename file Print the real name for a diverted file. OPTIONS
--admindir directory Set the dpkg data directory to directory (default: /var/lib/dpkg). --divert divert-to divert-to is the location where the versions of file, as provided by other packages, will be diverted. --local Specifies that all packages' versions of this file are diverted. This means, that there are no exceptions, and whatever package is installed, the file is diverted. This can be used by an admin to install a locally modified version. --package package package is the name of a package whose copy of file will not be diverted. i.e. file will be diverted for all packages except pack- age. --quiet Quiet mode, i.e. no verbose output. --rename Actually move the file aside (or back). dpkg-divert will abort operation in case the destination file already exists. --test Test mode, i.e. don't actually perform any changes, just demonstrate. -?, --help Show the usage message and exit. --version Show the version and exit. NOTES
When adding, default is --local and --divert original.distrib. When removing, --package or --local and --divert must match if specified. Directories can't be diverted with dpkg-divert. Care should be taken when diverting shared libraries, ldconfig(8) creates a symbolic link based on the DT_SONAME field embedded in the library. Because ldconfig doesn't honour diverts (only dpkg does), the symlink may end up pointing at the diverted library, if a diverted library has the same SONAME as the undiverted one. EXAMPLES
To divert all copies of a /usr/bin/example to /usr/bin/example.foo, i.e. directs all packages providing /usr/bin/example to install it as /usr/bin/example.foo, performing the rename if required: dpkg-divert --divert /usr/bin/example.foo --rename /usr/bin/example To remove that diversion: dpkg-divert --rename --remove /usr/bin/example To divert any package trying to install /usr/bin/example to /usr/bin/example.foo, except your own wibble package: dpkg-divert --package wibble --divert /usr/bin/example.foo --rename /usr/bin/example To remove that diversion: dpkg-divert --package wibble --rename --remove /usr/bin/example ENVIRONMENT
DPKG_ADMINDIR If set and the --admindir option has not been specified, it will be used as the dpkg data directory. DPKG_MAINTSCRIPT_PACKAGE If set and the --local and --package options have not been specified, dpkg-divert will use it as the package name. FILES
/var/lib/dpkg/diversions File which contains the current list of diversions of the system. It is located in the dpkg administration directory, along with other files important to dpkg, such as status or available. Note: dpkg-divert preserves the old copy of this file, with extension -old, before replacing it with the new one. SEE ALSO
dpkg(1). Debian Project 2011-08-14 dpkg-divert(8)
All times are GMT -4. The time now is 06:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy