Number: 1019
Title: Build problem on x86 with gcc version 4.0.2
Submitter: Benjamin Roy
Date: Mon Sep 11 06:03:22 2006
Subsys: Build/Installation
Version: 2.8
System: x86-Linux-Linux version 2.6.15-1.1833_FC4
Severity: major
Problem:
Configure with: configure --prefix=/udd/broy/local no issue with configure

when make, have an issue:


gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/ast -I/udd/broy/local/include -Dvt_threaded=0 -g -O2 -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -MT sftable.lo -MD -MP -MF .deps/sftable.Tpo -c sftable.c  -fPIC -DPIC -o .libs/sftable.o
sftable.c: In function 'sffmtpos':
sftable.c:265: error: 'ptrdiff_t' undeclared (first use in this function)
sftable.c:265: error: (Each undeclared identifier is reported only once
sftable.c:265: error: for each function it appears in.)
sftable.c:337: warning: implicit declaration of function 'memcpy'
sftable.c:337: warning: incompatible implicit declaration of built-in function 'memcpy'
sftable.c:354: warning: implicit declaration of function 'strlen'
sftable.c:354: warning: incompatible implicit declaration of built-in function 'strlen'
sftable.c:359: warning: incompatible implicit declaration of built-in function 'memcpy'
sftable.c:405: warning: incompatible implicit declaration of built-in function 'memcpy'
make[4]: *** [sftable.lo] Error 1
make[4]: Leaving directory `/udd/broy/Desktop/graphviz-2.8/lib/sfio'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/udd/broy/Desktop/graphviz-2.8/lib/sfio'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/udd/broy/Desktop/graphviz-2.8/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/udd/broy/Desktop/graphviz-2.8'
make: *** [all] Error 2

Same type of issue with make install: gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/ast -I/udd/broy/local/include - Dvt_threaded=0 -g -O2 -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith - Wall -ffast-math -MT sftable.lo -MD -MP -MF .deps/sftable.Tpo -c sftable.c -fPI C -DPIC -o .libs/sftable.o sftable.c: In function 'sffmtpos': sftable.c:265: error: 'ptrdiff_t' undeclared (first use in this function) sftable.c:265: error: (Each undeclared identifier is reported only once sftable.c:265: error: for each function it appears in.) sftable.c:337: warning: implicit declaration of function 'memcpy' sftable.c:337: warning: incompatible implicit declaration of built-in function ' memcpy' sftable.c:354: warning: implicit declaration of function 'strlen' sftable.c:354: warning: incompatible implicit declaration of built-in function ' strlen' sftable.c:359: warning: incompatible implicit declaration of built-in function ' memcpy' sftable.c:405: warning: incompatible implicit declaration of built-in function ' memcpy' make[3]: *** [sftable.lo] Error 1 make[3]: Leaving directory `/udd/broy/Desktop/graphviz-2.8/lib/sfio' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/udd/broy/Desktop/graphviz-2.8/lib/sfio' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/udd/broy/Desktop/graphviz-2.8/lib' make: *** [install-recursive] Error 1


Comments:
Hi, Is the issues are generated because of the gcc version? How to fix it cause my install is not complete? For example, I can't use dot, got an error message: "dot: error while loading shared libraries: libgvc.so.2: cannot open shared object file: No such file or directory" despite that the libgvc.so.2 is in my local lib directory /udd/broy/local/lib

Thanks..

[ellson] I don't know what the problem is. I build graphviz every night on FC4 without these errors. Is your system fully updated? (I note that your kernel is not, but that shouldn't matter.)

Could you please send me your config.log?
Owner: ellson
Status: *