[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Aurelien Chanudet
Date: Mon, 2 Dec 2002 19:44:40 +0100


Steven G. Johnson, whom you probably know, suggested I should report the following problem.

I'm running Mac OS X 10.2 and using the following versions of gcc :

Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1161, based on gcc version 3.1 20020420 (prerelease)

and g77 :

Reading specs from /sw/lib/gcc-lib/powerpc-apple-darwin6.1/3.1/specs
Configured with: ../gcc3/configure --prefix=/sw --enable-languages=f77 --infodir=${prefix}/share/info
Thread model: single
Apple Computer, Inc. GCC version 1151, based on gcc version 3.1 20020420 (prerelease)

On my system, autoconf determines the following FLIBS :

ac_cv_flibs=' -lcrt1.o -lcrtbegin.o -L/sw/lib/gcc-lib/powerpc-apple-darwin6.1/3.1 -L/sw/lib/gcc-lib/powerpc-apple-darwin6.1/3.1/../../.. -lm -lfrtbegin -lg2c -lSystem'

Unfortunately, whatever subsequent compilation such as :

configure:2725: cc -o conftest -g -O2 -Wall -W -Wbad-function-cast -Wcast-qual -Wpointer-arith -Wcast-align -pedantic conftest.c -lm -lcrt1.o -lcrtbegin.o -L/sw/lib/gcc-lib/powerpc-apple-darwin6.1/3.1 -L/sw/lib/gcc-lib/powerpc-apple-darwin6.1/3.1/../../.. -lm -lfrtbegin -lg2c -lSystem >&5

fails because of multiple definitions. The multiply defined symbols indeed belong to several libraries, which confuses the compiler (however, I'm not sure the problem isn't due to Apple's modifications since the faulty symbols are mostly MacOS X specific). In order to fix compilation, I had to bypass the test performed by AC_F77_LIBRARY_LDFLAGS by setting FLIBS, removing crt1.o and crtbegin.o.

See below the exact log file.


Attachment: config.log
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]