Problem compiling libwmf 0.2.8.3 under OS X

Help
Marius
2005-06-21
2013-06-04
  • Marius
    Marius
    2005-06-21

    I have run into a problem building libwmf under Mac OS X 10.3.9 (gcc 3.3):

    Making all in src
    Making all in extra
    Making all in trio
    make[4]: Nothing to be done for `all'.
    Making all in gd
    make[4]: Nothing to be done for `all'.
    make[4]: Nothing to be done for `all-am'.
    Making all in ipa
    make[3]: Nothing to be done for `all'.
    Making all in .
    /bin/sh ../libtool --mode=link gcc  -g -O2 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2  -I/usr/X11R6/include       -I/usr/local/include/gtk-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include     -o io-wmf.la -rpath /usr/local/lib/gtk-2.0/2.4.0/loaders -no-undefined -module -avoid-version io-wmf.lo libwmf.la libwmflite.la -L/usr/local/lib -lgdk_pixbuf-2.0 -ltiff -ljpeg -lpng12 -lz -lm  
    gcc -bundle   -o .libs/io-wmf.so  .libs/io-wmf.o -all_load  /usr/local/lib/libtiff.a  /usr/local/lib/libiconv.dylib /usr/local/lib/libintl.dylib /usr/local/lib/libpng12.dylib /usr/local/lib /usr/local/lib/libglib-2.0.dylib /usr/local/lib/libgobject-2.0.dylib /usr/local/lib/libgmodule-2.0.dylib /usr/local/lib/libz.dylib /usr/local/lib/libpng.dylib /usr/local/lib/libexpat.dylib /usr/local/lib/libfreetype.dylib -L/usr/X11R6/lib /tmp/libwmf-0.2.8.3/src/.libs/libwmflite-0.2.7.0.1.dylib ./.libs/libwmf-0.2.7.1.0.dylib ./.libs/libwmflite-0.2.7.0.1.dylib -L/usr/local/lib /usr/local/lib/libgdk_pixbuf-2.0.dylib /usr/local/lib/libjpeg.dylib -lpng12 -lz -lm
    ld: can't map file: /usr/local/lib ((os/kern) invalid argument)
    make[3]: *** [io-wmf.la] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2

    Notice the extra /usr/local/lib w/o a library.

    The strange thing is that I had successfully built the library on a similar machine with same OS, without gtk 2.6.x installed. Thus I crippled the configure script (i.e. hid the pkg-config files for gdk*), and presto, no more problems...

    Is there a more elegant way of disabling the gdk-pixbuf plug-in? configure --help is of no help here.