Path: utzoo!attcan!uunet!cs.utexas.edu!yale!cmcl2!adm!smoke!brl.mil!moss From: moss@brl.mil (Gary S. Moss (VLD/VMB) ) Newsgroups: comp.windows.x Subject: Re: gcc 1.37.1, library path confusion on X11 R4 fix 18 Message-ID: <14017@smoke.BRL.MIL> Date: 4 Oct 90 16:34:11 GMT References: Sender: news@smoke.BRL.MIL Reply-To: moss@brl.mil Organization: Ballistic Research Laboratory Lines: 22 In article , felix@ai.sri.com (Francois Felix INGRAND) writes: |> |> After applying fix-15-18 to X11 R4, I have the following problem: |> |> gcc version 1.37.1, sun 3 os 4.0.3 |> |> making .././fonts/mkfontdir |> rm -f mkfontdir |> gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -o mkfontdir mkfontdir.o fontdir.o snf_ |> util.o -O -Bstatic -L../.././lib/Xmu -lXmu -Bdynamic |> ld: /usr/local/lib/libXmu.sa.4.0: warning: table of contents for archive is out of date; reu |> n ranlib(1) |> ld: Undefined symbol |> _applicationShellWidgetClass |> _wmShellWidgetClass |> *** Error code 1 Unless it has changed since gcc 1.36, the flag you want is "-static" rather than "-Bstatic", check the gcc manual page. That explains why it is linking with /usr/local/lib/libXmu.sa.4.0. I got burnt by this one myself :-{ -Gary