swarm-support
[Top][All Lists]
Advanced

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

Re: BLT2.1


From: Sven Thommesen
Subject: Re: BLT2.1
Date: Sun, 03 Nov 1996 20:02:23 -0600

I used to have this very problem myself (under Redhat 3.0.3), and solved it
using suggested hack #1 below (don't build bltwish).

I have recently installed tcl, tk, and BLT under 3.0.3 and 4.0, in separate
directories away from the standard places these programs usually get
installed by linux. I was even able to generate the missing dynamic versions
of the libraries, with some twiddling of the make files.

See my message "Installation blues: my solution" from 11/1, which has
attached to it my Makefiles. With modifications for your local setup, what
worked for me may work for you.

Good luck!
--Sven


At 10:46 AM 11/3/96 -0500, Grant L. Allen wrote:
>
>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]