Re: libdvdread-0.9.4: can't linking against libdvdcss
H}kan Hjort <[email protected]>
| Newsgroups | gmane.comp.video.ogle.devel |
|---|---|
| Message-ID | <[email protected]> |
Sat Mar 22 2003, Gansser, Martin wrote:
> > I'll look at the HPUX way of doing dlopen as soon as I can, or submit
> > a real patch agains libdvdread.
>
> a possible solution could be this patch:
>
> # diff -Naur configure.in.orig configure.in
> --- configure.in.orig 2003-03-14 14:53:37.000000000 +0100
> +++ configure.in 2003-03-14 17:28:52.000000000 +0100
> @@ -81,11 +81,24 @@
> else
> saved_CFLAGS=$CFLAGS
> CFLAGS="$CFLAGS -L$dvdcss_path/lib"
> - AC_CHECK_LIB(dvdcss, dvdcss_interface_2,
> +
> + case "$host" in
> + *-hpux*)
> + AC_CHECK_LIB(dvdcss, dvdcss_open,
The HPUX linker is correct here in that dvdcss_interface_2 isn't a
function symbol (it's a string symbol). The reson that I test for
dvdcss_interface_2 and not dvdcss_open though is that that is the only
new symbol in the library over the 0.0.x versions.
So we need some other way to test if we have the new version of
libdvdcss instead, not just making a weaker test on HPUX.
Could you try
AC_TRY_LINK([#include <dvdcss/dvdcss.h>], [char **v = &dvdcss_interface_2;],
[ CSS_LIBS="-L$dvdcss_path/lib -R$dvdcss_path/lib -ldvdcss"
CSS_CFLAGS=-I$dvdcss_path/include ],
AC_MSG_ERROR(You need libdvdcss.so.2 or later)
)
instead of the following code
AC_CHECK_LIB(dvdcss, dvdcss_interface_2,
[ CSS_LIBS="-L$dvdcss_path/lib -R$dvdcss_path/lib -ldvdcss"
CSS_CFLAGS=-I$dvdcss_path/include ],
AC_MSG_ERROR(You need libdvdcss.so.2 or later)
)
The other case without the path would also have to be chaged in the same
way if it works.
--
Håkan Hjort