Hi,

I've just noticed something I don't really understand. Perhaps someone can explain what is happening.

I had some problems trying to compile lftp and now bind.

Both gave me errors:

checking for C compiler default output file name... configure: error: C 
compiler cannot create executables

gcc had been working before.

So I wrote myself a stupid c program to test the compiler:

int main () {
        int a;
        a = 3;
        a++;
}

And see it gives me this error message.

[EMAIL PROTECTED]:/openpkg/RPM/PKG>/openpkg/bin/cc a.c
exec(): 0509-036 Cannot load program 
/data/openpkg/bin/../libexec/gcc/gcc/powerpc-ibm-aix5.1.0.0/3.4.4/cc1 because 
of the following errors:
        0509-150   Dependent module 
/openpkg/lib/gcc/powerpc-ibm-aix5.1.0.0/3.4.4/../../../libiconv.a(shr4.o) could 
not be loaded.
        0509-152   Member shr4.o is not found in archive

That's strange I thought I've only just compiled and installed libiconv.

[EMAIL PROTECTED]:/openpkg/RPM/PKG>openpkg rpm -qa
fsl-1.6.0-2.4.0
db-4.3.28.0-2.4.0
procmail-3.22-2.4.0
perl-stats-5.8.7-2.4.0
perl-time-5.8.7-2.4.0
screen-4.0.2-2.4.0
make-3.80-2.4.0
openpkg-tools-0.8.37-2.4.0
openssl-0.9.7g-2.4.0
rsync-2.6.5-2.4.0
m4-1.4.3-2.4.0
ncurses-5.4.20050611-2.4.0
libiconv-1.9.2-2.4.0
gpg-pubkey-63c4cb9f-3c591eda
perl-5.8.7-2.4.0
pcre-6.0-2.4.0
less-385-2.4.0
perl-openpkg-5.8.7-2.4.0
perl-ds-5.8.7-2.4.0
postfix-2.2.3-2.4.0
openpkg-20050727-20050727
gcc-3.4.4-20050707
zlib-1.2.2-2.4.0
gdbm-1.8.3-2.4.0
sharutils-4.3.80-2.4.0
getopt-20030307-2.4.0
ncftp-3.1.9-2.4.0
readline-5.0.5-2.4.0

[EMAIL PROTECTED]:/openpkg/RPM/PKG>openpkg rpm -V gcc
[EMAIL PROTECTED]:/openpkg/RPM/PKG>openpkg rpm -q libiconv
libiconv-1.9.2-2.4.0
[EMAIL PROTECTED]:/openpkg/RPM/PKG>openpkg rpm --erase libiconv
error: failed to open /etc/mtab: No such file or directory
[EMAIL PROTECTED]:/openpkg/RPM/PKG>/openpkg/bin/cc a.c
[EMAIL PROTECTED]:/openpkg/RPM/PKG>

So removing libiconv makes gcc "work". I am now compiling bind9 again it it looks like it will complete.

Can someone explain why installing libiconv makes gcc fail, and does this mean that the AIX port needs to be built in a specific order, perhaps with specific options in order to avoid problems like this happening again?

Thanks to anyone who can shed any light on this because I'm really confused.

Regards,

Simon


______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to