swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BLT2.1


From: Grant L. Allen
Subject: Re: BLT2.1
Date: Sun, 3 Nov 1996 10:46:19 -0500 (EST)

Hi Todd,

On Sat, 2 Nov 1996, Todd Allen wrote:

> make[1]: Leaving directory `/usr/temp/blt2.1/src'
> making BLT demo "bltwish"...
> rm -f bltwish
> gcc -O3 -fno-strength-reduce -Wwrite-strings -Wshadow -Wtraditional
> -fwritable-strings -Wall  -I. -I/usr/include/tcl -I/usr/include/tcl
> -I/usr/X11R6/include
> -Wl,-rpath,/usr/local/blt/lib:/usr/lib:/usr/lib:/usr/X11R6/lib \
>       ./tkAppInit.c -o bltwish ./src/libBLT.a  -L/usr/X11R6/lib -lX11 -ldl
> -lm 
> ./tkAppInit.c:29 warning: 'rcsid' defined but not used
> ld: cannot open -ldl: No such file or directory
> make: *** [bltwish] Error 1
> 
> Any idea what is going wrong?

Red Hat 3.0.3 perchance?  I had exactly the same problem... it's in the
FAQ as question 2.3.15 actually... but as 'unresolved' ;-)

I did find a way around it, tho.  The dl library (which it's trying to
link against when it dies) contains routines for working with dynamic
libraries, but isn't-- that I can tell-- necessary for a normal progrm
dynamically linked with gcc, hence Red Hat 3.0.3 appears to only come with
the dynamic dl runtime library, not the stubs you'd link against.  Anyway,
I don't think BLT needs it-- it may be that autoconf goofs in building
the Makefile. (I've heard it has a few problems with Linux, and believe it
from the times I've messed with it's makefiles..)

This made it work for me:
Notice that -ldl is defined with STD_LIBS at about line 28 in the
Makefile (which is then defined as part of LIBRARIES): a quick scan
through the file shows only the bltwish demo actualy uses that LIBRARIES
macro, so I see two options:
1) Skip bltwish, just make the BLT libraries and get on to Swarm
        Try: about line 76, the 'install :' target, pull 'install-bin'.
        This will simply skip building the demo and hence calling the
        offending -ldl line.
2) Build the BLT libs AND make bltwish work (not a bad idea)
        Try: at line 28 (STD_LIBS), pull "-ldl".  Add "-ltcl -ltk".  
        (If you just pull the dl reference it'll complain about a bunch of 
        unresolved Tcl/Tk symbols.)

Good luck, hope that helps.
        G

=-_-=-_-=-_-=-_-=-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-
Grant L Allen
Systems Science
Binghamton University (State University of New York)
E-Mail: address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]