libcdio-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libcdio-devel] Latest libcdio on FreeBSD


From: Tilman Linneweh
Subject: Re: [Libcdio-devel] Latest libcdio on FreeBSD
Date: Thu, 9 Dec 2004 11:48:43 +0100
User-agent: Mutt/1.4.2.1i

* "R. Bernstein" [Thu, 09 Dec 2004 at 02:02 GMT]:
> > * While linking cd-info the linker picked up the old libcdio from 
> > the system instead of the new build one, resulting in a non-working
> > binary, after deinstallation of the old library
>
> I'm not sure I understand. Are you saying that "make uninstall" failed
> to remove something? If so, what? 

No I compiled with the old vcdimager version installed, than uninstalled 
the old version and installed the new version.

The new cd-info then complains:
$ cd-info
/usr/libexec/ld-elf.so.1: Shared object "libcdio.so.2" not found, required by 
"cd-info"

But I later came to the conclusion that this problem is caused by the old
vcdimager, so i think this problem is not solvable at the moment.

> > * The configure check for libiconv is only 90% correct, it does not check
> > if it needs to add -liconv to LDFLAGS, I think the libiconv developers have
> > an uptodate m4 
>
> Again I'm not sure I understand. If you believe the problem is derived
> from and old iconv.m4 I compared what was in the directory I made this
> with the libiconv-1.9.2/m4/iconv.m4 from ftp.gnu.org and get the same
> source. 

Hm, you are right you have the latest version.
So i have to find out why it is not working here :-(

It looks like --with-libiconv-prefix is ignored:

$ ./configure --with-libpopt-prefix=/usr/local 
--with-libiconv-prefix=/usr/local --prefix=/usr/local 
--build=i386-portbld-freebsd4.10

configure:22285: checking for iconv
configure:22312: cc -o conftest -O -pipe -march=k6 -Wall -Wchar-subscripts 
-Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith 
-Wwrite-strings -Wnested-externs -Wno-sign-compare   conftest.c  -lm -lcam >&5
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Why doesn't it use libiconv-prefix as set in configure args? According to the 
configure code, this should be the first that is checked.

conftest.c:42: iconv.h: No such file or directory
conftest.c: In function `main':
conftest.c:46: syntax error before `cd'
conftest.c:47: warning: implicit declaration of function `iconv'
conftest.c:47: `cd' undeclared (first use in this function)
conftest.c:47: (Each undeclared identifier is reported only once
conftest.c:47: for each function it appears in.)
conftest.c:48: warning: implicit declaration of function `iconv_close'
configure:22318: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "libcdio"
| #define PACKAGE_TARNAME "libcdio"
| #define PACKAGE_VERSION "0.71"
| #define PACKAGE_STRING "libcdio 0.71"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libcdio"
| #define VERSION "0.71"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_STDIO_H 1
| #define HAVE_SYS_CDIO_H 1
| #define HAVE_GLOB_H 1
| #define HAVE_STDBOOL_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_ISOC99_PRAGMA
| #define EMPTY_ARRAY_SIZE 0
| #define BITFIELD_LSBF
| #define HAVE_DLFCN_H 1
| #define HAVE_FREEBSD_CDROM 1
| #define LIBCDIO_SOURCE_PATH "/usr/home/tilman/ports/libcdio/work/libcdio-0.71"
| #define HAVE_BZERO 1
| #define HAVE_FTRUNCATE 1
| #define HAVE_MEMCPY 1
| #define HAVE_MEMSET 1
| #define HAVE_SNPRINTF 1
| #define HAVE_TZSET 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_TM_GMTOFF 1
| /* end confdefs.h.  */
| #include <stdlib.h>
| #include <iconv.h>
| int
| main ()
| {
| iconv_t cd = iconv_open("","");
|        iconv(cd,NULL,NULL,NULL,NULL);
|        iconv_close(cd);
|   ;
|   return 0;
| }
configure:22363: cc -o conftest -O -pipe -march=k6 -Wall -Wchar-subscripts 
-Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith 
-Wwrite-strings -Wnested-externs -Wno-sign-compare   conftest.c  -lm -lcam 
-liconv >&5
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Same here, -liconv is correct, but no libiconv-prexif in CFLAGS

conftest.c:42: iconv.h: No such file or directory
conftest.c: In function `main':
conftest.c:46: syntax error before `cd'
conftest.c:47: warning: implicit declaration of function `iconv'
conftest.c:47: `cd' undeclared (first use in this function)
conftest.c:47: (Each undeclared identifier is reported only once
conftest.c:47: for each function it appears in.)
conftest.c:48: warning: implicit declaration of function `iconv_close'
configure:22369: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "libcdio"
| #define PACKAGE_TARNAME "libcdio"
| #define PACKAGE_VERSION "0.71"
| #define PACKAGE_STRING "libcdio 0.71"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libcdio"
| #define VERSION "0.71"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_STDIO_H 1
| #define HAVE_SYS_CDIO_H 1
| #define HAVE_GLOB_H 1
| #define HAVE_STDBOOL_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_ISOC99_PRAGMA
| #define EMPTY_ARRAY_SIZE 0
| #define BITFIELD_LSBF
| #define HAVE_DLFCN_H 1
| #define HAVE_FREEBSD_CDROM 1
| #define LIBCDIO_SOURCE_PATH "/usr/home/tilman/ports/libcdio/work/libcdio-0.71"
| #define HAVE_BZERO 1
| #define HAVE_FTRUNCATE 1
| #define HAVE_MEMCPY 1
| #define HAVE_MEMSET 1
| #define HAVE_SNPRINTF 1
| #define HAVE_TZSET 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_TM_GMTOFF 1
| /* end confdefs.h.  */
| #include <stdlib.h>
| #include <iconv.h>
| int
| main ()
| {
| iconv_t cd = iconv_open("","");
|          iconv(cd,NULL,NULL,NULL,NULL);
|          iconv_close(cd);
|   ;
|   return 0;
| }
configure:22397: result: no, consider installing GNU libiconv
configure:22499: checking for nl_langinfo and CODESET
configure:22520: cc -o conftest -O -pipe -march=k6 -Wall -Wchar-subscripts 
-Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith 
-Wwrite-strings -Wnested-externs -Wno-sign-compare   conftest.c  -lm -lcam >&5
conftest.c: In function `main':
conftest.c:45: warning: unused variable `cs'
configure:22526: $? = 0
configure:22530: test -z 
                         || test ! -s conftest.err
configure:22533: $? = 0
configure:22536: test -s conftest
configure:22539: $? = 0
configure:22552: result: yes
configure:22569: WARNING: You must have iconv installed to get Joliet extension 
support.


I worked around it, by adding the CFLAGS and LDFLAGS to the environment,
so this is not a serious problem.

>
> > * Can you add a freebsd6* to configure? At the moment the CAM layer is
> > identically to FreeBSD 5.x, so libcdio should work.
>
> Should be in CVS, please check. 

Thanks you very much!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]