Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Sep 1998 10:36:33 -0700
From:      John Polstra <jdp@polstra.com>
To:        mathiasp@virtual-earth.de
Cc:        ports@FreeBSD.ORG
Subject:   Re: -ldl and dlsym autoconf questions
Message-ID:  <199809151736.KAA21772@austin.polstra.com>
In-Reply-To: <199809142027.WAA01601@mp.virtual-earth.de>
References:  <199809142027.WAA01601@mp.virtual-earth.de>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <199809142027.WAA01601@mp.virtual-earth.de>,
Mathias Picker  <mathiasp@virtual-earth.de> wrote:

> 2) there is a call to dlsym("register_objects"... which needs to be
> dlsym("_register_objects"...
...
> Oh, yes, this is all on freebsd-stable about three weeks old...

You should be able to use dlsym("register_objects") then, without
the leading underscore.  The dynamic linker tries to be intelligent
about it.

> Will something in this area change with the switch to 3.0?

In 3.0, which uses ELF, dlsym("_register_objects") will not work.  You
should specify the variable name as it appears in a C program.
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809151736.KAA21772>