Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  7 Feb 2003 18:17:53 +1100 (EST)
From:      Edwin Groothuis <edwin@mavetju.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        kde@FreeBSD.org
Subject:   ports/48030: x11-toolkits/qt31 isn't LD_LIBRARY_PATH friendly
Message-ID:  <20030207071753.072746A712B@k7.mavetju>

next in thread | raw e-mail | index | archive | help

>Number:         48030
>Category:       ports
>Synopsis:       x11-toolkits/qt31 isn't LD_LIBRARY_PATH friendly
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 06 23:20:08 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Edwin Groothuis
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju 4.5-RELEASE FreeBSD 4.5-RELEASE #4: Sat Sep 14 10:41:50 EST 2002 edwin@k7.mavetju:/usr/src/sys/compile/k7 i386

>Description:

Trying to compile x11-toolkits/qt31 on a machine which
doesn't have LOCALBASE pointing to /usr/local fails and LD_LIBRARY_PATH
is pointing to the right directories:

[~/ports-5/x11-toolkits/qt31] edwin@ref5>echo $LD_LIBRARY_PATH
/home/edwin/local-5/lib:/home/edwin/X11R6-5/lib

[~/ports-5/x11-toolkits/qt31] edwin@ref5>make
===>  Building for qt-3.1.1_2
cd qmake && gmake
[...]
gmake[3]: Entering directory `/local0/scratch/edwin/ports/x11-toolkits/qt31/work/qt-x11-free-3.1.1/tools/designer/designer'
/local0/scratch/edwin/ports/x11-toolkits/qt31/work/qt-x11-free-3.1.1/bin/uic -L /local0/scratch/edwin/ports/x11-toolkits/qt31/work/qt-x11-free-3.1.1/plugins newform.ui -o newform.h
/usr/libexec/ld-elf.so.1: Shared object "liblcms.so.1" not found

When printing $LD_LIBRARY_PATH before this command is execute, it
suddenly pointing to /local0/scratch/edwin/ports/x11-toolkits/qt31/work/qt-x11-free-3.1.1/lib only.

>How-To-Repeat:

See above

>Fix:

RCS file: /home/ncvs/ports/x11-toolkits/qt31/Makefile,v
retrieving revision 1.129
diff -u -r1.129 Makefile
--- Makefile    31 Jan 2003 22:55:56 -0000      1.129
+++ Makefile    7 Feb 2003 07:16:46 -0000
@@ -63,7 +63,7 @@
 
 CONFIGURE_ENV= ${ECHO} yes | QTDIR=${WRKSRC} PATH=${WRKSRC}/bin:$$PATH
 MAKE_ENV?=     QTDIR=${WRKSRC} \
-               LD_LIBRARY_PATH=${WRKSRC}/lib \
+               LD_LIBRARY_PATH=${WRKSRC}/lib:${LD_LIBRARY_PATH} \
                PATH=${WRKSRC}/bin:$$PATH
 ALL_TARGET=    sub-tools
 

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030207071753.072746A712B>