[Xastir-Dev] configure confuses missing -lbz2 w/-lMagick

Alan Crosswell alan at columbia.edu
Thu May 15 22:38:03 EDT 2003


I set up a totally clean RH 9 machine and have been building xastir and 
all the prereq packages
as RPMs (for those not already supplied with RH 9).  I found that the 
configure test confuses
a missing -lbz2 for a missing -lMagick.  You need to add a test for 
-lbz2 before trying to use it:

configure:12401: checking for WriteImage in -lMagick
configure:12432: gcc -o conftest -g -O2 -pipe -pthread 
-I/usr/local/include   -I/usr/X11R6/include -I/usr/include -D_REENTRANT 
-D_FILE_OFFSET_BITS=64 -I/usr/X11R6/include -I/usr/X11R6/include/X11 
-I/usr/include/freetype2 -I/usr/include/libxml2 -L/usr/local/lib   
-L/usr/X11R6/lib -L/usr/lib -L/usr/X11R6/lib -L/usr/lib -L/usr/lib 
conftest.c -lMagick   -lMagick -ltiff -lfreetype -ljpeg -lpng -ldpstk 
-ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lpthread -lm -lXpm 
-lrt -lcurl -lXm -lXt -lXp -lXext -lm   -lSM -lICE -lX11  -lshp >&5
/usr/bin/ld: cannot find -lbz2
collect2: ld returned 1 exit status



More information about the Xastir-dev mailing list