logo       

Re: clock_gettime.lo Error: msg#00014

file-systems.sfs.general

Subject: Re: clock_gettime.lo Error

Ok, there are a couple things causing your pain.

First, you shouldn't run ./setup if you download the SFS tarball. The
./setup script is meant for compiling SFS from CVS. It should have
its execute bit disabled in the tarball. By running setup, you are
likely overwriting some of the libtool-related files already included
in the SFS tarball. This could cause a version mismatch.

[SFS developers: Perhaps the setup script shouldn't appear in the tarball?]

Second, there appear to be some problems with gcc3.2 after you fix the
first problem. gcc gets confused about a search order. I ran into
this:

gmake all-recursive
gmake[1]: Entering directory `/home/fubob/sfs-0.7.2'
sed -f ./autoconf.sed config.h > autoconf.h~
cmp autoconf.h~ autoconf.h || mv -f autoconf.h~ autoconf.h
cmp: autoconf.h: No such file or directory
Making all in async
gmake[2]: Entering directory `/home/fubob/sfs-0.7.2/async'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/local/include -DSLEEPYCAT -I.. -I../async -I../arpc -I../crypt
-I../sfsmisc -I../sfsrodb -I../adb -I../svc -I../svc
-DEXECDIR=\"/usr/local/lib/sfs-0.7.2\" -DETCDIR=\"/etc/sfs\"
-DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\" -DSFSDIR=\"/var/sfs\"
-g -O2 -Wall -Werror -c clock_gettime.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -DSLEEPYCAT -I..
-I../async -I../arpc -I../crypt -I../sfsmisc -I../sfsrodb -I../adb -I../svc
-I../svc -DEXECDIR=\"/usr/local/lib/sfs-0.7.2\" -DETCDIR=\"/etc/sfs\"
-DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\" -DSFSDIR=\"/var/sfs\"
-g -O2 -Wall -Werror -c
clock_gettime.c -o clock_gettime.o
cc1: changing search order for system directory "/usr/local/include"
cc1: as it has already been specified as a non-system directory
gmake[2]: *** [clock_gettime.lo] Error 1
gmake[2]: Leaving directory `/home/fubob/sfs-0.7.2/async'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/fubob/sfs-0.7.2'
gmake: *** [all-recursive-am] Error 2

I can work around this apparent GCC problem with:

env WFLAGS=-Wall ./configure --with-dmalloc --with-db3

This disables the -Werror flag, which we normally use to make compiler
warnings appear as errors.

The compilation succeeds without specicial configuration in RH7.3 when
using either gcc 2.96 or gcc3.0.4 though.

[SFS developers: perhaps we need to work around this gcc3.2 warning
like the perl5 developers do below?]

http://gcc.gnu.org/ml/gcc-bugs/2002-10/msg01053.html
http://archive.develooper.com/perl5-porters@xxxxxxxx/msg88728.html

--------
Kevin E. Fu (fubob@xxxxxxx)

>Date: Thu, 06 Mar 2003 20:49:39 -0600
>From: Ben Podoll <benjamin.podoll@xxxxxxxxxxxxx>
>Subject: RE: clock_gettime.lo Error
>In-reply-to: <200303060431.XAA28284@xxxxxxxxxxxxxxx>
>To: "'Kevin Fu'" <fubob@xxxxxxx>
>Sorry to bother you one more time but here is what I did:
>
>I got sfs-0.7.2.tar.gz
>I extracted that so I have the dir sfs-0.7.2
>I ran ./setup and that worked
>I ran ./configure (with no params) and that worked
>I then su into root and ran gmake (it took a long time but no problems).
>
>Now when I try to configure chord I get a message that says I didn't
>build sfs with dmalloc.
>
>So I went back and...
>
>I built sfs with the "--with-dmalloc --with-db3" arguments and it
>worked.
>I then ran gmake and it failed with this message:
>
>[root@Linux1 sfs-0.7.2]# gmake
>sed -f ./autoconf.sed config.h > autoconf.h~
>cmp autoconf.h~ autoconf.h || mv -f autoconf.h~ autoconf.h
>cmp: autoconf.h: No such file or directory
>gmake all-recursive
>gmake[1]: Entering directory
>`/home/podollb/Dis_OperatingSystems/sfs-0.7.2'
>Making all in async
>gmake[2]: Entering directory
>`/home/podollb/Dis_OperatingSystems/sfs-0.7.2/async'
>source='clock_gettime.c' object='clock_gettime.lo' libtool=yes \
>depfile='.deps/clock_gettime.Plo' tmpdepfile='.deps/clock_gettime.TPlo'
>\
>depmode=gcc3 /bin/sh ../depcomp \
>/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
>-I/usr/local/include -DSLEEPYCAT -I.. -I../async -I../arpc -I../crypt
>-I../sfsmisc -I../sfsrodb -I../adb -I../svc -I../svc
>-DEXECDIR=\"/usr/local/lib/sfs-0.7.2\" -DETCDIR=\"/etc/sfs\"
>-DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\"
>-DSFSDIR=\"/var/sfs\" -g -O2 -Wall -Werror -c -o clock_gettime.lo
>`test -f 'clock_gettime.c' || echo './'`clock_gettime.c
>libtool: ltconfig version `' does not match ltmain.sh version `1.3.5'
>Fatal configuration error. See the libtool docs for more information.
>gmake[2]: *** [clock_gettime.lo] Error 1
>gmake[2]: Leaving directory
>`/home/podollb/Dis_OperatingSystems/sfs-0.7.2/async'
>gmake[1]: *** [all-recursive] Error 1
>gmake[1]: Leaving directory
>`/home/podollb/Dis_OperatingSystems/sfs-0.7.2'
>gmake: *** [all] Error 2
>[root@Linux1 sfs-0.7.2]#
>
>Any ideas on this?
>
>Thanks,
>Ben
>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise