Re: APBuild

Justin Karneges <[email protected]> Fri, 7 Nov 2008 18:45:17 -0800
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
On Friday 07 November 2008 13:21:49 Isak Savo wrote:
> On Fri, Nov 7, 2008 at 10:11 PM, Yann Hamiaux <[email protected]> wrote:
> > __strcat_chk@GLIBC_DONT_USE_THIS_SYMBOL
> > and all sprintf, printf, strcat, strcpy, ...
> >
> > I got that error under Ubuntu 8.10 (gcc/g++ v4.3.2) and linux-libc-dev
> > 2.6.27-7.16.
>
> This is because gcc is inserting a special version of the string
> utility functions (to enhance security).
>
> Try passing -D_FORTIFY_SOURCE=0 as a compiler flag when you're building:
> export CFLAGS=-D_FORTIFY_SOURCE=0; ./configure
>
> (or modify the Makefile directly if you're not using autotools)

I just checked out SVN today and I'm also getting undefined symbols at link 
time, e.g.: undefined reference to `__ctype_toupper@GLIBC_2.0'

I'm getting this both with Qt and OpenSSL (after futzing with their build 
systems to use apgcc/apg++, of course).  I'm using Ubuntu 8.04.

I haven't figured out exactly what compile or linker flags are causing this, 
as if I make a test program that includes ctype.h and calls toupper(), and 
compile and link with apgcc, it works.

-Justin

---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]