From owner-freebsd-ports@FreeBSD.ORG Tue Oct 14 06:15:40 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFD3716A4BF for ; Tue, 14 Oct 2003 06:15:40 -0700 (PDT) Received: from mail.niblet.co.uk (risky.niblet.co.uk [80.177.236.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3472143F93 for ; Tue, 14 Oct 2003 06:15:39 -0700 (PDT) (envelope-from matt@kittycat.co.uk) Received: from sakura.niblet.co.uk ([192.168.0.3] helo=sakura) by mail.niblet.co.uk with esmtp (Exim 4.24; FreeBSD 5.1) id 1A9P3J-000BCR-BW for ports@freebsd.org; Tue, 14 Oct 2003 14:17:29 +0100 From: "Matt Sealey" To: Date: Tue, 14 Oct 2003 14:15:38 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: databases/mysql-server build problems with dns/bind installed as base? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2003 13:15:40 -0000 Hello there, I'm trying to upgrade my MySQL server, I'm running FreeBSD 5.1 which is pretty plain and boring.. but it fails with a linker error every time: root@risky:/home/neko$ portupgrade mysql-server-4.0.14 ---> Upgrading 'mysql-server-4.0.14' to 'mysql-server-4.0.15' (databases/mysql40-server) ---> Building '/usr/ports/databases/mysql40-server' ===> Cleaning for mysql-client-4.0.15 ===> Cleaning for p5-DBD-mysql-2.1026_1 ===> Cleaning for p5-DBI-1.38 ===> Cleaning for libtool-1.3.5_1 ===> Cleaning for perl-5.6.1_14 ===> Cleaning for mysql-server-4.0.15 .. blah blah cc -O3 -DDBUG_OFF -O2 -mcpu=pentiumpro -mcpu=i686 -O3 -fno-omit-frame-pointer -o perror perror.o ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a -lz -lcrypt -lm -lc_r source='resolveip.c' object='resolveip.o' libtool=no depfile='.deps/resolveip.Po' tmpdepfile='.deps/resolveip.TPo' depmode=gcc3 /bin/ sh ../depcomp cc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include -I.. -O3 -DDBUG_OFF -O2 -mcpu=pentiumpro -mcpu=i686 -O3 -fno-omit-frame-pointer -c `test -f resolveip.c || echo './'`resolveip.c /bin/sh ../libtool --mode=link cc -O3 -DDBUG_OFF -O2 -mcpu=pentiumpro -mcpu=i686 -O3 -fno-omit-frame-pointer -o resolveip resolvei p.o ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a -lz -lcrypt -lm -lc_r cc -O3 -DDBUG_OFF -O2 -mcpu=pentiumpro -mcpu=i686 -O3 -fno-omit-frame-pointer -o resolveip resolveip.o ../mysys/libmysys.a ../dbug/libd bug.a ../strings/libmystrings.a -lz -lcrypt -lm -lc_r resolveip.o: In function `main': resolveip.o(.text+0x2cf): undefined reference to `__h_errno' *** Error code 1 Stop in /usr/ports/databases/mysql40-server/work/mysql-4.0.15/extra. *** Error code 1 Stop in /usr/ports/databases/mysql40-server/work/mysql-4.0.15. *** Error code 1 Stop in /usr/ports/databases/mysql40-server/work/mysql-4.0.15. *** Error code 1 Stop in /usr/ports/databases/mysql40-server. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade9325.0 make ** Fix the problem and try again. ** The following packages were not installed or upgraded (*:skipped / !:failed) ! databases/mysql40-server (mysql-server-4.0.14) (linker error) It happens with the 4.1 port too, with or without optimisation flags, I have BUILD_OPTIMIZED=yes OVERWRITE_DB=no SKIP_DNS_CHECK=yes .. in my /etc/make.conf but it makes no difference whether I have nothing in there. I'm leaning towards blaming my installations of BIND (PORT_REPLACES_BASE_BIND8=yes) I'm sure I had this problem a year or two back when I ran 4.x on a server, but I can't remember how I solved it, if at all. Anyone got any ideas what's broken here, and if it can be fixed (either in the BIND port, or the MySQL port)? Thanks in advance -- Matt Sealey