Menu

compiling error linknx

Help
magriii
2009-03-20
2012-12-14
  • magriii

    magriii - 2009-03-20

    I try to complile under Debian x86. Compling fails with the following error message.
    Any ideas? Thanks.
    Manfred

    make[2]: Entering directory `/root/linknx/linknx-0.0.1.26/src'
    g++  -g -O2   -o linknx  linknx.o ruleserver.o objectcontroller.o common.o eibclient.o threads.o timermanager.o persistentstorage.o xmlserver.o smsgateway.o emailgateway.o knxconnection.o services.o suncalc.o luacondition.o ioport.o logger.o ../ticpp/libticpp.a -L/usr/local/lib -lpthsem -ldl -lnsl  -L/usr/local/lib -llog4cpp -lnsl   -llua5.1   -lm
    /usr/local/lib/liblog4cpp.so: undefined reference to `pthread_getspecific'
    /usr/local/lib/liblog4cpp.so: undefined reference to `pthread_key_delete'
    /usr/local/lib/liblog4cpp.so: undefined reference to `pthread_key_create'
    /usr/local/lib/liblog4cpp.so: undefined reference to `pthread_setspecific'
    collect2: ld returned 1 exit status
    make[2]: *** [linknx] Fehler 1
    make[2]: Leaving directory `/root/linknx/linknx-0.0.1.26/src'
    make[1]: *** [all-recursive] Fehler 1
    make[1]: Leaving directory `/root/linknx/linknx-0.0.1.26'
    make: *** [all] Fehler 2
    s2:~/linknx/linknx-0.0.1.26#

     
    • magriii

      magriii - 2009-03-20

      pthsem version is 2.0.7

       
    • jef2000

      jef2000 - 2009-03-20

      Hi,

      I think it's a bug in log4cpp library. Log4cpp is compiled to use pthread, but the necessary linker flag is not present. If log4cpp was working correctly, the command "log4cpp-config --libs" would contain "-lpthread", but it's not the case.
      As a workaround, you can add the following option to the ./configure script:
      LDFLAGS=-lpthread

      Regards,

      Jean-François

       
    • magriii

      magriii - 2009-03-22

      Thank you, it's working now

       

Log in to post a comment.