Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Oct 2003 12:08:36 -0500
From:      Jesse Guardiani <jesse@wingnet.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: grip-3.1.2 still broken
Message-ID:  <bnu4uv$prf$1@sea.gmane.org>
References:  <bnpt58$4se$1@sea.gmane.org> <20031030040009.GA25467@rot13.obsecurity.org> <3FA0E685.1040101@web.de> <20031030102245.GA27971@rot13.obsecurity.org> <bnrbip$16r$1@sea.gmane.org> <bnrebi$8mf$1@sea.gmane.org> <20031030170334.GS96543@toxic.magnesium.net> <bnrjmj$mtv$1@sea.gmane.org> <3FA2244E.6040706@web.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bnu4uv$prf$1>