pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [LINUX][PATCH] mMosaic needs additional lib
Thomas Klausner <wiz%NetBSD.org@localhost> wrote:
> Where you hardcoded "-ldl" just use ${BUILDLINK_LIBS.dl}, move it
> outside of the ifdef linux, and include
> "../../mk/dlopen.buildlink3.mk" in the Makefile.
I tried this but it doesn't seem to work: the '-ldl' won't appear in the
cc command line. Relevant part of the log and modified pkgsrc Makefile
follow.
P.S.: also tried without double-quotes around ${BUILDLINK_LIBS.dl}
-----BEGIN BUILD LOG SNIPPET-----
[...]
cc -o mMosaic main.o gui.o gui-dialogs.o gui-menubar.o gui-documents.o
gui-news.o newsrc.o gui-extras.o hotlist.o navigate.o globalhist.o img.o
picread.o xpmhash.o xpmread.o gifread.o pixmaps.o child.o mailto.o md5.o
URLParse.o telnet-proto.o compress.o proxy-dialogs.o gui-popup.o readJPEG.o
readPNG.o cache.o Xmx.o paf.o converter.o www-con.o file-proto.o http-proto.o
MIME.o ftp-proto.o util.o ho.o ../libhtmlw/libhtmlw.a ../libnut/libnut.a
/usr/pkgsrc/www/mMosaic/work/mMosaic-src-3.7.2/libmc/libmc.a -ljpeg
-Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lpng16 -L/usr/lib
-L/usr/pkg/lib -lXm -lXmu -lXt -lXext -lX11 -lm -Wl,-R/usr/lib
-Wl,-R/usr/pkg/lib
/usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../i486-slackware-linux/bin/ld:
ho.o: undefined reference to symbol 'dlopen@@GLIBC_2.1'
/usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../i486-slackware-linux/bin/ld:
note: 'dlopen@@GLIBC_2.1' is defined in DSO /lib/libdl.so.2 so try adding it
to the linker command line
/lib/libdl.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/www/mMosaic/work/mMosaic-src-3.7.2/src
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/www/mMosaic/work/mMosaic-src-3.7.2
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/www/mMosaic
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/www/mMosaic
Exit 1
-----END BUILD LOG SNIPPET-----
-----BEGIN MODIFIED PKGSRC MAKEFILE-----
# $NetBSD: Makefile,v 1.29 2013/02/16 11:24:54 wiz Exp $
#
DISTNAME= mMosaic-3.7.2
PKGREVISION= 11
CATEGORIES= www
MASTER_SITES= ftp://ftp.enst.fr/pub/mbone/mMosaic/
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= http://perso.telecom-paristech.fr/~dauphin/mMosaic/
COMMENT= Modern derivative of NCSA XMosaic
MAKE_JOBS_SAFE= no
WRKSRC= ${WRKDIR}/mMosaic-src-3.7.2
INSTALLATION_DIRS= bin
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/mMosaic ${DESTDIR}${PREFIX}/bin/
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/motif.buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
MAKEFLAGS+= sysconfigflags='-DNETBSD -DMOTIF1_2'
.elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
MAKEFLAGS+= sysconfigflags='-DFreeBSD -DMOTIF1_2'
.elif ${OPSYS} == "Linux"
MAKEFLAGS+= sysconfigflags='-DLINUX -Dlinux -DMOTIF1_2'
.elif ${OPSYS:MIRIX*} != ""
MAKEFLAGS+= sysconfigflags='-DSVR4 -DIRIX -DMOTIF1_2'
.elif ${OPSYS} == "Darwin"
BUILDLINK_TRANSFORM+= rename:-shared:-c
.endif
MAKEFLAGS+= syslibs="${BUILDLINK_LIBS.dl}"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
-----END MODIFIED PKGSRC MAKEFILE-----
Home |
Main Index |
Thread Index |
Old Index