Compilation Error

General
2005-05-28
2013-04-23
  • Ananta Duvvuri

    Ananta Duvvuri - 2005-05-28

    I get the below error while compiling using sh Build
    I use SLES 8 - any help would be appreciated. Thanks

    /usr/local/src/Sendmail/dk-milter-0.3.0/obj.Linux.2.4.21-251-smp.i686/libdk/libdk.a(dk.o): In function `dk_in_use':
    dk.o(.text+0x490): undefined reference to `ar_addquery'
    dk.o(.text+0x4ce): undefined reference to `ar_waitreply'
    dk.o(.text+0x4e5): undefined reference to `ar_cancelquery'
    dk.o(.text+0x570): undefined reference to `__dn_expand'
    dk.o(.text+0x57d): undefined reference to `__dn_skipname'
    dk.o(.text+0x63b): undefined reference to `__dn_expand'
    dk.o(.text+0x9b6): undefined reference to `ar_strerror'
    /usr/local/src/Sendmail/dk-milter-0.3.0/obj.Linux.2.4.21-251-smp.i686/libdk/libdk.a(dk.o): In function `dk_get_key':
    dk.o(.text+0xd19): undefined reference to `ar_addquery'
    dk.o(.text+0xd3f): undefined reference to `ar_waitreply'
    dk.o(.text+0xd53): undefined reference to `ar_cancelquery'
    dk.o(.text+0xdd8): undefined reference to `__dn_expand'
    dk.o(.text+0xde5): undefined reference to `__dn_skipname'
    dk.o(.text+0xeb2): undefined reference to `__dn_expand'
    dk.o(.text+0x1341): undefined reference to `ar_strerror'
    /usr/local/src/Sendmail/dk-milter-0.3.0/obj.Linux.2.4.21-251-smp.i686/libdk/libdk.a(dk.o): In function `dk_init':
    dk.o(.text+0x1f92): undefined reference to `ar_init'
    collect2: ld returned 1 exit status
    make[1]: *** [dk-filter] Error 1
    make[1]: Leaving directory `/usr/local/src/Sendmail/dk-milter-0.3.0/obj.Linux.2.4.21-251-smp.i686/dk-filter'
    make: *** [all] Error 2

     
    • Anonymous - 2005-05-31

      It looks like you enabled libar in libdk/Makefile.m4 but not in dk-filter/Makefile.m4.  You need to have it in both places.

      The dn_expand() and dn_skipname() functions should be present in your system's resolver (libc or libresolv).  If necessary, try adding -lresolv to your build.

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks