Date: Tue, 18 Jan 2000 02:44:43 +0900 From: OKAZAKI Tetsurou <okazaki@be.to> To: reg@FreeBSD.ORG Cc: freebsd-ports@FreeBSD.ORG Subject: Re: ports/15936: new port: devel/libgii Message-ID: <864sccoano.wl@dolphin.be.to> In-Reply-To: In your message of "Sun, 16 Jan 2000 14:07:38 -0800" <20000116140737.B10368@shale.csir.co.za> References: <200001151540.HAA32907@freefall.freebsd.org> <20000116140737.B10368@shale.csir.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, In the message <20000116140737.B10368@shale.csir.co.za> Jeremy Lea <reg@FreeBSD.ORG> wrote: > On Sat, Jan 15, 2000 at 07:40:02AM -0800, OKAZAKI Tetsurou wrote: > > +# NOTE: We can not define USE_LIBTOOL for this port to build. > > +#USE_LIBTOOL= yes > Please try the following patch to /usr/ports/devel/libtool. The error > message from libtool makes no sense, and things seem to work without > this. I'll commit it if you give a thumbs up. > Index: patches/patch-ad > =================================================================== > RCS file: /usr/home/ncvs/ports/devel/libtool/patches/patch-ad,v Thank you, I reinstalled devel/libtool with your patch and built libgii too, but the result is not good at some points. 1) Libgg's dependency on the libc_r. In the build log, libgg.so.0 is created by this command line. ----------------------------------------------------------------- /bin/sh ../libtool --mode=link cc -O -pipe -D_REENTRANT -D_THREAD_SAFE -g -Wall -o libgg.la -rpath /usr/local/lib -version-info 0:6 cleanup.lo conf.lo debug.lo dl.lo init.lo misc.lo parse.lo ptlock.lo -pthread mkdir .libs ln -s cleanup.lo cleanup.o ..<<snip>>.. ln -s ptlock.lo ptlock.o cc -shared -Wl,--rpath -Wl,/usr/local/lib cleanup.lo conf.lo debug.lo dl.lo init.lo misc.lo parse.lo ptlock.lo -pthread -Wl,-soname -Wl,libgg.so.0 -o .libs/libgg.so.0 ----------------------------------------------------------------- Implementations of the libgg call pthread_* functions but the library built by the above process does not have a dependency information onto libc_r. Bash-2.03$ objdump --all-headers libgg.so.0 |grep NEEDED outputs no message. 2) Build-time library path in the RPATH entry. The shared library libggi.so.0 is built by: ----------------------------------------------------------------- /bin/sh ../libtool --mode=link cc -O -pipe -D_REENTRANT -D_THREAD_SAFE -g -Wall -o libgii.la -rpath /usr/local/lib -version-info 0:6 dl.lo gii.lo init.lo unix.lo ../gg/libgg.la mkdir .libs ln -s dl.lo dl.o ..<<snip>>.. ln -s unix.lo unix.o cc -shared -Wl,--rpath -Wl,/usr/home/refactor/work/usr/home/refactor/Ports/devel/libgii/work/libgii-0.6/gg/.libs -Wl,--rpath -Wl,/usr/local/lib dl.lo gii.lo init.lo unix.lo ../gg/.libs/libgg.so -Wl,-soname -Wl,libgii.so.0 -o .libs/libgii.so.0 ----------------------------------------------------------------- Therefore, installed libgii.so.0 has a RPATH element which points under the ${WRKSRC} directory. bash-2.03$ objdump --all-headers libgii.so.0 |grep -C NEEDED Dynamic Section: NEEDED libgg.so.0 SONAME libgii.so.0 RPATH /usr/home/refactor/work/usr/home/refactor/Ports/devel/libgii/work/libgii-0.6/gg/.libs:/usr/local/lib I don't analyze the reason of this yet. -*- -*- -*- By the way, Jeremy, do you have a plan to update the base version of your libtool port to libtool-1.3.4 :-)? Best regards. -- Tetsurou To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864sccoano.wl>