Bug 21520 - utils/pdftoabw fails to compile due to missing libxml2 libs
Summary: utils/pdftoabw fails to compile due to missing libxml2 libs
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Mac OS X (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-02 04:50 UTC by Fabian Groffen
Modified: 2009-05-02 05:11 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
linking fix (374 bytes, patch)
2009-05-02 04:50 UTC, Fabian Groffen
Details | Splinter Review

Description Fabian Groffen 2009-05-02 04:50:39 UTC
Created attachment 25366 [details] [review]
linking fix

libtool: link: powerpc-apple-darwin8-g++ -Wall -Wno-write-strings -O3 -pipe -mcpu=G5 -mtune=G5 -Wl,-dead_strip_dylibs -o pdftoabw pdftoabw.o parseargs.o -Wl,-bind_at_load  -lpoppler -L/Library/Gentoo/usr/lib /Library/Gentoo/usr/lib/libfontconfig.dylib /Library/Gentoo/usr/lib/libiconv.dylib /Library/Gentoo/usr/lib/libfreetype.dylib /Library/Gentoo/usr/lib/libexpat.dylib -lopenjpeg -lz
Undefined symbols:
  "_xmlSaveFormatFileEnc", referenced from:
      _main in pdftoabw.o
  "_xmlFreeDoc", referenced from:
      _main in pdftoabw.o
  "_xmlNewDoc", referenced from:
      _main in pdftoabw.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [pdftoabw] Error 1


Attached patch is a possible way to solve it.  Most important is to include $(ABIWORD_LIBS), as set by configure, in LDADD somehow such that libxml2 libs are passed onto the linker.
Comment 1 Albert Astals Cid 2009-05-02 05:11:44 UTC
fixed, thanks for reporting


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.