[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#489357: undefined reference to __open_2 on non-linux architectures with -D_FORTIFY_SOURCE=2



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Petr Salinger schrieb:
> reassign 489357 glibc 2.7-1
> thanks
> 
> In fact the bug is in glibc, the __open_2 is a new symbol in glibc 2.7,
> the fix should be made by appropriate porters. The fix for GNU/kFreeBSD
> is already in both debian glibc-bsd and pkg-glibc svn, it should appear
> in glibc 2.7-13.
> 
> Hurd porters, for inspiration please take a look at
> sysdeps/unix/sysv/linux/open_2.c. Similarly __open64_2(), __openat_2(),
> __openat64_2() are also new symbols needed with _FORTIFY_SOURCE in glibc
> 2.7.
> 
> 
> Thanks for spotting this problem
> 
> Petr

Thanks for correcting it Petr Salinger, I wasn't sure if it's a bug with
the fortify_source in gcc or anything else.

- --
/*
Mit freundlichem Gruß / With kind regards,
Patrick Matthäi

E-Mail: patrick.matthaei@web.de
*/

// Comment:
// Always if we think we are right,
// we were maybe wrong.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkhw+WAACgkQ2XA5inpabMca4QCdGpHHuKWgnl7Qn2tGPCJsSlRp
NGQAoJx4CZnPqTD39vzobz6Ky8TsTfYR
=aFBh
-----END PGP SIGNATURE-----



Reply to: