Mailinglist Archive: opensuse-packaging (111 mails)

< Previous Next >
[opensuse-packaging] FYI: glibc 2.8 may break some of your packages
  • From: Cristian Rodríguez <crrodriguez@xxxxxxx>
  • Date: Fri, 11 Apr 2008 01:03:51 -0400
  • Message-id: <47FEF137.40007@xxxxxxx>

HI all :


Factory currenlty has glibc 2.8 which may break some of your packages, Im going to describe just one possible breakage, and hope someone else can contribute information about other breakages.


glibc 2.8 no longer defines ARG_MAX constant in linux, so you may see:


foobar.c:N: error: 'ARG_MAX' undeclared (first use in this function)

To fix this problem you can use something like this

#include <unistd.h> /* only if not already there !! */

#if defined(_SC_ARG_MAX)
# if defined(ARG_MAX)
# undef ARG_MAX
# endif
# define ARG_MAX sysconf (_SC_ARG_MAX)
#endif

HTH.

Cristian.



--
"Freedom of religion also means freedom **from** religion" - Anonymous

Cristian Rodríguez R.
Platform/OpenSUSE - Core Services
SUSE LINUX Products GmbH
Research & Development
http://www.opensuse.org/


< Previous Next >