From owner-freebsd-ports@FreeBSD.ORG Fri Oct 31 09:08:55 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 B38EC16A4CF for ; Fri, 31 Oct 2003 09:08:55 -0800 (PST) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B7C743FD7 for ; Fri, 31 Oct 2003 09:08:53 -0800 (PST) (envelope-from freebsd-ports@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AFclV-0001WT-00 for ; Fri, 31 Oct 2003 18:08:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-ports@freebsd.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AFclU-0001WL-00 for ; Fri, 31 Oct 2003 18:08:48 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AFclU-0006t7-00 for ; Fri, 31 Oct 2003 18:08:48 +0100 From: Jesse Guardiani Date: Fri, 31 Oct 2003 12:08:36 -0500 Organization: WingNET Lines: 116 Message-ID: References: <20031030040009.GA25467@rot13.obsecurity.org> <3FA0E685.1040101@web.de> <20031030102245.GA27971@rot13.obsecurity.org> <20031030170334.GS96543@toxic.magnesium.net> <3FA2244E.6040706@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org User-Agent: KNode/0.7.2 X-Mail-Copies-To: never Sender: news Subject: Re: grip-3.1.2 still broken X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jesse@wingnet.net List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2003 17:08:55 -0000 Kay Lehmann wrote: > Jesse Guardiani schrieb: >> Adam Weinberger wrote: [...] >> I think the grip port configures with --disable-cdpar for some reason, >> so we can ignore: >> >> - libcdda_paranoia.so.0 => /usr/local/lib/libcdda_paranoia.so.0 >> >> Which leaves: >> >> - libcam.so.2 => /usr/lib/libcam.so.2 >> - libcdda_interface.so.0 => /usr/local/lib/libcdda_interface.so.0 >> - libsbuf.so.2 => /usr/lib/libsbuf.so.2 >> >> And I'm not too sure what those do. >> > > I can confirm that grip is working when compiled directly from source. > But I compiled the port with cdparanoia-support and ldd gives no > difference between port and direct compiled program. So I think Adams > diff is just because of cdparanoia. Actually, it's my diff; I'm Jesse. :) I can confirm that here as well. If the grip port is built using: make -D WITH_CDPARANOIA Then this is the diff you get: ------ Begin diff output ------ --- /home/jesse/tmp/grip-sorted-src-ldd-output.txt Thu Oct 30 12:53:31 2003 +++ /home/jesse/tmp/grip-sorted-port-ldd-output.txt Fri Oct 31 11:17:50 2003 @@ -54,4 +54,4 @@ libvte.so.5 => /usr/X11R6/lib/libvte.so.5 libxml2.so.5 => /usr/local/lib/libxml2.so.5 libz.so.2 => /usr/lib/libz.so.2 -/usr/local/bin/grip: +/usr/X11R6/bin/grip: ------ End diff output ------ > Unfortunatly I can't tell what's the > exact problem. I tried to modify Makefile with various things diabled, > but had no luck. My first thought was pthread since I had some problems > with it with my own ports, but disabling corresponding flags did not > help. I tried compiling the source with what I think looks like what the port is using: setenv CPPFLAGS "-I/usr/local/include -D_THREAD_SAFE" setenv LDFLAGS "-I/usr/local/lib -lc_r" ./configure gmake gmake install (I chose -lc_r because `/sbin/sysctl -n kern.osreldate` yields 501000, and /usr/ports/Mk/bsd.port.mk has: ---- begin bsd.port.mk snippet ---- .if ${OSVERSION} < 500016 PTHREAD_CFLAGS= -D_THREAD_SAFE PTHREAD_LIBS= -pthread .else PTHREAD_CFLAGS= -D_THREAD_SAFE PTHREAD_LIBS= -lc_r .endif ---- end bsd.port.mk snippet ---- And the source tarball still runs fine. > I ran configure with exact the same args and environment, but it > did not behave like the port does. But I think environment isn't really > exact the same since there were some default portsettings which I > missed. This is my assumption too. I placed: pre-configure: echo ${CONFIGURE_ENV} In the port Makefile and ran make. This gave me: CPPFLAGS=-I/usr/local/include -D_THREAD_SAFE LDFLAGS=-L/usr/local/lib -lc_r SHELL=/bin/sh CONFIG_SHELL=/bin/sh PORTOBJFORMAT=elf MAKE=gmake GTKDOC=false ESD_CONFIG=/usr/local/bin/esd-config So I then went to my source tarball and ran: sh CPPFLAGS="-I/usr/local/include -D_THREAD_SAFE" LDFLAGS="-L/usr/local/lib -lc_r" SHELL=/bin/sh CONFIG_SHELL=/bin/sh PORTOBJFORMAT=elf MAKE=gmake GTKDOC="false" ESD_CONFIG="/usr/local/bin/esd-config" ./configure (Which, to the best of my knowledge is exactly what the port Makefile is using.) And the source tarball still compiled and ran fine. I even checked the PATH env var, and it's identical to the path I'm using to build my source tarball. I'm stumped folks. -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net