pradeep250677 / lz4

Automatically exported from code.google.com/p/lz4
0 stars 0 forks source link

Build problem on Ubuntu Precise, x86_64 #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. cmake cmake
2. make

What is the expected output? What do you see instead?

Expected a working build. Got:

rhino ➜  ~/projects/lz4-read-only  make
[ 16%] Building C object CMakeFiles/lz4demo32.dir/lz4.c.o
[ 33%] Building C object CMakeFiles/lz4demo32.dir/bench.c.o
[ 50%] Building C object CMakeFiles/lz4demo32.dir/lz4demo.c.o
Linking C executable lz4demo32
CMakeFiles/lz4demo32.dir/lz4demo.c.o: In function `compress_file':
lz4demo.c:(.text+0x25c): undefined reference to `LZ4_compressHC'
CMakeFiles/lz4demo32.dir/bench.c.o: In function `BMK_benchFile':
bench.c:(.text+0x138): undefined reference to `LZ4_compressHC'
collect2: ld returned 1 exit status
make[2]: *** [lz4demo32] Error 1
make[1]: *** [CMakeFiles/lz4demo32.dir/all] Error 2
make: *** [all] Error 2

What version of the product are you using? On what operating system?

subversion checkout.

Please provide any additional information below.

When I changed CMakeLists.txt from

set(LZ4_SRCS_LIB ${SRC_DIR}lz4.c ${SRC_DIR}lz4.h )

to

set(LZ4_SRCS_LIB ${SRC_DIR}lz4.c ${SRC_DIR}lz4hc.c ${SRC_DIR}lz4.h )

the build proceeded correctly.

Original issue reported on code.google.com by mwot...@gmail.com on 6 Jun 2012 at 12:11

GoogleCodeExporter commented 8 years ago
Thanks very much for pointing that out.
It looks clear & precise.
I'll handle that one.

Original comment by yann.col...@gmail.com on 6 Jun 2012 at 9:29

GoogleCodeExporter commented 8 years ago
Issue is corrected into r67. Thanks for notification and clear correction 
guidance

Original comment by yann.col...@gmail.com on 8 Jun 2012 at 9:39