#116 Undefined symbol: mac_addr_dlpi

Version 1.4

When using Linux x86 r1380, I am getting "java: symbol lookup error: jnetpcap.so: undefined symbol: mac_addr_dlpi" when calling getHardwareAddress() on a PcapIf instance. The environment is a VirtualBox guest running Xubuntu 12.04. The adapter is set in VirtualBox as "Intel PRO 1000". Windows 64 r1380 is working fine on a host system. When the Linux x86 r1390 is fixed, I'll try that.


  • Sly Technologies

    • status: open --> open-accepted
  • Sly Technologies

    Will look into it.

  • Giacomo Mattiuzzi

    The problem is the c++ compiler that not have macro like "Linux" defined.
    In jnetpcaputils.cpp line 612:

    //#if defined(Linux) || defined(HPUX) || defined(AIX) || defined(DARWIN) || \
            defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD)
    #if defined(__APPLE__) || defined(__linux__) || defined(__unix__)

    After this change, for me it works.

    Last edit: Giacomo Mattiuzzi 2017-01-05

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

No, thanks