DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2570
Version: 1.1.11
Trying to build on fedora-14, x86_64, gcc-4.5 I get errors when linking
binaries. See example output below. This only occurs when configuring with
--enable-xft.
I found this explanation for what's going on:
http://wiki.debian.org/ToolChain/DSOLinking
Short story: the linker defaults have been changed so that it now requires
all explicitly used libraries to be given on the command-line.
I added -lfontconfig to LIBS in configure.in, patch attached.
Cheers,
Matevz
echo Linking fluid...
Linking fluid...
g++ -Os -Wall -Wunused -Wno-format-y2k -fno-exceptions
-fno-strict-aliasing -o fluid CodeEditor.o Fl_Function_Type.o
Fl_Group_Type.o Fl_Menu_Type.o Fl_Type.o Fl_Widget_Type.o Fl_Window_Type.o
Fluid_Image.o about_panel.o align_widget.o alignment_panel.o code.o
factory.o file.o fluid.o function_panel.o template_panel.o undo.o
widget_panel.o ../lib/libfltk_forms.a ../lib/libfltk.a
../lib/libfltk_images.a ../lib/libfltk.a -L../lib -lpng -lz -ljpeg -lXft
-ldl -lm -lXext -lX11
/usr/bin/ld: ../lib/libfltk.a(fl_font.o): undefined reference to symbol
'FcPatternAddDouble'
/usr/bin/ld: note: 'FcPatternAddDouble' is defined in DSO
/usr/lib64/libfontconfig.so.1 so try adding it to the linker command line
/usr/lib64/libfontconfig.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [fluid] Error 1
make[1]: Leaving directory `/foo/home/matevz/soft/fltk-1.1/fluid'
make: *** [all] Error 1
Link: http://www.fltk.org/str.php?L2570
Version: 1.1.11
Index: configure.in
===================================================================
--- configure.in (revision 8454)
+++ configure.in (working copy)
@@ -876,7 +876,7 @@
AC_CHECK_HEADER(X11/Xft/Xft.h,
AC_CHECK_LIB(Xft, XftDrawCreate,
AC_DEFINE(USE_XFT)
- LIBS="-lXft $LIBS"))
+ LIBS="-lXft -lfontconfig $LIBS"))
fi
fi
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs