## <a name="API_Limitations_of_the_GNU_syste"> </a> API Limitations of the GNU system

----

Sometimes building or running a program will fail due to bugs in the system API implementation (in Glibc and the Hurd). Make sure you check this list and know them before porting, otherwise you'll end up debugging something just to find out its an already known bug.

Taken from the bug lists in debian BTS. If you find more of them (and it is clear in the bug log that it is a bug), please add them to the list below. See:

* <http://bugs.debian.org/hurd> ([source](http://packages.qa.debian.org/h/hurd.html) and [binary](http://packages.debian.org/hurd) debs not synchronized)
* <http://bugs.debian.org/hurd-dev> ([binary](http://packages.debian.org/hurd-dev))
* <http://bugs.debian.org/libc0.3> ([source](http://packages.qa.debian.org/g/glibc.html) &amp; [binary](http://packages.debian.org/libc0.3) debs)
* <http://bugs.debian.org/libc0.3-dev> ([binary](http://packages.debian.org/libc0.3-dev))

----

These are the known system API limits that have porting implications.

**_[\#47998](http://bugs.debian.org/47998): `msgget` IPC not implemented_**

**_[\#184344](http://bugs.debian.org/184344): extern inlines in libpthread are not ansi compliant_**<br />**breaks:** xfree86 (when compiled with pthreads)<br />**error:** `gcc -ansi` gets parse error with `inline`<br />**status:** patch sent

**_[\#177486](http://bugs.debian.org/177486): POSIX semaphore_**<br />**breaks:** gnome-libs?<br />**error:** missing `<semaphore.h>`<br />**status:** patch sent (but looks like it needs more work)

**_[\#184565](http://bugs.debian.org/184565): libc0.3: missing shm\* functions (from `<sys/shm.h>`)_**<br />**breaks:** cdrtools<br />**error:** warning: shm\* is not implemented and will always fail

**_[\#184573](http://bugs.debian.org/184573): missing res\_search in `-lresolv`_**<br />**breaks:** krb5<br />**status:** actualy this should be in [[PortingIssues]] (see bug log)

**_[\#190581](http://bugs.debian.org/190581): nice() doesn't work_**<br />**breaks:** coreutils<br />**error:** `nice()` doesn't take effect on some situations

**_[\#187391](http://bugs.debian.org/187391): libc0.3-dev: `sockaddr_un.sun_path` can't be assigned a `const char *` when compiling with g++_**<br />**breaks:** fam, gail<br />**status:** maybe this should be in [[PortingIssues]] (see _long_ bug log)

**_[\#190367](http://bugs.debian.org/190367): libc0.3-dev: `fcntl` `F_GETLK` not implemented (`ENOSYS`)_**<br />**breaks:** gnome-session (and others) from running<br />**error:** misc lock-related errors

-- [[Main/RobertMillan]] - 01 May 2003

Text formatting.<br /> -- [[Main/OgnyanKulev]] - 02 May 2003