#314 undefined reference to

PeerGuardian_Linux
closed
nobody
Driver (56)
5
2014-08-26
2012-02-28
martin
No

Hi,

I have tried to compile git version and within make on 64 bit oneric got errors:

/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:150: undefined reference to `dlopen'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:152: undefined reference to `dlerror'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:155: undefined reference to `dlerror'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:157: undefined reference to `dlerror'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:157: undefined reference to `dlsym'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:157: undefined reference to `dlerror'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:158: undefined reference to `dlerror'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:158: undefined reference to `dlsym'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:158: undefined reference to `dlerror'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:163: undefined reference to `dlclose'
src/pgld.o: In function `close_dbus':
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:175: undefined reference to `dlclose'
src/pgld.o: In function `nfqueue_unbind':
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:258: undefined reference to `nfq_destroy_queue'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:259: undefined reference to `nfq_unbind_pf'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:262: undefined reference to `nfq_close'
src/pgld.o: In function `nfqueue_cb':
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:414: undefined reference to `nfq_get_msg_packet_hdr'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:417: undefined reference to `nfq_get_payload'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:423: undefined reference to `nfq_set_verdict'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:434: undefined reference to `nfq_set_verdict_mark'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:437: undefined reference to `nfq_set_verdict'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:447: undefined reference to `nfq_set_verdict_mark'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:449: undefined reference to `nfq_set_verdict'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:475: undefined reference to `nfq_set_verdict_mark'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:478: undefined reference to `nfq_set_verdict'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:490: undefined reference to `nfq_set_verdict_mark'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:492: undefined reference to `nfq_set_verdict'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:505: undefined reference to `nfq_set_verdict_mark'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:508: undefined reference to `nfq_set_verdict'
src/pgld.o: In function `nfqueue_bind':
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:523: undefined reference to `nfq_open'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:529: undefined reference to `nfq_unbind_pf'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:531: undefined reference to `nfq_close'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:535: undefined reference to `nfq_bind_pf'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:537: undefined reference to `nfq_close'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:548: undefined reference to `nfq_create_queue'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:551: undefined reference to `nfq_close'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:555: undefined reference to `nfq_set_mode'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:557: undefined reference to `nfq_destroy_queue'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:558: undefined reference to `nfq_close'
src/pgld.o: In function `nfqueue_loop':
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:575: undefined reference to `nfq_nfnlh'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:576: undefined reference to `nfnl_fd'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:579: undefined reference to `nfq_handle_packet'
/home/u1/Downloads/peerguardian/pgl/pgld/src/pgld.c:585: undefined reference to `nfq_close'
src/stream.o: In function `stream_open':
/home/u1/Downloads/peerguardian/pgl/pgld/src/stream.c:47: undefined reference to `inflateInit2_'
src/stream.o: In function `stream_close':
/home/u1/Downloads/peerguardian/pgl/pgld/src/stream.c:73: undefined reference to `inflateEnd'
src/stream.o: In function `stream_getline':
/home/u1/Downloads/peerguardian/pgl/pgld/src/stream.c:101: undefined reference to `inflateEnd'
/home/u1/Downloads/peerguardian/pgl/pgld/src/stream.c:107: undefined reference to `inflate'
/home/u1/Downloads/peerguardian/pgl/pgld/src/stream.c:111: undefined reference to `inflateEnd'
/home/u1/Downloads/peerguardian/pgl/pgld/src/stream.c:119: undefined reference to `inflateEnd'

I went through README file and all "*-dev" files but did not find which one could be missing ?

Thank you for clue,
Regards,
M.

Discussion

  • jre-phoenix
    jre-phoenix
    2012-03-01

    Try
    sudo apt-get build-dep pgl
    to install all needed development headers.

    *If* no new packages are installed then, there is some other problem, e.g. with the new multiarch support in Ubuntu/Debian.

    Please report your results.

     
  • martin
    martin
    2012-03-01

    There is nothing to install.

    Tried to clone from git with the same errors.

    If you can please help me to find the problem I really much apprecite that. I have been using this software for all my computers under the windows within last 7 years. When I change the OS to linux I would like to use it as well :-)
    Thank you for helping me out.

    Regards,
    Martin

     
  • freemind
    freemind
    2012-04-01

    I had the same problem. Pull again, there were some changes that fix this issue.

     
  • martin
    martin
    2012-04-02

    Hi,

    within ./configure I have got:

    ./configure: line 17043: QT4DBUS_CFLAGS: command not found
    ./configure: line 17044: C: command not found
    ./configure: line 17045: QT4DBUS_LIBS: command not found
    ./configure: line 17046: linker: command not found
    checking for QT4DBUS... yes
    checking for bool... yes
    ./configure: line 17232: QT_CFLAGS: command not found
    ./configure: line 17233: QT_LIBS: command not found
    checking for QT... yes
    checking for moc... moc
    checking for uic... uic
    checking for rcc... rcc
    checking for lupdate... lupdate
    checking for lrelease... lrelease
    checking for qmake... qmake
    ./configure: line 17595: QT4_CFLAGS: command not found
    ./configure: line 17596: QT4_LIBS: command not found

    Is it something serious ?

    Regards,
    M.

     
  • freemind
    freemind
    2012-04-23

    Hello,

    Sorry for the long delay. It seems Qt4 libraries are missing.
    Are you sure you installed these libraries?
    * libqt4-core (>=4.3.0)
    * libqt4-gui (>=4.3.0)
    * libqt4-dev (>=4.3.0)

     
  • jre-phoenix
    jre-phoenix
    2012-06-09

    I guess this is fixed now in git, please confirm.

     
  • martin
    martin
    2012-06-10

    Hi,
    I cannot confirm because I have got into errors within ./configure:

    ------- warnings from autogen:
    ./autogen.sh
    /usr/share/aclocal/log4c.m4:7: warning: underquoted definition of AM_PATH_LOG4C
    /usr/share/aclocal/log4c.m4:7: run info '(automake)Extending aclocal'
    /usr/share/aclocal/log4c.m4:7: or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
    /usr/share/aclocal/log4c.m4:7: warning: underquoted definition of AM_PATH_LOG4C
    /usr/share/aclocal/log4c.m4:7: run info '(automake)Extending aclocal'
    /usr/share/aclocal/log4c.m4:7: or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
    pgld/Makefile.am: installing `./depcomp'
    pglgui/Makefile.am:65: `%'-style pattern rules are a GNU make extension
    pglgui/Makefile.am:81: `%'-style pattern rules are a GNU make extension

    ----
    ./configure
    ...
    ...
    ...
    checking for QT4... no
    configure: error: Package requirements (QtCore QtGui polkit-qt-1) were not met:

    No package 'polkit-qt-1' found

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables QT4_CFLAGS
    and QT4_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.

    --------- installed packages:
    sudo dpkg -l|grep polkit-qt-1
    ii libpolkit-qt-1-1 0.103.0-1 PolicyKit-qt-1 library

    sudo dpkg -l|grep -i QtCore
    ii libqtcore4 4:4.8.1-0ubuntu4.1 Qt 4 core module
    ii libqtcore4:i386 4:4.8.1-0ubuntu4.1 Qt 4 core module
    ii libqtcore4-perl 4:4.8.2-0ubuntu2 perl bindings for the Qt Core library
    ii libsmokeqtcore4-3 4:4.8.3-0ubuntu0.1 Qt Core SMOKE library

    sudo dpkg -l |grep -i QtGui
    ii libqtgui4 4:4.8.1-0ubuntu4.1 Qt 4 GUI module
    ii libqtgui4:i386 4:4.8.1-0ubuntu4.1 Qt 4 GUI module
    ii libqtgui4-perl 4:4.8.2-0ubuntu2 perl bindings for the Qt Gui library
    ii libsmokeqtgui4-3 4:4.8.3-0ubuntu0.1

    Could you please , please help me how to setup
    QT4_CFLAGS
    QT4_LIBS
    I have no experience in QT4 and man pkg-config is for me "Spanish village".

    Thank you,
    Kind Regards,
    Martin

     
  • martin
    martin
    2012-06-10

    Hi,

    Thanks a lot for helping me out.
    (I have completely overlook that missing dev library)
    Compilation succeeded.
    but I did not install it yet because I have in my source.list repository ppa:jre-phoenix/ppa and new version has been installed recently - release "2.2.0~pre23-1~precise".

    Is it the same version from "ppa:jre-phoenix/ppa" as from
    git://peerguardian.git.sourceforge.net/gitroot/peerguardian/peerguardian
    at this moment ?

    How can I in a future to find out that something new is in git repository comparing to compiled package in "ppa:jre-phoenix/ppa" repository ?

    Thanks in advance,
    Kind Regards,
    M.

     
  • jre-phoenix
    jre-phoenix
    2012-06-13

    The newest version for precise now is copied from natty (just released): 2.2.0.1-1~natty
    Note that builds from precise currently are buggy.

    You may follow our project (including git commits) with this RSS:
    http://sourceforge.net/export/rss2_keepsake.php?group_id=131687

     
  • jre-phoenix
    jre-phoenix
    2012-06-17

    For the record: My initial advice to try "sudo apt-get build-dep pgl" would have worked, if the version had already been released. But at that moment the required data was only in the git repository, and thus not available to apt-get.
    Stupid me.