lightning
[Top][All Lists]
Advanced

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

[Lightning] [patch] test for zlib in configure.ac


From: Brandon Invergo
Subject: [Lightning] [patch] test for zlib in configure.ac
Date: Tue, 27 Aug 2013 22:41:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hi,

In packaging lightning 2.0.0 for GNU SRC, I encountered the following
build error:

make[4]: Leaving directory 
`/home/brandon/Projects/gsrc/trunk/gnu/lightning/work/lightning-2.0.0/lib'
/bin/sh ../libtool  --tag=CC   --mode=link gcc -I../include -D_GNU_SOURCE -g 
-O2  -L/home/brandon/gnu/lib -o incr incr.o ../lib/liblightning.la -lm -ldl -lm 
-lopcodes -lbfd -liberty
libtool: link: gcc -I../include -D_GNU_SOURCE -g -O2 -o .libs/incr incr.o  
-L/home/brandon/gnu/lib ../lib/.libs/liblightning.so -ldl -lm -lopcodes -lbfd 
-liberty -Wl,-rpath -Wl,/home/brandon/gnu/lib
../lib/.libs/liblightning.so: undefined reference to `compress'
../lib/.libs/liblightning.so: undefined reference to `inflate'
../lib/.libs/liblightning.so: undefined reference to `compressBound'
../lib/.libs/liblightning.so: undefined reference to `inflateEnd'
../lib/.libs/liblightning.so: undefined reference to `inflateInit_'
../lib/.libs/liblightning.so: undefined reference to `inflateReset'
collect2: error: ld returned 1 exit status

It was resolved by explicitly checking for zlib in configure.ac, which
properly adds it to LIBS.  I've attached a patch below.

Cheers,
Brandon

Attachment: lightning-2.0.0-check-zlib.diff
Description: Text Data



-- 
Brandon Invergo
http://brandon.invergo.net

Attachment: pgpIZ5qgDGC01.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]