I have a rather strange compile problem on my Macosx 10,1,1 (Darwin
1,5,1) box : lftp-2.4.8 does compile on an UFS partition (wich is case
sensitive) however it doesn't compile (from the same archive, same
compile options) on an HFS+ partition (wich is only case conservative).

The binary itself works well ( as usual :) ) once compiled..

gcc :

Apple Computer, Inc. version gcc-934.3, based on gcc version 2.95.2
19991024 (release)

./configure --prefix=/sw --mandir=/sw/share/man --infodir=/sw/share/info


Here are the 2 outputs :

1/ Errors & failure on the HFS+ partition :


     cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include   -I/sw/include
   -O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions
-fno-rtti -fno-implement-inlines -Winline -c -o complete.o `test -f
complete.cc || echo './'`complete.cc
In file included from SMTask.h:25,
                   from FileAccess.h:26,
                   from complete.cc:35:
TimeDate.h: In method `TimeDiff::TimeDiff(const Time &, const Time &)':
TimeDate.h:109: warning: can't inline call to `void
TimeDiff::SetDiff(const Time &, const Time &)'
TimeDate.h:105: warning: called from here
source='lftp_rl.c' object='lftp_rl.o' libtool=no \
depfile='.deps/lftp_rl.Po' tmpdepfile='.deps/lftp_rl.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include   -I/sw/include
-O2 -Wall -c `test -f lftp_rl.c || echo './'`lftp_rl.c
/bin/sh ../libtool --silent --mode=link cc  -O2 -Wall -Wwrite-strings
-Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines
-Winline  -L/sw/lib -o lftp -export-dynamic  lftp.o complete.o lftp_rl.o
libjobs.a libtasks.a -lreadline  ../lib/liblib.a -lintl -liconv -lssl
-lcrypto -ldl
/usr/bin/ld: multiple definitions of symbol _getopt
/usr/lib/libSystem.dylib(getopt.o) definition of _getopt
../lib/liblib.a(getopt.o) definition of _getopt in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _opterr
/usr/lib/libSystem.dylib(getopt.o) definition of _opterr
../lib/liblib.a(getopt.o) definition of _opterr in section (__DATA,__data)
/usr/bin/ld: multiple definitions of symbol _optind
/usr/lib/libSystem.dylib(getopt.o) definition of _optind
../lib/liblib.a(getopt.o) definition of _optind in section (__DATA,__data)
/usr/bin/ld: multiple definitions of symbol _optopt
/usr/lib/libSystem.dylib(getopt.o) definition of _optopt
../lib/liblib.a(getopt.o) definition of _optopt in section (__DATA,__data)
/usr/bin/ld: warning multiple definitions of symbol _locale_charset
/sw/lib/libintl.dylib(localcharset.lo) definition of _locale_charset
/sw/lib/libiconv.dylib(localcharset.lo) definition of _locale_charset
make[1]: *** [lftp] Error 1
make[1]: Leaving directory `/sw/src/lftp-2.4.8-1/lftp-2.4.8/src'
make: *** [all-recursive] Error 1
### (./configure failed, exit code 2
Failed: compiling lftp-2.4.8-1 failed
--------------------------------------------------------------

2/ Build success on the UFS partition :

cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include     -O2 -Wall
-Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti
-fno-implement-inlines -Winline -c -o complete.o `test -f complete.cc ||
echo './'`complete.cc
In file included from SMTask.h:25,
                   from FileAccess.h:26,
                   from complete.cc:35:
TimeDate.h: In method `TimeDiff::TimeDiff(const Time &, const Time &)':
TimeDate.h:109: warning: can't inline call to `void
TimeDiff::SetDiff(const Time &, const Time &)'
TimeDate.h:105: warning: called from here
source='lftp_rl.c' object='lftp_rl.o' libtool=no \
depfile='.deps/lftp_rl.Po' tmpdepfile='.deps/lftp_rl.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include     -O2 -Wall -c
`test -f lftp_rl.c || echo './'`lftp_rl.c
/bin/sh ../libtool --silent --mode=link cc  -O2 -Wall -Wwrite-strings
-Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines
-Winline   -o lftp -export-dynamic  lftp.o complete.o lftp_rl.o
libjobs.a libtasks.a ../readline-4.2/libreadline.a  ../lib/liblib.a
../intl/libintl.a
/usr/bin/ld: warning unused multiple definitions of symbol _optarg
"link editor" definition of _optarg in section (__DATA,__common)
/usr/lib/libSystem.dylib(getopt.o) unused definition of _optarg
/usr/bin/ld: warning unused multiple definitions of symbol _opterr
../lib/liblib.a(getopt.o) definition of _opterr in section (__DATA,__data)
/usr/lib/libSystem.dylib(getopt.o) unused definition of _opterr
/usr/bin/ld: warning unused multiple definitions of symbol _optind
../lib/liblib.a(getopt.o) definition of _optind in section (__DATA,__data)
/usr/lib/libSystem.dylib(getopt.o) unused definition of _optind
/usr/bin/ld: warning unused multiple definitions of symbol _getopt
../lib/liblib.a(getopt.o) definition of _getopt in section (__TEXT,__text)
/usr/lib/libSystem.dylib(getopt.o) unused definition of _getopt
/usr/bin/ld: warning unused multiple definitions of symbol _optopt
../lib/liblib.a(getopt.o) definition of _optopt in section (__DATA,__data)
/usr/lib/libSystem.dylib(getopt.o) unused definition of _optopt
make[1]: Leaving directory `/Volumes/Masse/src/lftp-2.4.8/src'
Making all in po
make[1]: Entering directory `/Volumes/Masse/src/lftp-2.4.8/po'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/Volumes/Masse/src/lftp-2.4.8/po'
Making all in m4
make[1]: Entering directory `/Volumes/Masse/src/lftp-2.4.8/m4'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/Volumes/Masse/src/lftp-2.4.8/m4'
make[1]: Entering directory `/Volumes/Masse/src/lftp-2.4.8'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/Volumes/Masse/src/lftp-2.4.8'
--------------------------------------------------------------

I'd be delighted if someone with an idea would spare it :)

Jean-Baptiste

���


Reply via email to