[poppler] Compile Error: undefined reference to `png_destroy_write_struct'

Mike Tonks fluffymike at googlemail.com
Thu Apr 29 06:30:10 PDT 2010


Hi Hib,

Yes, your patch seemed to fix that one, thanks!

Now I'm getting a similar message to the one with 0.12.4:

...
  CXXLD  libpoppler.la
Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking
to __imp___ZTVN10__cxxabiv120__si_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__class_type_info by linking to
__imp___ZTVN10__cxxabiv117__class_type_infoE (auto-import)
Creating library file: .libs/libpoppler.dll.a
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe:
warning: auto-importing has been activated without
--enable-auto-import specifie
d on the command line.
This should work unless it involves constant data structures
referencing symbols from auto-imported DLLs.
../goo/.libs/libgoo.a(PNGWriter.o):C:\msys\1.0\home\Owner\poppler-0.13.3\goo/PNGWriter.cc:106:
undefined reference to `png_write_end'
../goo/.libs/libgoo.a(PNGWriter.o):C:\msys\1.0\home\Owner\poppler-0.13.3\goo/PNGWriter.cc:94:
undefined reference to `png_write_rows'
../goo/.libs/libgoo.a(PNGWriter.o):C:\msys\1.0\home\Owner\poppler-0.13.3\goo/PNGWriter.cc:81:
undefined reference to `png_write_image'
../goo/.libs/libgoo.a(PNGWriter.o):C:\msys\1.0\home\Owner\poppler-0.13.3\goo/PNGWriter.cc:34:
undefined reference to `png_create_write_struct'
../goo/.libs/libgoo.a(PNGWriter.o):C:\msys\1.0\home\Owner\poppler-0.13.3\goo/PNGWriter.cc:40:
undefined reference to `png_create_info_struct'
../goo/.libs/libgoo.a(PNGWriter.o):C:\msys\1.0\home\Owner\poppler-0.13.3\goo/PNGWriter.cc:52:
undefined reference to `png_init_io'
../goo/.libs/libgoo.a(PNGWriter.o):C:\msys\1.0\home\Owner\poppler-0.13.3\goo/PNGWriter.cc:59:
undefined reference to `png_set_compression_level'
../goo/.libs/libgoo.a(PNGWriter.o):C:\msys\1.0\home\Owner\poppler-0.13.3\goo/PNGWriter.cc:65:
undefined reference to `png_set_IHDR'
../goo/.libs/libgoo.a(PNGWriter.o):C:\msys\1.0\home\Owner\poppler-0.13.3\goo/PNGWriter.cc:68:
undefined reference to `png_set_pHYs'
../goo/.libs/libgoo.a(PNGWriter.o):C:\msys\1.0\home\Owner\poppler-0.13.3\goo/PNGWriter.cc:70:
undefined reference to `png_write_info'
../goo/.libs/libgoo.a(PNGWriter.o): In function `~PNGWriter':
C:\msys\1.0\home\Owner\poppler-0.13.3\goo/PNGWriter.cc:28: undefined
reference to `png_destroy_write_struct'
collect2: ld returned 1 exit status
make[3]: *** [libpoppler.la] Error 1
make[3]: Leaving directory `/home/Owner/poppler-0.13.3/poppler'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Owner/poppler-0.13.3/poppler'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Owner/poppler-0.13.3'
make: *** [all] Error 2


On 29 April 2010 14:08, Hib Eris <hib at hiberis.nl> wrote:
> On Thu, Apr 29, 2010 at 2:54 PM, Mike Tonks <fluffymike at googlemail.com> wrote:
>> Hi Hib,
>>
>> Yes, that seemed to get things moving, but then failed later in the build:
>>
>> TextOutputDev.cc: In member function 'void TextPage::coalesce(GBool, GBool)':
>> TextOutputDev.cc:3039:14: error: 'DBL_MAX' was not declared in this scope
>> TextOutputDev.cc:3194:23: error: 'DBL_MAX' was not declared in this scope
>> TextOutputDev.cc:3195:23: error: 'DBL_MIN' was not declared in this scope
>> TextOutputDev.cc:3246:21: error: 'DBL_MAX' was not declared in this scope
>> TextOutputDev.cc:3247:21: error: 'DBL_MIN' was not declared in this scope
>> TextOutputDev.cc: In member function 'void ActualText::beginMC(Dict*)':
>> TextOutputDev.cc:5058:58: warning: deprecated conversion from string
>> constant to 'char*'
>> TextOutputDev.cc: In constructor 'TextOutputDev::TextOutputDev(char*,
>> GBool, GBool, GBool)':
>> TextOutputDev.cc:5149:57: warning: deprecated conversion from string
>> constant to 'char*'
>> make[3]: *** [TextOutputDev.lo] Error 1
>> make[3]: Leaving directory `/home/Owner/poppler-0.13.3/poppler'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/home/Owner/poppler-0.13.3/poppler'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/Owner/poppler-0.13.3'
>>
>
> Try this patch:
>
> http://cgit.freedesktop.org/poppler/poppler/commit/?id=5b822011029f3721fbafd4a7bf01b9d6fee35d25
>


More information about the poppler mailing list