From: Eric Ding <ericding@applix.com>
To: axp-list@redhat.com
Subject: dlsym() broken on alpha?
Date: 03 Sep 1998 17:52:12 -0400 [thread overview]
Message-ID: <yv44suon9tf.fsf@tuxedo.applix.com> (raw)
Is dlsym() broken on RedHat 5.1 Linux/Alpha. I believe I've got the latest
glibc (2.0.7-19) installed, and am using egcs 1.0.3. When I compile the
following piece of code straight from the dlsym() man page, I get a
segmentation fault:
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle = dlopen ("/lib/libm.so", RTLD_LAZY);
double (*cosine)(double) = dlsym(handle, "cos");
printf ("%f\n", (*cosine)(2.0));
dlclose(handle);
}
Is this a known issue?
Thanks,
Eric
--
Software Development Engineer / ericding@applix.com <><
Applix, Inc. / 112 Turnpike Road / Westboro MA 01581-2842
next reply other threads:[~1998-09-03 21:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-03 21:52 Eric Ding [this message]
1998-09-05 16:41 ` dlsym() broken on alpha? Bibek Sahu
-- strict thread matches above, loose matches on Subject: below --
1998-09-03 22:02 Eric Ding
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox