Skip site navigation (1)Skip section navigation (2)
Date:      30 Jun 1997 09:10:40 +0200
From:      Thomas Gellekum <tg@ihf.rwth-aachen.de>
To:        Peter Svaar <peter@svaar.no>
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Re: xautolock problem
Message-ID:  <87zps8lg5q.fsf@ghpc6.ihf.rwth-aachen.de>
In-Reply-To: Peter Svaar's message of Fri, 27 Jun 1997 22:56:57 %2B0200 (MET DST)
References:  <199706272056.WAA27879@cray.svaar.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Svaar <peter@svaar.no> writes:

> I can't get xautolock to compile. Seems like "gnumalloc" is the problem, but
> I can't understand why.
[...]
> cc -m486 -O2     -I/usr/X11R6/include  -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DHasVoidSignalReturn -DHasVFork  -c xautolock.c
> rm -f xautolock
> cc -o xautolock -m486 -O2      -L/usr/X11R6/lib xautolock.o -lXExExt -lXext -lX11    -lgnumalloc  
> ld: -lgnumalloc: no match
> *** Error code 1

My (would-)build line looks like this:

xautolock.pl10:135) make -n
cc -m486 -O2     -I/usr/X11R6/include  -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DHasVoidSignalReturn -DHasVFork  -c xautolock.c
rm -f xautolock
cc -o xautolock -m486 -O2      -L/usr/X11R6/lib xautolock.o -lXext -lX11      

There's no -lgnumalloc in there (XFree86-3.2). From
/usr/X11R6/lib/X11/config/FreeBSD.cf:

#ifndef UseGnuMalloc
/* 2.2 doesn't really have GnuMalloc */
#if OSMajorVersion < 2 || (OSMajorVersion == 2 && OSMinorVersion < 2)
#define UseGnuMalloc            YES
#else
#define UseGnuMalloc            NO 
#endif
#endif

Have a look at the top of this file, if you're running 2.2.x. It
should look like:

#ifndef OSMajorVersion
#define OSMajorVersion          2
#endif
#ifndef OSMinorVersion
#define OSMinorVersion          2  
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion          0   
#endif

tg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87zps8lg5q.fsf>