Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* dlsym() broken on alpha?
@ 1998-09-03 21:52 Eric Ding
  1998-09-05 16:41 ` Bibek Sahu
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Ding @ 1998-09-03 21:52 UTC (permalink / raw)
  To: axp-list

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


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: dlsym() broken on alpha?
@ 1998-09-03 22:02 Eric Ding
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Ding @ 1998-09-03 22:02 UTC (permalink / raw)
  To: axp-list

Hi all,

sorry, ignore my last post.  I was silly and didn't check that /lib/libm.so
actually exists... :)

Eric
-- 
Software Development Engineer / ericding@applix.com               <><
Applix, Inc. / 112 Turnpike Road / Westboro MA 01581-2842
TEL: (508) 870-0300 x284 / FAX: (508) 366-4873


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-09-05 16:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-03 21:52 dlsym() broken on alpha? Eric Ding
1998-09-05 16:41 ` Bibek Sahu
  -- strict thread matches above, loose matches on Subject: below --
1998-09-03 22:02 Eric Ding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox