Hi
I hope someone here could give a hint in this:
Since I updated to Slack 12.2 I couldn't build GTK+ applications anymore (Sylpheed for example). As an example, when trying to compile this test program
Code:
#include <gtk/gtk.h>
int main(void) {
gtk_main_quit();
return 0;
}
using this commandline
Code:
gcc `pkg-config --libs --cflags gtk+-2.0` test.c
the following error is thrown:
Code:
/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../libcairo.so: undefined reference to `png_set_expand_gray_1_2_4_to_8'
collect2: ld returned 1 exit status
The problem seems to be that libpng isn't linked, because
Code:
$ pkg-config --libs gtk+-2.0
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
I can fix it by adding libpng to the Required line in /usr/lib/pkgconfig/gtk+-2.0.pc manually, but that can't be the right way, can it?
Could somebody explain, what the problem could be?
This a complete Slack 12.2 installation...
thx