Subject: graphics/jasper build failure on OS X 10.4.8
To: None <pkgsrc-users@netbsd.org>
From: Mark E. Perkins <perkinsm@bway.net>
List: pkgsrc-users
Date: 01/07/2007 10:54:27
Greetings,
Attempting to build graphics/jasper on (PPC) Mac OS 10.4.8 (from pkgsrc HEAD
updated about an hour ago) ends with the multiply defined symbol errors
enumerated below.
Any suggestions for a fix? If not, I will send-pr.
Thanks,
Mark
============================================
gcc -pipe -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o
.libs/libjasper.1.0.0.dylib .libs/dummy.o
.libs/libjasper.lax/libbase.a/jas_cm.o
.libs/libjasper.lax/libbase.a/jas_debug.o
.libs/libjasper.lax/libbase.a/jas_getopt.o
.libs/libjasper.lax/libbase.a/jas_image.o
.libs/libjasper.lax/libbase.a/jas_icc.o
.libs/libjasper.lax/libbase.a/jas_iccdata.o
.libs/libjasper.lax/libbase.a/jas_init.o
.libs/libjasper.lax/libbase.a/jas_malloc.o
.libs/libjasper.lax/libbase.a/jas_seq.o
.libs/libjasper.lax/libbase.a/jas_stream.o
.libs/libjasper.lax/libbase.a/jas_string.o
.libs/libjasper.lax/libbase.a/jas_tmr.o
.libs/libjasper.lax/libbase.a/jas_tvp.o
.libs/libjasper.lax/libbase.a/jas_version.o
.libs/libjasper.lax/libbmp.a/bmp_cod.o .libs/libjasper.lax/libbmp.a/bmp_dec.o
.libs/libjasper.lax/libbmp.a/bmp_enc.o .libs/libjasper.lax/libjp2.a/jp2_cod.o
.libs/libjasper.lax/libjp2.a/jp2_dec.o .libs/libjasper.lax/libjp2.a/jp2_enc.o
.libs/libjasper.lax/libjpc.a/jpc_bs.o .libs/libjasper.lax/libjpc.a/jpc_cs.o
.libs/libjasper.lax/libjpc.a/jpc_dec.o .libs/libjasper.lax/libjpc.a/jpc_enc.o
.libs/libjasper.lax/libjpc.a/jpc_math.o .libs/libjasper.lax/libjpc.a/jpc_mct.o
.libs/libjasper.lax/libjpc.a/jpc_mqcod.o
.libs/libjasper.lax/libjpc.a/jpc_mqdec.o
.libs/libjasper.lax/libjpc.a/jpc_mqenc.o
.libs/libjasper.lax/libjpc.a/jpc_qmfb.o
.libs/libjasper.lax/libjpc.a/jpc_tagtree.o
.libs/libjasper.lax/libjpc.a/jpc_t1cod.o
.libs/libjasper.lax/libjpc.a/jpc_t1dec.o
.libs/libjasper.lax/libjpc.a/jpc_t1enc.o
.libs/libjasper.lax/libjpc.a/jpc_tsfb.o
.libs/libjasper.lax/libjpc.a/jpc_t2cod.o
.libs/libjasper.lax/libjpc.a/jpc_t2dec.o
.libs/libjasper.lax/libjpc.a/jpc_t2enc.o
.libs/libjasper.lax/libjpc.a/jpc_util.o
.libs/libjasper.lax/libjpg.a/jpg_dec.o .libs/libjasper.lax/libjpg.a/jpg_enc.o
.libs/libjasper.lax/libjpg.a/jpg_val.o .libs/libjasper.lax/libmif.a/mif_cod.o
.libs/libjasper.lax/libpgx.a/pgx_cod.o .libs/libjasper.lax/libpgx.a/pgx_dec.o
.libs/libjasper.lax/libpgx.a/pgx_enc.o .libs/libjasper.lax/libpnm.a/pnm_cod.o
.libs/libjasper.lax/libpnm.a/pnm_dec.o .libs/libjasper.lax/libpnm.a/pnm_enc.o
.libs/libjasper.lax/libras.a/ras_cod.o .libs/libjasper.lax/libras.a/ras_dec.o
.libs/libjasper.lax/libras.a/ras_enc.o
-L/Volumes/NetBSD/pkgsrc/graphics/jasper/work/.buildlink/lib -lm
/Volumes/NetBSD/pkgsrc/graphics/jasper/work/.buildlink/lib/libjpeg.dylib
-install_name /Volumes/NetBSD/pkg/lib/libjasper.1.dylib
-Wl,-compatibility_version -Wl,2 -Wl,-current_version -Wl,2.0
ld: multiple definitions of symbol _jpc_ft_qmfb2d
.libs/libjasper.lax/libjpc.a/jpc_dec.o definition of _jpc_ft_qmfb2d in section
(__DATA,__common)
.libs/libjasper.lax/libjpc.a/jpc_enc.o definition of _jpc_ft_qmfb2d in section
(__DATA,__common)
ld: multiple definitions of symbol _jpc_ns_qmfb2d
.libs/libjasper.lax/libjpc.a/jpc_dec.o definition of _jpc_ns_qmfb2d in section
(__DATA,__common)
.libs/libjasper.lax/libjpc.a/jpc_enc.o definition of _jpc_ns_qmfb2d in section
(__DATA,__common)
.libs/libjasper.lax/libjpc.a/jpc_qmfb.o definition of _jpc_ft_qmfb2d in
section (__DATA,__data)
.libs/libjasper.lax/libjpc.a/jpc_qmfb.o definition of _jpc_ns_qmfb2d in
section (__DATA,__data)
.libs/libjasper.lax/libjpc.a/jpc_t1cod.o definition of _jpc_ft_qmfb2d in
section (__DATA,__common)
.libs/libjasper.lax/libjpc.a/jpc_t1cod.o definition of _jpc_ns_qmfb2d in
section (__DATA,__common)
.libs/libjasper.lax/libjpc.a/jpc_t1dec.o definition of _jpc_ft_qmfb2d in
section (__DATA,__common)
.libs/libjasper.lax/libjpc.a/jpc_t1dec.o definition of _jpc_ns_qmfb2d in
section (__DATA,__common)
.libs/libjasper.lax/libjpc.a/jpc_t1enc.o definition of _jpc_ft_qmfb2d in
section (__DATA,__common)
.libs/libjasper.lax/libjpc.a/jpc_t1enc.o definition of _jpc_ns_qmfb2d in
section (__DATA,__common)
.libs/libjasper.lax/libjpc.a/jpc_tsfb.o definition of _jpc_ft_qmfb2d in
section (__DATA,__common)
.libs/libjasper.lax/libjpc.a/jpc_tsfb.o definition of _jpc_ns_qmfb2d in
section (__DATA,__common)
.libs/libjasper.lax/libjpc.a/jpc_t2dec.o definition of _jpc_ft_qmfb2d in
section (__DATA,__common)
.libs/libjasper.lax/libjpc.a/jpc_t2dec.o definition of _jpc_ns_qmfb2d in
section (__DATA,__common)
.libs/libjasper.lax/libjpc.a/jpc_t2enc.o definition of _jpc_ft_qmfb2d in
section (__DATA,__common)
.libs/libjasper.lax/libjpc.a/jpc_t2enc.o definition of _jpc_ns_qmfb2d in
section (__DATA,__common)
/usr/bin/libtool: internal link edit command failed
[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/Volumes/NetBSD/pkgsrc/graphics/jasper/work/.gcc/bin/gcc -pipe -dynamiclib
-Wl,-flat_namespace -Wl,-undefined -Wl,suppress -o .libs/libjasper.1.0.0.dylib
.libs/dummy.o .libs/libjasper.lax/libbase.a/jas_cm.o
.libs/libjasper.lax/libbase.a/jas_debug.o
.libs/libjasper.lax/libbase.a/jas_getopt.o
.libs/libjasper.lax/libbase.a/jas_image.o
.libs/libjasper.lax/libbase.a/jas_icc.o
.libs/libjasper.lax/libbase.a/jas_iccdata.o
.libs/libjasper.lax/libbase.a/jas_init.o
.libs/libjasper.lax/libbase.a/jas_malloc.o
.libs/libjasper.lax/libbase.a/jas_seq.o
.libs/libjasper.lax/libbase.a/jas_stream.o
.libs/libjasper.lax/libbase.a/jas_string.o
.libs/libjasper.lax/libbase.a/jas_tmr.o
.libs/libjasper.lax/libbase.a/jas_tvp.o
.libs/libjasper.lax/libbase.a/jas_version.o
.libs/libjasper.lax/libbmp.a/bmp_cod.o .libs/libjasper.lax/libbmp.a/bmp_dec.o
.libs/libjasper.lax/libbmp.a/bmp_enc.o .libs/libjasper.lax/libjp2.a/jp2_cod.o
.libs/libjasper.lax/libjp2.a/jp2_dec.o .libs/libjasper.lax/libjp2.a/jp2_enc.o
.libs/libjasper.lax/libjpc.a/jpc_bs.o .libs/libjasper.lax/libjpc.a/jpc_cs.o
.libs/libjasper.lax/libjpc.a/jpc_dec.o .libs/libjasper.lax/libjpc.a/jpc_enc.o
.libs/libjasper.lax/libjpc.a/jpc_math.o .libs/libjasper.lax/libjpc.a/jpc_mct.o
.libs/libjasper.lax/libjpc.a/jpc_mqcod.o
.libs/libjasper.lax/libjpc.a/jpc_mqdec.o
.libs/libjasper.lax/libjpc.a/jpc_mqenc.o
.libs/libjasper.lax/libjpc.a/jpc_qmfb.o
.libs/libjasper.lax/libjpc.a/jpc_tagtree.o
.libs/libjasper.lax/libjpc.a/jpc_t1cod.o
.libs/libjasper.lax/libjpc.a/jpc_t1dec.o
.libs/libjasper.lax/libjpc.a/jpc_t1enc.o
.libs/libjasper.lax/libjpc.a/jpc_tsfb.o
.libs/libjasper.lax/libjpc.a/jpc_t2cod.o
.libs/libjasper.lax/libjpc.a/jpc_t2dec.o
.libs/libjasper.lax/libjpc.a/jpc_t2enc.o
.libs/libjasper.lax/libjpc.a/jpc_util.o .libs/libjasper.lax/libjpg.a/jpg_dec.o
.libs/libjasper.lax/libjpg.a/jpg_enc.o .libs/libjasper.lax/libjpg.a/jpg_val.o
.libs/libjasper.lax/libmif.a/mif_cod.o .libs/libjasper.lax/libpgx.a/pgx_cod.o
.libs/libjasper.lax/libpgx.a/pgx_dec.o .libs/libjasper.lax/libpgx.a/pgx_enc.o
.libs/libjasper.lax/libpnm.a/pnm_cod.o .libs/libjasper.lax/libpnm.a/pnm_dec.o
.libs/libjasper.lax/libpnm.a/pnm_enc.o .libs/libjasper.lax/libras.a/ras_cod.o
.libs/libjasper.lax/libras.a/ras_dec.o .libs/libjasper.lax/libras.a/ras_enc.o
-L/Volumes/NetBSD/pkgsrc/graphics/jasper/work/.buildlink/lib -install_name
/Volumes/NetBSD/pkg/lib/libjasper.1.dylib -Wl,-compatibility_version -Wl,2
-Wl,-current_version -Wl,2.0 -std=gnu99
-I/Volumes/NetBSD/pkgsrc/graphics/jasper/work/.buildlink/include -lm -ljpeg
[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/Volumes/NetBSD/pkg/bin/libtool --mode=link --tag=CC gcc -pipe -O2
-I/Volumes/NetBSD/pkgsrc/graphics/jasper/work/.buildlink/include
-L/Volumes/NetBSD/pkgsrc/graphics/jasper/work/.buildlink/lib -o libjasper.la
-rpath /Volumes/NetBSD/pkg/lib -version-info 1:0:0 dummy.lo base/libbase.la
bmp/libbmp.la jp2/libjp2.la jpc/libjpc.la jpg/libjpg.la mif/libmif.la
pgx/libpgx.la pnm/libpnm.la ras/libras.la -lm -ljpeg
*** Error code 1
Stop.