After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 644724 - missing libs linkage for gtk-doc scanner
missing libs linkage for gtk-doc scanner
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: docs
unspecified
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2011-03-14 13:18 UTC by Víctor Manuel Jáquez Leal
Modified: 2011-03-14 19:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: GTK_DOC scanner needs some libs to link (1.01 KB, patch)
2011-03-14 13:19 UTC, Víctor Manuel Jáquez Leal
none Details | Review
build: GTK_DOC scanner needs some libs to link (1.21 KB, patch)
2011-03-14 17:10 UTC, Víctor Manuel Jáquez Leal
none Details | Review
build: GTK_DOC scanner needs some libs to link [in master] (869 bytes, patch)
2011-03-14 17:17 UTC, Víctor Manuel Jáquez Leal
none Details | Review

Description Víctor Manuel Jáquez Leal 2011-03-14 13:18:06 UTC
When trying to generate the pango's documentation I got this:

gtk-doc: Scanning header files
gtk-doc: Compiling scanner
libtool: compile:  gcc -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -I.. -pthread -I/opt/jhbuild/include/glib-2.0 -I/opt/jhbuild/lib64/glib-2.0/include -I/usr/include/freetype2 -pthread -I/opt/jhbuild/include/cairo -I/opt/jhbuild/include/glib-2.0 -I/opt/jhbuild/lib64/glib-2.0/include -I/opt/jhbuild/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -g -O0 -Wall -g -O0 -Wall -c pango-scan.c  -fPIC -DPIC -o .libs/pango-scan.o
gtk-doc: Linking scanner
libtool: link: gcc -g -O0 -Wall .libs/pango-scan.o -o .libs/pango-scan  -L/opt/jhbuild/lib64 ../pango/.libs/libpangoxft-1.0.so ../pango/.libs/libpangocairo-1.0.so -pthread -Wl,-rpath -Wl,/opt/jhbuild/lib64
/usr/bin/ld: .libs/pango-scan.o: undefined reference to symbol 'pango_fc_font_map_get_type'
/usr/bin/ld: note: 'pango_fc_font_map_get_type' is defined in DSO /opt/jhbuild/lib64/libpangoft2-1.0.so.0 so try adding it to the linker command line
/opt/jhbuild/lib64/libpangoft2-1.0.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
Linking of scanner failed: 
make[1]: *** [scan-build.stamp] Error 1
make[1]: Leaving directory `/home/vjaquez/checkout/gnome2/pango/docs'
make: *** [all] Error 2
Comment 1 Víctor Manuel Jáquez Leal 2011-03-14 13:19:09 UTC
Created attachment 183337 [details] [review]
build: GTK_DOC scanner needs some libs to link

Because of GTK_DOC scanner may need external links such as libpangoft2,
but in particular libpango and gobject
Comment 2 Christian Persch 2011-03-14 16:58:31 UTC
+GTKDOC_LIBS = $(top_builddir)/pango/libpango-1.0.la $(GLIB_LIBS)
+
+if HAVE_FREETYPE
+GTKDOC_LIBS += $(top_builddir)/pango/libpangoft2-1.0.la
+endif

This will result in $(GLIB_LIBS) being in-between those 2 libtool libs if HAVE_FREETYPE, but all the .la files always need to be at the start of LIBS.
Comment 3 Behdad Esfahbod 2011-03-14 17:06:23 UTC
Can you check master?  Seems partially fixed on master to me.  GLIB_LIBS still missing however.
Comment 4 Víctor Manuel Jáquez Leal 2011-03-14 17:10:08 UTC
Created attachment 183358 [details] [review]
build: GTK_DOC scanner needs some libs to link

Because of GTK_DOC scanner may need external links such as libpangoft2,
but in particular libpango and gobject
Comment 5 Víctor Manuel Jáquez Leal 2011-03-14 17:11:33 UTC
(In reply to comment #3)
> Can you check master?  Seems partially fixed on master to me.  GLIB_LIBS still
> missing however.

True, I'm using 1.28 which is what jhbuild uses. Let me check master.
Comment 6 Víctor Manuel Jáquez Leal 2011-03-14 17:16:05 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > Can you check master?  Seems partially fixed on master to me.  GLIB_LIBS still
> > missing however.
> 
> True, I'm using 1.28 which is what jhbuild uses. Let me check master.

Using master:

make[3]: Entering directory `/home/vjaquez/checkout/gnome2/pango/docs'
gtk-doc: Scanning header files
gtk-doc: Compiling scanner
libtool: compile:  gcc -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -I.. -pthread -I/opt/jhbuild/include/glib-2.0 -I/opt/jhbuild/lib64/glib-2.0/include -I/usr/include/freetype2 -pthread -I/opt/jhbuild/include/cairo -I/opt/jhbuild/include/glib-2.0 -I/opt/jhbuild/lib64/glib-2.0/include -I/opt/jhbuild/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -g -O0 -Wall -g -O0 -Wall -c pango-scan.c  -fPIC -DPIC -o .libs/pango-scan.o
gtk-doc: Linking scanner
libtool: link: gcc -g -O0 -Wall .libs/pango-scan.o -o .libs/pango-scan  -L/opt/jhbuild/lib64 ../pango/.libs/libpango-1.0.so ../pango/.libs/libpangoft2-1.0.so ../pango/.libs/libpangoxft-1.0.so ../pango/.libs/libpangocairo-1.0.so -pthread -Wl,-rpath -Wl,/opt/jhbuild/lib64
/usr/bin/ld: .libs/pango-scan.o: undefined reference to symbol 'g_type_is_a'
/usr/bin/ld: note: 'g_type_is_a' is defined in DSO /opt/jhbuild/lib64/libgobject-2.0.so.0 so try adding it to the linker command line
/opt/jhbuild/lib64/libgobject-2.0.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
Linking of scanner failed:
make[3]: *** [scan-build.stamp] Error 1

It is required to add $(GLIB_LIBS)
Comment 7 Víctor Manuel Jáquez Leal 2011-03-14 17:17:56 UTC
Created attachment 183361 [details] [review]
build: GTK_DOC scanner needs some libs to link [in master]

Because of GTK_DOC scanner may need external links such as libpangoft2,
but in particular libpango and gobject
Comment 8 Behdad Esfahbod 2011-03-14 17:21:15 UTC
ChPe, does this one look better?

Feel free to commit to master.  Thanks.
Comment 9 Víctor Manuel Jáquez Leal 2011-03-14 17:33:44 UTC
(In reply to comment #8)
> ChPe, does this one look better?
> 
> Feel free to commit to master.  Thanks.

Thanks. Pushed on master.

What about branch 1.28?
Comment 10 Behdad Esfahbod 2011-03-14 17:55:33 UTC
I'll cherry-pick to 1.28 when making a release.
Comment 11 Víctor Manuel Jáquez Leal 2011-03-14 19:00:43 UTC
(In reply to comment #10)
> I'll cherry-pick to 1.28 when making a release.

Ok. Marking as fixed then.