Menu

Running eibd on a Solaris Zone

manuel
2015-01-22
2015-01-27
  • manuel

    manuel - 2015-01-22

    Hello,

    i try to compile eibd on a Solaris Zone. But i can't get it to run.

    ./configure --enable-onlyeibd --enable-eibnetip --enable-eibnetipserver
    --disable-usb --disable-dependency-tracking --with-pth=/usr/local
    --without-pth-test CFLAGS="-I/usr/local/include -I/usr/include"
    LDFLAGS="-L/usr/local/lib -L/usr/lib" LIBS='-lnsl -lsocket'

    with these options i get error on configure:

    checking for library containing argp_parse... -largp
    checking linux/serial.h usability... no
    checking linux/serial.h presence... no
    checking for linux/serial.h... no
    configure: WARNING: No supported low latency mode found
    checking for linux/rtnetlink.h... no
    checking for linux/usbdevice_fs.h... no
    checking for iphlpapi.h... no
    checking whether SA_SIZE is declared... no
    checking whether FreeBSD is declared... no
    checking whether APPLE is declared... no
    checking for gethostbyname_r... yes
    configure: error: not all needed functions for EIBnet/IP server available

    with these options configure runs fine but i get error on comile:

    ./configure --enable-onlyeibd --enable-eibnetip --disable-usb
    --with-pth=/usr/local --without-pth-test CFLAGS=-I/usr/local/include
    LDFLAGS=-L/usr/local/lib LIBS='-lnsl -lsocket'

    Making all in server
    gmake[3]: Entering directory /usr/share/src/bcusdk-0.0.5/eibd/server' /bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -fno-rtti -fno-exceptions -L/usr/local/lib -o eibd eibd.o ../backend/libbackend.a ../libserver/libeibstack.a ../../common/libcommon.a ../usb/libusb.a -L/usr/local/lib -lpthsem -lsocket -largp -lnsl -lsocket libtool: link: g++ -g -O2 -fno-rtti -fno-exceptions -o eibd eibd.o -L/usr/local/lib ../backend/libbackend.a ../libserver/libeibstack.a ../../common/libcommon.a ../usb/libusb.a /usr/local/lib/libpthsem.so -largp -lnsl -lsocket -Wl,-R -Wl,/usr/local/lib -Wl,-R -Wl,/usr/local/lib Undefined first referenced symbol in file GetSourceAddress(sockaddr_in const*, sockaddr_in*) ../backend/libbackend.a(eibnetrouter.o) ld: fatal: symbol referencing errors. No output written to eibd collect2: ld returned 1 exit status gmake[3]: *** [eibd] Error 1 gmake[3]: Leaving directory/usr/share/src/bcusdk-0.0.5/eibd/server'
    gmake[2]: [all-recursive] Error 1
    gmake[2]: Leaving directory /usr/share/src/bcusdk-0.0.5/eibd' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory/usr/share/src/bcusdk-0.0.5'
    gmake:
    [all] Error 2

    to get comile so far i changed this line in eibd/client/c/openremote.c:

    /* res = gethostbyname_r (Name, &host, buf, len, &h, &err); /
    res = gethostbyname_r (Name, &host, buf, len, &err);

    hope somebody can help me.

    Greetings

    Manuel

     
    • Michael Markstaller

      Hi,

      I'd be very happy if you join us (eibd->knxd) at
      https://github.com/Makki1/knxd/

      Implement this patch as a GIT branch (send me your github-name) and test
      it with Solaris.
      If there are issues, please open an issue there.

      On 22.01.2015 15:11, manuel wrote:

      Hello,

      i try to compile eibd on a Solaris Zone. But i can't get it to run.

      ./configure --enable-onlyeibd --enable-eibnetip --enable-eibnetipserver
      --disable-usb --disable-dependency-tracking --with-pth=/usr/local
      --without-pth-test CFLAGS="-I/usr/local/include -I/usr/include"
      LDFLAGS="-L/usr/local/lib -L/usr/lib" LIBS='-lnsl -lsocket'

      with these options i get error on configure:

      checking for library containing argp_parse... -largp
      checking linux/serial.h usability... no
      checking linux/serial.h presence... no
      checking for linux/serial.h... no
      configure: WARNING: No supported low latency mode found
      checking for linux/rtnetlink.h... no
      checking for linux/usbdevice_fs.h... no
      checking for iphlpapi.h... no
      checking whether SA_SIZE is declared... no
      checking whether FreeBSD is declared... no
      checking whether APPLE is declared... no
      checking for gethostbyname_r... yes
      configure: error: not all needed functions for EIBnet/IP server available

      with these options configure runs fine but i get error on comile:

      ./configure --enable-onlyeibd --enable-eibnetip --disable-usb
      --with-pth=/usr/local --without-pth-test CFLAGS=-I/usr/local/include
      LDFLAGS=-L/usr/local/lib LIBS='-lnsl -lsocket'

      Making all in server
      gmake[3]: Entering directory |/usr/share/src/bcusdk-0.0.5/eibd/server'
      /bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -fno-rtti
      -fno-exceptions -L/usr/local/lib -o eibd eibd.o ../backend/libbackend.a
      ../libserver/libeibstack.a ../../common/libcommon.a ../usb/libusb.a
      -L/usr/local/lib -lpthsem -lsocket -largp -lnsl -lsocket libtool: link:
      g++ -g -O2 -fno-rtti -fno-exceptions -o eibd eibd.o -L/usr/local/lib
      ../backend/libbackend.a ../libserver/libeibstack.a
      ../../common/libcommon.a ../usb/libusb.a /usr/local/lib/libpthsem.so
      -largp -lnsl -lsocket -Wl,-R -Wl,/usr/local/lib -Wl,-R
      -Wl,/usr/local/lib Undefined first referenced symbol in file
      GetSourceAddress(sockaddr_in const, sockaddr_in)
      ../backend/libbackend.a(eibnetrouter.o) ld: fatal: symbol referencing
      errors. No output written to eibd collect2: ld returned 1 exit status
      gmake[3]: [eibd] Error 1 gmake[3]: Leaving
      directory|/usr/share/src/bcusdk-0.0.5/eibd/server'
      gmake[2]: */[all-recursive] Error 1
      gmake[2]: Leaving directory |/usr/share/src/bcusdk-0.0.5/eibd' gmake[1]:
      [all-recursive] Error 1 gmake[1]: Leaving
      directory|/usr/share/src/bcusdk-0.0.5'
      gmake: /* [all] Error 2

      to get comile so far i changed this line in eibd/client/c/openremote.c:

      /*/res = gethostbyname_r (Name, &host, buf, len, &h, &err); //
      res = gethostbyname_r (Name, &host, buf, len, &err);

      hope somebody can help me.

      Greetings

      Manuel

      --
      Mit freundlichen Grüssen

      Michael Markstaller

      Elaborated Networks GmbH
      www.elabnet.de
      Lise-Meitner-Str. 1, D-85662 Hohenbrunn
      fon: +49-8102-8951-60, fax: +49-8102-8951-80
      Geschäftsführer: Stefan Werner
      Amtsgericht München HRB 125120, Ust-ID: DE201281054

       

Log in to post a comment.