From owner-freebsd-ports Tue Oct 21 18:51:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA25418 for ports-outgoing; Tue, 21 Oct 1997 18:51:34 -0700 (PDT) (envelope-from owner-freebsd-ports) Received: from earth.mat.net (root@earth.mat.net [206.246.122.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA25407 for ; Tue, 21 Oct 1997 18:51:31 -0700 (PDT) (envelope-from chuckr@glue.umd.edu) Received: from picnic.mat.net (picnic.mat.net [206.246.122.117]) by earth.mat.net (8.8.7/8.6.12) with SMTP id VAA26439 for ; Tue, 21 Oct 1997 21:51:20 -0400 (EDT) Date: Tue, 21 Oct 1997 20:51:13 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@picnic.mat.net To: ports@FreeBSD.org Subject: XFree86 use of libgnumalloc Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk I've had to rebuild all my ports, because of a recent disk crash, and while I was rebuilding Xmaddressbook (a X11/Motif app) I noticed that it failed, because it couldn't link libgnumalloc. I haven't had libgnumalloc around it a long time, and haven't wanted it, but I couldn't understand why suddenly a port should want it. I grepped around the sources of Xmaddressbook, but it seemed that the callout for libgnumalloc came out of my own X11 config files in /usr/X11R6/lib/X11/config. I have the newest XFree86 distribution, so I began looking around in there for what was calling out libgnumalloc. I found it in Imake.tmpl, line 226, where it defined the value: #ifndef GnuMallocLibrary #define GnuMallocLibrary -lgmalloc So when the MallocLibraries were called out, libgnumalloc got included. I don't like to mess with the standard X11 config libraries, so having the standard (and normally empty) host.def, I entered into it the single line: #define GnuMallocLibrary /**/ That fixed Xmaddressbook. If I was sure this was a real X11 bug for XFree86 3.3.1, I'd forward them a FreeBSD-fix; could someone verify this for me (try building something X11-ish that needs the malloc libraries, maybe Xmaddressbook, if you have Motif). I'd appreciate confirmation. ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------