evms-0.9.2 build utilities problem
Hi all,
The original way to build some evms utilities as evms_devnode_fixup is:
...
gcc -Wall -fPIC -O2 -I/tools/evms-dpkg/evms-0.9.2/engine/include -I/tools/evms-dpkg/evms-0.9.2/engine/dlist -I/tools/evms-dpkg/evms-0.9.2/kernel-headers/include -I/usr/include -I/usr/local/include -DPluginDirectory=\"/lib/evms\" -DEVMS_DEBUG -DPARANOID -DMAJOR_VERSION=1 -DMINOR_VERSION=0 -DPATCH_LEVEL=0 -DVERSION=\"1.0.0\" -DDATE=\"03/13/02\" -c -o evms_devnode_fixup.o evms_devnode_fixup.c
...
gcc -L/tools/evms-dpkg/evms-0.9.2/engine/Engine -L/tools/evms-dpkg/evms-0.9.2/engine/dlist -static -o evms_devnode_fixup evms_devnode_fixup.o -levms -ldlist -lpthread -ldl
...
Well launch it made an immidiate Segmentation fault.
Now I recompile without "-fPIC" and it works fine.
Any idea on what is wrong?
Thanks in advance for help,
Joel
-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)
Quoted 5 lines
Well launch it made an immidiate Segmentation fault.
Now I recompile without "-fPIC" and it works fine.
Any idea on what is wrong?
what versions of gcc-3.0 and binutils are you running?
dpkg -s gcc-3.0 |grep Version
dpkg -s binutils |grep Version
randolph
Signature · 4 lines
@..@ http://www.TauSq.org/ (----) ( >__< ) ^^ ~~ ^^
Randolph,
Sorry (I would have to mentioned)
Quoting Randolph Chung <[email protected]>:
Quoted 9 lines
Quoted 5 lines
Well launch it made an immidiate Segmentation fault.
Now I recompile without "-fPIC" and it works fine.
Any idea on what is wrong?
what versions of gcc-3.0 and binutils are you running?
dpkg -s gcc-3.0 |grep Version
Version: 1:3.0.4-3
Quoted 1 line
dpkg -s binutils |grep Version
Version: 2.11.93.0.2-3
Joel
PS: This can be reproduce with a simple "Hello World" (just to avoid to sempt time to find back the the sources of evms)
-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)
Quoted 2 lines
PS: This can be reproduce with a simple "Hello World" (just to avoid to sempt time to find back the the sources of evms)
<sigh> yup... looks like a compiler (linker?) bug...
gcc -fPIC -o test test.c -> works
gcc -fPIC -static -o test test.c -> segfaults
test.c is a printf("Hello") kinda program
verified with both gcc-3.0.4 and gcc-3.1.
Dave, is this a known problem?
randolph
Signature · 4 lines
@..@ http://www.TauSq.org/ (----) ( >__< ) ^^ ~~ ^^
Quoted 4 lines
<sigh> yup... looks like a compiler (linker?) bug...
gcc -fPIC -o test
test.c-> works
gcc -fPIC -static -o testtest.c-> segfaults
I don't think so. I did a little test and found r19 has the value 4 when main is called. There must be a problem with the startup code.
Dave
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)