Menu

#66 Missing link against -lm and -lz

ripperX 2.8.1
pending
None
5
2020-07-13
2017-01-27
No

When compiling ripperx 2.8.0 with GCC 5.3.0, zlib is not linked correctly.

Making all in src
make[2]: Entering directory '/usr/src/ripperx-2.8.0/src'
g++  -march=core2 -fPIC -DPIC -pipe -DPIC -fPIC -O2  -s -Wl,-O1 -Wl,--hash-style=gnu -o ripperX cddb.o cddbp.o main_data.o calc_stat.o config_rw.o config_window_handler.o dir_window_handler.o err_dialog_handler.o job_control.o main.o main_window_handler.o misc_utils.o players_manipulation.o ripper_encoder_manipulation.o select_frame_handler.o status_frame_handler.o xpms.o  -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -ltag -lutil  -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib/libgio-2.0.so: undefined reference to symbol 'inflateEnd'
/lib/libz.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:418: ripperX] Error 1
make[2]: Leaving directory '/usr/src/ripperx-2.8.0/src'
make[1]: *** [Makefile:505: all-recursive] Error 1
make[1]: Leaving directory '/usr/src/ripperx-2.8.0'
make: *** [Makefile:379: all] Error 2

Per http://stackoverflow.com/questions/19901934/strange-linking-error-dso-missing-from-command-line , adding "-lm -lz" fixed it. I am not great at the autoconf files, so I just added this before my ./configure and make.

LIBS+=" -lm -lz"

Discussion

  • tony mancill

    tony mancill - 2020-07-13

    should be addressed with commit b46497d5d3d4b1d427336d91fa39185e5d76f5c9

     
  • tony mancill

    tony mancill - 2020-07-13
    • status: open --> pending
    • assigned_to: tony mancill
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.