Article View: gnu.gcc.help
Article #53283Re: On SunOS4, how to avoid _dlclose, etc?
From: Jason Austin
Date: Tue, 25 Feb 1992 17:45
Date: Tue, 25 Feb 1992 17:45
28 lines
1923 bytes
1923 bytes
In article <ZOO.92Feb21231324@lynx.spa.umn.edu> zoo@aps1.spa.umn.edu (david d 'zoo' zuhn) writes: > >> I am trying to compile a program using gcc. The -static option > >> seems not be working for me. I get the message "Undefined symbol: > >> _dlclose, _dlopen, _dlsym". These symbols are used in libc.a. > > >> Anybody knows how I can avoid this problem? Thanks in advance. > > This is a bug in SunOS. There is a standard fix in the MIT X11R5 > source tree as mit/util/misc/dlsym.c, which I appended to this > message. Just compile and link against this file and all will be well > (at least this bug will be fixed, no comment on any other bugs you > might have). > > david d [zoo] zuhn Univ. of Minnesota Dept. of Astronomy > zoo@aps1.spa.umn.edu Automated Plate Scanner Project > -- member of the League for Programming Freedom -- email me for info I don't think this is a SunOS problem, since it can be avoided by removing the -g from the gcc command line. This problem shows up like this too: gcc test.c -ldl (Works fine) gcc -g test.c -ldl ld: -ldl: No such file or directory -- Jason C. Austin jason@fmd01.larc.nasa.gov
Technical Details
Message-ID:
<JASON.92Feb25124538@efpb12.news>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.larc.nasa.gov!fmd01.larc.nasa.gov!jasonReferences:
<DXZ.92Feb21162429@bishop.ics.hawaii.edu> <ZOO.92Feb21231324@lynx.spa.umn.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,c2892d3e4634777c X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-02-25 10:06:13 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!news.larc.nasa.gov!fmd01.larc.nasa.gov!jason From: jason@fmd01.larc.nasa.gov (Jason Austin) Subject: Re: On SunOS4, how to avoid _dlclose, etc? In-Reply-To: zoo@aps1.spa.umn.edu's message of 22 Feb 92 05:13:24 GMT Message-ID: <JASON.92Feb25124538@efpb12.news> Sender: news@news.larc.nasa.gov (USENET Network News) Organization: /users/home0/jason/.organization References: <DXZ.92Feb21162429@bishop.ics.hawaii.edu> <ZOO.92Feb21231324@lynx.spa.umn.edu> Distribution: gnu Date: Tue, 25 Feb 1992 17:45:38 GMT Lines: 28