From owner-freebsd-current@FreeBSD.ORG Sun Jul 4 07:58:03 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD15816A4CE; Sun, 4 Jul 2004 07:58:03 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2AFBF43D41; Sun, 4 Jul 2004 07:58:01 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from samsco.org (junior-wifi.samsco.home [192.168.0.11]) (authenticated bits=0) by pooker.samsco.org (8.12.11/8.12.10) with ESMTP id i6482PQf084806; Sun, 4 Jul 2004 02:02:26 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <40E7B878.3070203@samsco.org> Date: Sun, 04 Jul 2004 01:57:44 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040304 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Kennaway References: <20040704023714.GA73697@xor.obsecurity.org> In-Reply-To: <20040704023714.GA73697@xor.obsecurity.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org cc: current@freebsd.org Subject: Re: Odd linker errors X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2004 07:58:03 -0000 Kris Kennaway wrote: > A number of ports are starting to fail with errors like: > > net/clusterit: > > >>cc -O -pipe -DCLUSTERS -o dsh dsh.o ../common/common.o >>dsh.o(.text+0x86): In function `main': >>: undefined reference to `malloc_options' > The addition of files/patch-dsh-dsh.c seems to be triggering this. It appears to declare the 'malloc_options' symbol. Looking at stdlib.h, the real name should be '_malloc_options' (and including stdlib.h is the better way to get this declaration). This is also documented correctly in the malloc(2) manpage. > > net/mopd: > > >>file.o(.text+0x623): In function `GetAOutFileInfo': >>: undefined reference to `le32toh' >>file.o(.text+0x63b): In function `GetAOutFileInfo': >>: undefined reference to `le32toh' > I can't reproduce this here. However, netbooting a VAX probably isn't a terribly common occurrance these days. > > math/grace: > > >>plotone.o(.text+0x19f): In function `do_hardcopy': >>: warning: warning: tmpnam() possibly used unsafely; consider using mkstemp() >>pdfdrv.o(.text+0x2f1): In function `pdfinitgraphics': >>: undefined reference to `PDF_open_fp' > This one gives me: ===> Registering installation for pdflib-5.0.3_1 ===> Returning to build of grace-5.1.14_3 Error: shared library "pdf.7" does not exist *** Error code 1 Stop in /usr/ports/math/grace. Note that grace/files/patch-ai was recently removed, but I'm not sure if it makes a difference. Scott