Werner Hoch wrote:
Hi Dan,

it compiles now. See below.

On Tuesday 26 September 2006 18:04, Dan McMahill wrote:

Werner Hoch wrote:

unfortunatly not:
--------
checking for gdlib-config... /usr/bin/gdlib-config
checking for libgd cflags... -I/usr/include
checking for libgd libs... -L/usr/lib64 -Wl,-rpath,/usr/lib64
-L/usr/X11R6/lib64 -lXpm -lX11 -ljpeg -lfontconfig -lfreetype
-lpng12 -lz -lm -lgd
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking if GIF output from the png HID is desired... no
checking if JPEG output from the png HID is desired... no
checking if PNG output from the png HID is desired... yes
checking for gdImagePng... no
configure: error: Your gd installation does not appear to include
PNG support.
You may need to update your installation of gd or disable
PNG export with --disable-png
error: Bad exit status from /var/tmp/rpm-tmp.38962 (%build)
--------

could you send me the complete config.log (either to the list or
privately)?


here is the relevant section of config.log:

--------------
configure:8681: $? = 0
configure:8684: test -s conftest.o
configure:8687: $? = 0
configure:8697: result: yes
configure:8701: checking gd.h presence
configure:8711: gcc -E -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -O2 -I/usr/X11R6/include -I/usr/include conftest.c
configure:8717: $? = 0
configure:8737: result: yes
configure:8772: checking for gd.h
configure:8779: result: yes
configure:8813: checking if GIF output from the png HID is desired
configure:8824: result: no
configure:8950: checking if JPEG output from the png HID is desired
configure:8961: result: no
configure:9088: checking if PNG output from the png HID is desired
configure:9106: result: yes
configure:9116: checking for gdImagePng
configure:9173: gcc -o conftest -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -O2 -I/usr/include -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -O2 -I/usr/X11R6/include -I/usr/include conftest.c -lfl -lm -L/usr/lib -Wl,-rpath,/usr/lib -L/usr/X11R6/lib -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm -lgd -L/usr/X11R6/lib >&5 /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: cannot find -ljpeg
collect2: ld returned 1 exit status
configure:9179: $? = 1
--------------

The "checking for gdImage..." requires the libjpeg-devel rpm which was not in the buildrequires of the rpmspec-file yet.

but shouldn't it be in the requirement for gdlib not for pcb directly?

The compilation works now.
Thanks for pushing me into the right direction.

regards
Werner

Looks to me like the rpm for gdlib is broken. For example I'll bet if you do

  ldd /path/to/libgd.so

you'll see that -lgd requires -ljpeg.


So, just as a note, gdlib makes an automatic decision about using jpeg or not. If the source rpm is setup on a system without libjpeg then you build gdlib on a system with libjpeg, you'll get a binary that depends on libjpeg but this dependency is not recorded.

This is exactly the pitfall I was talking about with respect to gEDA's automatic decisions about linking or not linking to gdlib...

I'm going a bit out on a limb since I don't know about rpm details since I'm not a linux user, but I'd be suprised if what I've said here isn't mostly true.

-Dan



_______________________________________________
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user

Reply via email to