RE: libdvdread-0.9.4: can't linking against libdvdcss
"Gansser, Martin" <[email protected]>
| Newsgroups | gmane.comp.video.ogle.devel |
|---|---|
| Message-ID | <78224A6821F87A4D8023B133E5B1140B40CAB5@srvmxellwangen2.ratc-de.com> |
> -----Original Message----- > From: H}kan Hjort [mailto:[email protected]] > Sent: Saturday, March 22, 2003 9:45 PM > To: Gansser, Martin > Cc: [email protected] > Subject: Re: [Ogle-devel] libdvdread-0.9.4: can't linking against > libdvdcss > > > 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 I changed the AC_CHECK_LIB line to AC_CHECK_LIB, (autoconf; aclocal; automake is done) but the configure script fails on hpux and linux with: Makefile:231: *** missing separator. Stop. what it wrong ? thanks Martin