#89 davfs2-1.3.3 make problem

closed-out-of-date
None
5
2009-05-03
2008-11-25
ntalkrescued
No

I have libiconv-1.12 compiled and installed from source tarball.

I've tried running configure like this:
./configure
./configure --with-libiconv-prefix=/usr/local

and both of them give this error during make:
gcc -Wall -g -O2 -I/usr/local/include/neon -D_LARGEFILE64_SOURCE -DNE_LFS -o mount.davfs cache.o dav_coda2.o dav_coda3.o dav_fuse5.o dav_fuse7.o kernel_interface.o mount_davfs.o webdav.o -L/usr/local/lib -lneon -lz -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -lexpat
webdav.o(.text+0x506): In function `dav_init_webdav':
/root/davfs2-1.3.3/src/webdav.c:290: undefined reference to `libiconv_open'
webdav.o(.text+0x525):/root/davfs2-1.3.3/src/webdav.c:293: undefined reference to `libiconv_open'
webdav.o(.text+0x55c):/root/davfs2-1.3.3/src/webdav.c:304: undefined reference to `libiconv_open'
webdav.o(.text+0x577):/root/davfs2-1.3.3/src/webdav.c:307: undefined reference to `libiconv_open'
webdav.o(.text+0x799): In function `convert':
/root/davfs2-1.3.3/src/webdav.c:1225: undefined reference to `libiconv'
webdav.o(.text+0x7ae):/root/davfs2-1.3.3/src/webdav.c:1226: undefined reference to `libiconv'
collect2: ld returned 1 exit status
make[2]: *** [mount.davfs] Error 1
make[2]: Leaving directory `/root/davfs2-1.3.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/davfs2-1.3.3'
make: *** [all] Error 2
[root@wilber davfs2-1.3.3]#

I had to run configure like this:
[root@wilber davfs2-1.3.3]# ./configure CFLAGS=-liconv

and then make completed successfully.

Discussion

  • Werner Baumann
    Werner Baumann
    2008-11-25

    iconv ist part of glibc for many years now, and it should be for many other Unix-like systems. I could not find any hints about portability problems with iconv in the GNU autoconf documentation and autoscan does not report any problems (GNU Autoconf 2.61). So I never cared about.

    Would be nice to have some information about your system and why you need a separate libiconf.

    The davfs2 build scripts are not prepared for handling this case. As far as I can see, libiconv comes with a m4-macro. You will have to tweak at least configure.ac and src/makefile.am.

    Maybe there is a way to include support for a separate libiconv but to use the functions from libc if present.

    Cheers
    Werner

     
  • Werner Baumann
    Werner Baumann
    2008-11-25

    • assigned_to: nobody --> wbaumann
     
  • Werner Baumann
    Werner Baumann
    2008-11-25

    iconv ist part of glibc for many years now, and it should be for many other Unix-like systems. I could not find any hints about portability problems with iconv in the GNU autoconf documentation and autoscan does not report any problems (GNU Autoconf 2.61). So I never cared about.

    Would be nice to have some information about your system and why you need a separate libiconf.

    The davfs2 build scripts are not prepared for handling this case. As far as I can see, libiconv comes with a m4-macro. You will have to tweak at least configure.ac and src/makefile.am.

    Maybe there is a way to include support for a separate libiconv but to use the functions from libc if present.

    Cheers
    Werner

     
  • Werner Baumann
    Werner Baumann
    2009-05-03

    • status: open --> closed-out-of-date