[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1506.0. "malloc problems in libX11 under ULTRIX" by GILDOR::avolio (I was ULTRIX when ULTRIX wasn't *cool*) Thu Sep 28 1989 18:05

From a customer...  Please E-mail me ifyou have an answer.  Thanks!

Fred
----------
	I'd really like to get the XView libraries running under
UWS2.1 on our 3200's but I am running into a problem.  I get multiple
definitions of malloc from libc.a and libX11.a.  I ran into the same
problem in trying to compile the Andrew Toolkit.  That time I just gave
up and used the MIT libraries, but I'd rather not this time.  What seems
to be the problem is that DEC's libX11 has its own set of malloc/free
routines which don't include cfree.  So, if something referencing
cfree links against X11, it gets calloc, etc but then has to search
libc.a for cfree and gets a multiply defined function.  No real
showstopper, but it's a pain.  Any ideas on a general solution?

T.RTitleUserPersonal
Name
DateLines
1506.1Me too!...GOLLY::MILLERCan I have a haircut like Sinead's?Tue Oct 03 1989 01:078
    I just ran into this trying to build Emacs 18.55 on UWS2.1
    
    Please also post here if you have insight to this.
    
    Thanks,
    
    	 	== ken miller ==

1506.2a simple but ugly fixVMSDEV::BALLOUIt's not slow, it's careful!Tue Oct 03 1989 14:0310
There's a workaround:  when you specify your libraries, put the C library at the
front of the list, viz.:

        cc -o foo foo.o bar.o -lc -lX11

This means the C library will be searched twice, but you will pull in the module
containing malloc from the C library rather than from the X11 library.

                                         - Ken

1506.3This is in the release notesVOGON::DRUMGOOLEHoojah, in the Ooskah !Wed Oct 04 1989 17:402