[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Lz4Compression.cpp:53: undefined reference to `LZ4_uncompress'



[CC me please]

Hi there,

I am trying to diagnose #751227 from over here. It does not make much
sense to me. I cannot even see the setting for DEB_BUILD_OPTIONS (does
it contains parallel option?).

As far I understand (unless lines are out of order), gcc/hurd is
failing on a `gcc -c` compilation but with reference to a linking
issue:

g++ -c -fopenmp -DPACKAGE_MANAGER -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security
-Wno-unknown-pragmas -std=c++0x -fno-strict-aliasing -g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -W -D_REENTRANT
-DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE
-D_LARGEFILE_SOURCE -I/usr/share/qt4/mkspecs/hurd-g++ -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I../..
-I/usr/include/lua5.2 -I../../Basics/3rdParty
-I../../IO/3rdParty/boost -I/usr/X11R6/include -I. -o main.o main.cpp
[...]
/«PKGBUILDDIR»/Tuvok/IO/UVF/ExtendedOctree/Lz4Compression.cpp:53:
undefined reference to `LZ4_uncompress'

That is something completely new to me. How is gcc using libTuvok.a
within this compilation line ?

In case the lines are out of order (parallel is on?), the compilation
would fails on:

g++ -fopenmp -Wl,-z,relro -o bluebook main.o    -L../../Build
-L../../IO/expressions -L/usr/lib/i386-gnu -L/usr/X11R6/lib -lpthread
-lTuvok -ltuvokexpr -lz -llua5.2 -lGLEW -ltiff -lbz2 -llzma -llz4
-lGLU -lGL -lQtOpenGL -lQtGui -lQtCore -lGL -lpthread

But then again I do not see what could be wrong with this compilation
line, since -llz4 does provide the symbols:

$ nm -D /usr/lib/x86_64-linux-gnu/liblz4.so | grep LZ4_uncompress
0000000000004ca0 T LZ4_uncompress
0000000000004cb0 T LZ4_uncompress_unknownOutputSize


Reply to: