[Build/Install] Build problem on x86 with gcc version 4.0.2
Ported Issue from Mantis Original ID: 617 Reported By: Benjamin Roy
SEVERITY: MAJOR Submitted: 2006-09-11 11:03:22
OS: X86-LINUX-LINUX VERSION 2.6.15-1
VERSION: 2.8
DESCRIPTION
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
ADDITIONAL INFORMATION
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?