Re: APBuild

"Isak Savo" <[email protected]> Tue, 11 Nov 2008 14:58:27 +0100
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
On Tue, Nov 11, 2008 at 1:28 AM, Justin Karneges <[email protected]> wrote:
> On Friday 07 November 2008 18:45:17 Justin Karneges wrote:
>>
>> 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.
>
> Found.  Optimization triggers it.
>
> Fail:
> $ apgcc -O3 atest.c -o atest
> /tmp/cc6UgLDq.o: In function `main':
> atest.c:(.text+0x7): undefined reference to `__ctype_toupper@GLIBC_2.0'
> collect2: ld returned 1 exit status
>
> Any ideas other than turning off optimization?

You can probably just switch off the particular optimization that
causes this. Is the problem visible on -O1 and -O2 too?

-Isak

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