Re: Troubles using apbuild

Mathieu Cadet <[email protected]> Tue, 17 Mar 2009 20:44:50 +0100
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
I'll try that. Thank you!

FORTIFY_SOURCE is a default security mechanism enabled by default in
all enterprise-level distros (RHEL, CentOS, SLES) and maybe others.
IMHO the documentation should be updated to indicate that
FORTIFY_SOURCE has to be disabled for apbuild to work.

Regards,
Mathieu


On Tue, Mar 17, 2009 at 8:33 PM, Eugene Zolenko
<EugeneZolenko-XYgkjQFSZqy1Z/[email protected]> wrote:
> You have to disable source fortification when building it.
>
> Look for FORTIFY_SOURCE and how to disable it for your version.
> (-UFORTIFY_SOURCE might work, or there was cmd line flag, I forgot).
>
> -----Original Message-----
> From: Mathieu Cadet [mailto:[email protected]]
> Sent: Tuesday, March 17, 2009 1:24 PM
> To: autopackage-dev-OfajU3CKLf1/[email protected]
> Subject: Troubles using apbuild
>
> Hi folks,
>
> I'm trying to use apbuild to build more portable binaries.
>
> However the documentation for the tool seems to be quite sparse...
>
> I'm trying to build mono using apbuild/apgcc and I'm getting the
> following errors:
>
> [...]
> /usr/include/bits/stdio2.h:105: undefined reference to
> `__printf_chk@GLIBC_DONT_USE_THIS_SYMBOL'
> pedump.o: In function `printf':
> /usr/src/packages/BUILD/mono-2.2/mono/metadata/pedump.c:83: undefined
> reference to `__printf_chk@GLIBC_DONT_USE_THIS_SYMBOL
> [...]
>
> In the pedump.c file, this error seems to be caused by the usage of
> the "printf" function.
>
> I understand that apbuild is doing some clever tricks to mask GLIBC
> symbols that are too recent.
> What can I do to fix those errors?
>
> Thank you.
>
> Regards,
> Mathieu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
> For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
> For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
>
>

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