Skip to content

ppl7-config returns libraries that arn't used #2

Description

@jelu

ppl7-config --libs returns a static list of libraries instead of the libraries it actually needs, in my case:

$ ppl7-config --libs
-L/usr/local/lib -lppl7 -lm -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -pthread -L/usr/lib -lz -lbz2 -lpcre -lssl -lcrypto -lstdc++
libtool: link: g++ -I../../src -I../.. -g -O2 -I/usr/local/include -pthread -I/usr/local/include -pthread -o dnsmeter main.o  -L/usr/local/lib -lppl7 -lm -lresolv -L/usr/lib -lz -lbz2 -lpcre -lssl -lcrypto -lstdc++ -pthread
/usr/bin/ld: cannot find -lbz2
collect2: error: ld returned 1 exit status
Makefile:549: recipe for target 'dnsmeter' failed
******************************************************************************
** Configuration summary for ppl Version 7.0.0
** Target: linux-gnu        CPU: x86_64
**
** Byteorder: LITTLE ENDIAN
**   Size of char         1     Size of float        4
**   Size of short        2     Size of double       8
**   Size of int          4     Size of void*        8
**   Size of long         8     Size of wchar_t      4
**   Size of long long    8
**   Size of size_t       8
******************************************************************************
** Assembler:
**   Nasm (x86 assembler): no
**
** Threads:                yes, pthreads
**
** Compression:
**   ZLIB library:         yes
**   BZIP2 library:        no
**
** Graphic:
**   BMP:                  yes (buildin)
**   GIF:                  yes (buildin)
**   TGA:                  yes (buildin)
**   PPM:                  yes (buildin)
**   PNG:                  no
**   JPEG:                 no 
**   TIFF:                 no
**   Freetype 2.x library: no
**   ImageMagick:          no
**
** Multimedia:
**   SDL2 library:         no
**   Lame library:         no
**   mpg123 library:       no
**   ogg library:          no
**   shout library:        no
**   cdio library:         no
**
** Cryptography:
**   OpenSSL:              yes
**   MCrypt library:       no
**   MHash:                no
**
** Internet:
**   Bind resolver lib:    yes
**   Curl library:         no
**   Libmicrohttpd:        no
**   ldns library:         no
**   IDN library:          no
**
** Databases:
**   SQLite3:              no
**   MySQL:                no
**   Postgres:             no
**
** Other:
**   PCRE:                 yes
**   ICONV:                yes
**
** Testing:
**   Unittests:            no
**   Codecoverage:         no
******************************************************************************

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions