Summary: | No localtime_r and gcc instead of g++ | ||
---|---|---|---|
Product: | poppler | Reporter: | Émilien Tlapale <emilien> |
Component: | glib frontend | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | minor | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Cygwin | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 14024 | ||
Attachments: | Small patch |
Description
Émilien Tlapale
2007-09-19 13:25:32 UTC
Hi! I am compiling the new poppler 0.6.1 using Ubuntu's mingw32 (cross-compiler for windows) and I got exactly the same problems : 1. There is a `i586-mingw32msvc-gcc' command which gives undefined references to standard C++ things, so a `i586-mingw32msvc-g++' is necessary while building `test-poppler-glib.exe'. For instance: poppler-0.6.1/poppler/.libs/libpoppler.a(Function.o):Function.cc:(.text+0x6d3c): undefined reference to `operator new(unsigned int)' 2. Maybe I am missing something but `localtime_r' is still undefined with my Ubuntu mingw32 installation, as with crossdev on Gentoo. So I suggest to add a HAVE_LOCALTIME_R and a line like: if (time == 0 || localtime (&time)) return NULL; in glib/test-poppler-glib.c Thanks a lot! -- Émilien TLAPALE Created attachment 12194 [details] [review] Small patch Please apply the attached patch and see if renaming test-poppler-glib.c to test-poppler-glib.cc and changing test_poppler_glib_SOURCES = \ test-poppler-glib.c to test_poppler_glib_SOURCES = \ test-poppler-glib.cc in Makefile.am fixes your problems. This indeed solves the compilation problems. Thanks :) fixed on git |
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.