Bug 7141

Summary: Missing library checks in configure script
Product: cairo Reporter: Luis Menina <liberforce>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high CC: liberforce
Version: 1.1.7   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 4475, 5062    
Bug Blocks:    

Description Luis Menina 2006-06-06 15:41:03 UTC
Trying to compile cairo with some missing libs fails at build step. If those
libs are required to be able to compile, then it should fail during configure. 
A few concerned libs (among others, in similar bugs) are libjpeg, libbz2, libopenssl

libjpeg:
========

libtool: link: cannot find the library `/usr/lib/libjpeg.la' or unhandled
argument `/usr/lib/libjpeg.la'
make[2]: *** [pdf2png] Erreur 1
make[2]: Leaving directory `/home/liberforce/cvs/gnome2/cairo/test'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/liberforce/cvs/gnome2/cairo'
make: *** [all] Erreur 2
*** error during stage build of cairo: could not build module *** [14/136]


libbz2
=======
libtool: link: cannot find the library `/usr/lib/libbz2.la' or unhandled
argument `/usr/lib/libbz2.la'
make[2]: *** [svg2png] Erreur 1
make[2]: Leaving directory `/home/liberforce/cvs/gnome2/cairo/test'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/liberforce/cvs/gnome2/cairo'
make: *** [all] Erreur 2
*** error during stage build of cairo: could not build module *** [14/136]


libopenssl
==========
gcc -g -O2 -o svg2png svg2png-svg2png.o  -L/opt/gnome2/lib
/opt/gnome2/lib/librsvg-2.so /opt/gnome2/lib/libgnomevfs-2.so -lssl -lcrypto
/opt/gnome2/lib/libhowl.so -lresolv -lutil -lrt /opt/gnome2/lib/libbonobo-2.so
/opt/gnome2/lib/libgconf-2.so /opt/gnome2/lib/libbonobo-activation.so
/opt/gnome2/lib/libORBitCosNaming-2.so /opt/gnome2/lib/libORBit-2.so
/usr/lib/libpopt.so /opt/gnome2/lib/libgthread-2.0.so -lpthread
/opt/gnome2/lib/libgsf-1.so /usr/lib/libbz2.so /opt/gnome2/lib/libcroco-0.6.so
/opt/gnome2/lib/libxml2.so -L/usr/X11R6/lib /opt/gnome2/lib/libgdk-x11-2.0.so
/opt/gnome2/lib/libgdk_pixbuf-2.0.so /opt/gnome2/lib/libpangocairo-1.0.so
/opt/gnome2/lib/libpangoft2-1.0.so /opt/gnome2/lib/libfontconfig.so
/opt/gnome2/lib/libpango-1.0.so /opt/gnome2/lib/libcairo.so
/opt/gnome2/lib/libXrender.so -lX11 -lXext -lpng12 /usr/lib/libfontconfig.so
/usr/lib/libexpat.so /usr/lib/libfreetype.so -lz
/opt/gnome2/lib/libgobject-2.0.so /opt/gnome2/lib/libgmodule-2.0.so -ldl
/opt/gnome2/lib/libglib-2.0.so -lm -Wl,--rpath -Wl,/opt/gnome2/lib -Wl,--rpath
-Wl,/opt/gnome2/lib
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make[2]: *** [svg2png] Erreur 1
make[2]: Leaving directory `/home/liberforce/cvs/gnome2/cairo/test'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/liberforce/cvs/gnome2/cairo'
make: *** [all] Erreur 2
*** error during stage build of cairo: could not build module *** [1/123]
Comment 1 Behdad Esfahbod 2006-06-14 00:39:06 UTC
Weird.  One should figure out what's dragging those in.  Cairo doesn't use any
of them AFAIK.
Comment 2 Luis Menina 2006-11-22 16:10:05 UTC
Ok, I tried today with a fresh new install, and it works, so I close this bug.
Comment 3 Luis Menina 2006-11-22 16:12:58 UTC
For people who might ask: I was compiling cvs version of cairo with jhbuild.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.