Subject: dlsym require prefixing symbols with "_"?
To: None <netbsd-help@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 07/25/2001 16:26:29
The author of libao is working on making it work out of the box (no
patches) for NetBSD. He asked me:

* Does NetBSD's dlopen() also not support the RTLD_NOW flag?

Currently, my pkgsrc/audio/libao/patches/patch-ac does:
-       handle = dlopen(plugin_file, RTLD_NOW);
+       handle = dlopen(plugin_file, DL_LAZY);

I am sure that NetBSD's dlopen() supports RTLD_NOW, but by using DL_LAZY
the run-time loader reports problems at run-time instead of at build
(link) time. (Do I understand that correctly?)

How should I answer him about this?

* Does NetBSD's dlsym() require prefixing symbols with "_"?

I don't know about this. How should I respond to him about this?

By the way, libao is used by the vorbis-tools package for playing Ogg
Vorbis sound files.

   Jeremy C. Reed
   http://www.reedmedia.net/