From 14a6ee07dae44039db18aa41a089453b132871f1 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 18 Aug 2011 01:26:47 +0200 Subject: talk about libdl hardcoding --- hurd/porting/guidelines.mdwn | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hurd') diff --git a/hurd/porting/guidelines.mdwn b/hurd/porting/guidelines.mdwn index fc71aa7c..8f21a64f 100644 --- a/hurd/porting/guidelines.mdwn +++ b/hurd/porting/guidelines.mdwn @@ -279,6 +279,10 @@ With Python, you can use the [`errno` module](http://docs.python.org/library/err err.errno == errno.ENOENT: ... +## undefined reference to `dlopen`, `dlsym`, `dlclose` + +Configure script often hardcode the library that contains dlopen & such (`-ldl'), and only for Linux. Simply add the other GNU OS cases: replace `linux*' with `linux*|gnu*|k*bsd*-gnu` + ## Missing `linux/types.h`, `asm/types.h`, `linux/limits.h`, `asm/byteorder.h`, `sys/endian.h`, `asm/ioctl.h`, `asm/ioctls.h`, `linux/soundcard.h` These are often used (from lame rgrep results) instead of their standard equivalents: `sys/types.h` (or `stdint.h` for fixed-size types), `limits.h`, `endian.h`, `sys/ioctl.h`, `sys/soundcard.h` -- cgit v1.2.3