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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Feb 28, 2006 at 12:51:22PM +0530, Subhabrata Bhattacharya wrote:> 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''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 -- Marcin Owsiany <marcin@owsiany.pl> 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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi,> 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.> - or disable the protectionHow do I do this? ~$ubh On 2/28/06, Marcin Owsiany <marcin@owsiany.pl> wrote:> On Tue, Feb 28, 2006 at 12:51:22PM +0530, Subhabrata Bhattacharya wrote: > > 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'' > > 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 > -- > Marcin Owsiany <marcin@owsiany.pl> 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 >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Feb 28, 2006 at 01:25:13PM +0530, Subhabrata Bhattacharya wrote:> Hi, > > > 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. > > > - 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 -- Marcin Owsiany <marcin@owsiany.pl> 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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 28 Feb 2006, at 07:55, Subhabrata Bhattacharya wrote:>> 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel