Re: cvs build problems
- From: Felix Natter <fnatter gmx net>
- To: dia-list gnome org
- Subject: Re: cvs build problems
- Date: 21 Sep 2002 00:52:09 +0200
Lars Clausen <lrclause cs uiuc edu> writes:
On Friday, 20 September '02, Felix Natter wrote:
hi,
I am using garnome 0.16.2 and with this I have some
small build problems with dia cvs:
I configured with --enable-gnome --enable-debug.
first problem:
rm -fr .libs/libxslt_filter.la .libs/libxslt_filter.* .libs/libxslt_filter.*
(cd . && ln -s xslt.lo xslt.o)
(cd . && ln -s xsltdialog.lo xsltdialog.o)
gcc -shared xslt.lo xsltdialog.lo -ldl -lglib -lpng -lm -lz -Wl,-soname -Wl,libxslt_filter.so -o
.libs/libxslt_filter.so
/usr/bin/ld: cannot find -lglib
collect2: ld returned 1 exit status
make[3]: *** [libxslt_filter.la] Error 1
make[3]: Leaving directory `/home/felix/src/dia/plug-ins/xslt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/felix/src/dia/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/felix/src/dia'
make: *** [all] Error 2
=> replace -lglib with -lglib-2.0 in plug-ins/xslt/Makefile
Wrong solution. The right place is plug-ins/xslt/Makefile.am, where the
LDFLAGS (ought to be LDADD, but let's not change that at the same time)
should contain $(FREETYPE_LIBS) $(GTK_LIBS) $(INTLLIBS). Then run
autogen.sh again and you makefile should be better.
I just posted this so you can fix it in cvs.
[...]
I tried to add -lfreetype to $(CCLD) in app/Makefile which gets me one
step further but then it fails with the same undefined references:
Which version of freetype do you have installed? Looks like it finds the
freetype library, but there's a missing function.
I have freetype 2.1.2, but I think the problem is that freetype isn't
linked at all because on another system (same garnome thus same
freetype version) I was able to fix the exact same issue by adding
-lfreetype to $(CCLD).
The problem is that there is a libtool invokation:
/bin/sh ../libtool --mode=link gcc -lfreetype -I/home/felix/garnome/include/libxml2 -g -O2 [...]
which in turn invokes gcc, but without -lfreetype:
gcc -I/home/felix/garnome/include/libxml2 -g -O2 [...]
(see http://home.t-online.de/~fam.natter/dia.txt for details)
Maybe I need to upgrade libtool, I am using libtool 1.4.2a ?
--
Felix Natter
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]