[libbluray-devel] MacOSX compile-link problems with libbluray & libaacs ("duplicate symbols")

sci-fi at hush.ai sci-fi at hush.ai
Sun Aug 1 04:24:14 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[sent to both: libbluray-devel at videolan.org, libaacs-
devel at videolan.org]


Hi,

I have been trying to find the right place to discuss compile
problems with libbluray.

Some recent commit(s) have caused the (infamous) "duplicate
symbol" problem with MacOSX XCode on 10.5.8 (C2D iMac):

>>>>
[…]
/bin/sh ../libtool --tag=CC   --mode=link gcc-4.2 -std=c99 -
D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -D_REENTRANT -Wall -
Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-
qual -Wwrite-strings -Wundef -Wextra -Winline -fomit-frame-pointer -
g -I.. -Ifile -Ilibbluray/bdnav  -fast      -mtune=core2 -
march=core2 -force_cpusubtype_ALL  -arch i386  -version-info
"0:0:0" -ldl -fast      -mtune=core2 -march=core2 -
force_cpusubtype_ALL  -arch i386  -o libbluray.la -rpath
/usr/local/lib bluray.lo register.lo index_parse.lo navigation.lo
sound_parse.lo clpi_parse.lo mpls_parse.lo hdmv_vm.lo mobj_parse.lo
mobj_print.lo dir_posix.lo file_posix.lo dl_posix.lo filesystem.lo
strutl.lo logging.lo   -L/usr/local/ssl/lib -
L/usr/local/lib/libquicktime -L/usr/local/lib -L/usr/X11/lib -
L/usr/lib
libtool: link: gcc-4.2 -dynamiclib -Wl,-undefined -
Wl,dynamic_lookup -o .libs/libbluray.0.dylib  .libs/bluray.o
.libs/register.o .libs/index_parse.o .libs/navigation.o
.libs/sound_parse.o .libs/clpi_parse.o .libs/mpls_parse.o
.libs/hdmv_vm.o .libs/mobj_parse.o .libs/mobj_print.o
.libs/dir_posix.o .libs/file_posix.o .libs/dl_posix.o
.libs/filesystem.o .libs/strutl.o .libs/logging.o   -ldl -
L/usr/local/ssl/lib -L/usr/local/lib/libquicktime -L/usr/local/lib -
L/usr/X11/lib -L/usr/lib  -mtune=core2 -march=core2 -arch i386 -
mtune=core2 -march=core2 -arch i386   -install_name
/usr/local/lib/libbluray.0.dylib -compatibility_version 1 -
current_version 1.0 -Wl,-single_module
ld: duplicate symbol _file_open in .libs/index_parse.o and
.libs/bluray.o
collect2: ld returned 1 exit status
make[3]: *** [libbluray.la] Error 1
make[3]: Leaving directory
`/Volumes/Big1500Doing/Projects/bluray_git/libbluray/src'
[…]
<<<<

Similar thing for libaacs (freshly git-pulled also):
>>>>
/bin/sh ../libtool --tag=CC   --mode=link gcc-4.2 -std=c99 -
D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -D_REENTRANT -Wall -
Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-
qual -Wwrite-strings -Wundef -Wextra -Winline -fomit-frame-pointer -
g -I.. -Ifile -fast      -mtune=core2 -march=core2 -
force_cpusubtype_ALL  -arch i386  -version-info "0:0:0" -fast      -
mtune=core2 -march=core2 -force_cpusubtype_ALL  -arch i386  -o
libaacs.la -rpath /usr/local/lib aacs.lo mmc.lo crypto.lo mkb.lo
file_posix.lo keydbcfg-parser.lo keydbcfg-lexer.lo logging.lo
strutl.lo  -lgcrypt -L/usr/local/ssl/lib -
L/usr/local/lib/libquicktime -L/usr/local/lib -L/usr/X11/lib -
L/usr/lib
libtool: link: gcc-4.2 -dynamiclib -Wl,-undefined -
Wl,dynamic_lookup -o .libs/libaacs.0.dylib  .libs/aacs.o
.libs/mmc.o .libs/crypto.o .libs/mkb.o .libs/file_posix.o
.libs/keydbcfg-parser.o .libs/keydbcfg-lexer.o .libs/logging.o
.libs/strutl.o   /usr/local/lib/libgcrypt.dylib -
L/usr/local/ssl/lib -L/usr/local/lib/libquicktime -L/usr/local/lib -
L/usr/X11/lib -L/usr/lib /usr/local/lib/libgpg-error.dylib
/usr/local/lib/libintl.dylib /usr/local/lib/libiconv.dylib -lc  -
mtune=core2 -march=core2 -arch i386 -mtune=core2 -march=core2 -arch
i386   -install_name  /usr/local/lib/libaacs.0.dylib -
compatibility_version 1 -current_version 1.0 -Wl,-single_module
ld: duplicate symbol _file_open in .libs/mkb.o and .libs/aacs.o
collect2: ld returned 1 exit status
make[4]: *** [libaacs.la] Error 1
make[4]: Leaving directory
`/Volumes/Big1500Doing/Projects/libaacs/src'
<<<<

I did do "make clean distclean" before doing "git pull".
I noticed the .ac files may have changed on some recent
commit(s) also, so I reran ./bootstrap also.

I do have an earlier successful build I did of libbluray
installed here, MPlayer SVN discovers it just fine during its
own ./configure step by itself, and builds fine, but I've not
tested it with an actual movie-disc yet.

(BTW I never could get libaacs to build.  And yes I do know
how sensitive this particular project is.)

IIRC Apple used to let us add -m to ld for these situations,
but they have decided to remove that option anymore.

Can anyone help?
Can the trac accept bug-reports for libbluray & libaacs yet?
( should I file this there instead ? )

I also would love for gmane to follow these new mail-lists
(I am registered there, also, and works much better for me
with their news-server thru Pan).  IIUC a higher-up with
these mail-lists ought to submit the requests there.

Thank you.


-----BEGIN PGP SIGNATURE-----
Charset: UTF8
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 3.0

wkYEARECAAYFAkxU2s8ACgkQZbt5KOxKrtRQbACfWHzB192q71AgAJygAgR8FZVDAScA
oLQjd2OLy0Xkqubbj5DtFDrho9iz
=k/2c
-----END PGP SIGNATURE-----



More information about the libbluray-devel mailing list