FVWM2 does not compile

view full story

http://www.linuxquestions.org – FVWM and VirtualBox stopped working when I upgraded from libpng 1.2 to 1.4. Making a symlink from 1.2 to 1.4 fixed VirtualBox, but FVWM does not compile (this happened before I made the symlink, too). Here are a few lines from the end of the output of make: Code: gcc -DFVWM_MODULEDIR=\"/usr/local/libexec/fvwm/2.5.28\" -DFVWM_DATADIR=\"/usr/local/share/fvwm\" -DFVWM_CONFDIR=\"/usr/local/etc\" -DFVWM_COLORSET_PRIVATE=1 -DLOCALEDIR=\"/usr/local/share/locale\" -Wall -Wno-implicit-int -g -O2  -o fvwm menus.o style.o borders.o events.o move_resize.o builtins.o add_window.o icons.o fvwm.o frame.o placement.o virtual.o menustyle.o conditional.o ewmh.o stack.o session.o colorset.o functions.o ewmh_events.o gnome.o geometry.o module_list.o focus.o windowlist.o functable.o menuitem.o expand.o module_interface.o menubindings.o decorations.o ewmh_icons.o update.o bindings.o misc.o cursor.o colormaps.o modconf.o ewmh_conf.o read.o schedule.o menucmd.o ewmh_names.o icccm2.o windowshade.o focus_policy.o repeat.o execcontext.o menugeometry.o menudim.o condrc.o -L../libs -lfvwm -lXft -lX11 -lfreetype -lfontconfig -lXrender -lX11  -lXpm -lstroke -lSM -lICE -lXinerama -lXext -lX11  -lm  -lXrender -lXcursor -lfribidi -lpng -lz -lrsvg-2 -lgdk_pixbuf-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lcairo    ../libs/libfvwm.a(PictureImageLoader.o): In function `PImageLoadPng': /usr/local/src/workdir/fvwm-2.5.28/libs/PictureImageLoader.c:420: undefined reference to `png_check_sig' /usr/local/src/workdir/fvwm-2.5.28/libs/PictureImageLoader.c:506: undefined reference to `png_set_gray_1_2_4_to_8' collect2: ld returned 1 exit status make[2]: *** [fvwm] Error 1 make[2]: Leaving directory `/usr/local/src/workdir/fvwm-2.5.28/fvwm' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/workdir/fvwm-2.5.28' make: *** [all] Error 2 How to fix this? (HowTos)