From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 991 invoked from network); 3 Sep 1998 21:53:34 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 3 Sep 1998 21:53:34 -0000 Received: from relay2.UU.NET (relay2.UU.NET [192.48.96.7]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id RAA06568 for ; Thu, 3 Sep 1998 17:54:20 -0400 Received: from uucp2.uu.net by relay2.UU.NET with SMTP (peer crosschecked as: uucp2.uu.net [192.48.96.82]) id QQffhf04861; Thu, 3 Sep 1998 17:53:31 -0400 (EDT) Received: from applix.UUCP by uucp2.uu.net with UUCP/RMAIL ; Thu, 3 Sep 1998 17:53:32 -0400 Received: from tuxedo.applix.com by applix.com (SMI-8.6/SMI-SVR4) id RAA17105; Thu, 3 Sep 1998 17:53:58 -0400 Received: (from ericding@localhost) by tuxedo.applix.com (8.8.7/8.8.7) id RAA22681; Thu, 3 Sep 1998 17:52:12 -0400 To: axp-list@redhat.com Subject: dlsym() broken on alpha? From: Eric Ding Date: 03 Sep 1998 17:52:12 -0400 Message-ID: X-Mailer: Gnus v5.5/Emacs 20.2 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 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