Xen 2.0.7 Build failure
Hi,
I have a problem building xen-2.0.7 from source. This command seems to have some problem.
[root@xion xen-2.0.7]# cd tools/xfrd/
[root@xion xfrd]# gcc -o xfrd xfrd.o xen_domain.o select.o connection.o libutil.a -I /usr/include/curl/ -L ../../tools/libxc -lxc -L ../../tools/libxutil -lxutil -lz -L/usr/lib -lcurl -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz /usr/lib/libcurl.a(formdata.o)(.text+0xa0a): In function `AddFormDataf':
: undefined reference to __guard' /usr/lib/libcurl.a(formdata.o)(.text+0xa5e): In function AddFormDataf':
: undefined reference to __guard' /usr/lib/libcurl.a(formdata.o)(.text+0xa74): In function AddFormDataf':
: undefined reference to `__stack_smash_handler'
....
....
....
/usr/lib/libcurl.a(ftp.o)(.text+0x40e9): In function `Curl_ftp':
: undefined reference to __guard' /usr/lib/libcurl.a(ftp.o)(.text+0x4103): In function Curl_ftp':
: undefined reference to __stack_smash_handler' /usr/lib/libcurl.a(ftp.o)(.text+0x41f2): In function Curl_ftp':
: undefined reference to `__guard'
collect2: ld returned 1 exit status
Please suggest.
~$ubh
Quoted 10 lines · Subhabrata Bhattacharya
Hi,
I have a problem building xen-2.0.7 from source. This command seems to have some problem.
[root@xion xen-2.0.7]# cd
tools/xfrd/
[root@xion xfrd]# gcc -o xfrd xfrd.o xen_domain.o select.o connection.o libutil.a -I/usr/include/curl/-L ../../tools/libxc -lxc(quoted diff) +0
-2-L ../../tools/libxutil -lxutil -lz -L/usr/lib -lcurl -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz
Quoted 6 lines
/usr/lib/libcurl.a(formdata.o)(.text+0xa0a): In function `AddFormDataf':
: undefined reference to__guard' /usr/lib/libcurl.a(formdata.o)(.text+0xa5e): In functionAddFormDataf':
: undefined reference to__guard' /usr/lib/libcurl.a(formdata.o)(.text+0xa74): In functionAddFormDataf':
: undefined reference to `__stack_smash_handler'
Seems like you have some stack protection applied to GCC, but it needs some additional symbols from some library to work.
- either add this library to the linking command (i'm not sure if it will work)
- or disable the protection
Marcin
Signature · 5 lines
Marcin Owsiany <[email protected]> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until it can read mail." -- Unknown
Hi,
Quoted 2 lines
Seems like you have some stack protection applied to GCC, but it needs some additional symbols from some library to work.
Is there a way to find out what libraries would be required? I have everything installed as stated with the -l flags.
Quoted 1 line
- or disable the protection
How do I do this?
~$ubh
Quoted 32 lines · Marcin Owsiany
Quoted 10 lines · Subhabrata Bhattacharya
Hi,
I have a problem building xen-2.0.7 from source. This command seems to have some problem.
[root@xion xen-2.0.7]# cd
tools/xfrd/
[root@xion xfrd]# gcc -o xfrd xfrd.o xen_domain.o select.o connection.o libutil.a -I/usr/include/curl/-L ../../tools/libxc -lxc(quoted diff) +0
-2-L ../../tools/libxutil -lxutil -lz -L/usr/lib -lcurl -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lzQuoted 6 lines
/usr/lib/libcurl.a(formdata.o)(.text+0xa0a): In function `AddFormDataf':
: undefined reference to__guard' /usr/lib/libcurl.a(formdata.o)(.text+0xa5e): In functionAddFormDataf':
: undefined reference to__guard' /usr/lib/libcurl.a(formdata.o)(.text+0xa74): In functionAddFormDataf':
: undefined reference to `__stack_smash_handler'Seems like you have some stack protection applied to GCC, but it needs some additional symbols from some library to work.
- either add this library to the linking command (i'm not sure if it will work)
- or disable the protectionMarcin
--
Marcin Owsiany <[email protected]> http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216"Every program in development at MIT expands until it can read mail."
-- Unknown
Quoted 10 lines · Subhabrata Bhattacharya
Hi,
Quoted 2 lines
Seems like you have some stack protection applied to GCC, but it needs some additional symbols from some library to work.
Is there a way to find out what libraries would be required? I have everything installed as stated with the -l flags.
Quoted 1 line
- or disable the protection
How do I do this?
That probably depends on the stack smashing protection you have installed over GCC and on your package management software. I have little knowledge in those things.
Marcin
Signature · 5 lines
Marcin Owsiany <[email protected]> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until it can read mail." -- Unknown
Quoted 5 lines · Subhabrata Bhattacharya
Quoted 2 lines
Seems like you have some stack protection applied to GCC, but it needs some additional symbols from some library to work.
Is there a way to find out what libraries would be required? I have everything installed as stated with the -l flags.
It looks like it might be a version mismatch between libcurl and libc. I think libcurl has been compiled with some stack-smash protection enabled and libc hasn't.
-- Keir