Bug 6201 - compilation of libpoppler.so fails: symbol is multiply-defined
Summary: compilation of libpoppler.so fails: symbol is multiply-defined
Status: RESOLVED INVALID
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: SPARC Solaris
: high normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-10 06:52 UTC by Martin Trautmann
Modified: 2010-02-09 14:46 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Martin Trautmann 2006-03-10 06:52:33 UTC
After compiling most of its stuff if fails on 

g++ [...]  -Wl,libpoppler.so.1 -o .libs/libpoppler.so.1.0.0

There are around <3000 fatal error messages while merging the > 400 lib files:

Examples:

ld: fatal: symbol `__gnu_cxx::free_list::_M_get(unsigned int)' is multiply-defined:
        (file .libs/libpoppler.lax/libgoo.a/bitmap_allocator.o type=FUNC; file
.libs/libpoppler.lax/libfofi.a/bitmap_allocator.o type=FUNC);

ld: fatal: symbol `std::codecvt<char, char, __mbstate_t>::~codecvt()' is
multiply-defined:
        (file .libs/libpoppler.lax/libgoo.a/codecvt.o type=FUNC; file
.libs/libpoppler.lax/libfofi.a/codecvt.o type=FUNC);

ld: fatal: symbol
`__gnu_debug::_Error_formatter::_Parameter::_M_print_description(__gnu_debug::_Error_formatter
const*) const' is multiply-defined:
        (file .libs/libpoppler.lax/libgoo.a/debug.o type=FUNC; file
.libs/libpoppler.lax/libfofi.a/debug.o type=FUNC);

ld: fatal: symbol `(anonymous namespace)::static_mutex::init()' is
multiply-defined:    (file .libs/libpoppler.lax/libgoo.a/guard.o type=FUNC; file
.libs/libpoppler.lax/libfofi.a/guard.o type=FUNC);

ld: fatal: symbol `__cxa_allocate_exception' is multiply-defined:       (file
.libs/libpoppler.lax/libgoo.a/eh_alloc.o type=FUNC; file
.libs/libpoppler.lax/libfofi.a/eh_alloc.o type=FUNC);

ld: fatal: symbol `acosf' is multiply-defined:  (file
.libs/libpoppler.lax/libgoo.a/stubs.o type=FUNC; file
.libs/libpoppler.lax/libfofi.a/stubs.o type=FUNC);

ld: fatal: symbol `operator delete(void*)' is multiply-defined: (file
.libs/libpoppler.lax/libgoo.a/del_op.o type=FUNC; file
.libs/libpoppler.lax/libfofi.a/del_op.o type=FUNC);



How do I ensure single definitions? Which further input do you need?

#define ENABLE_LIBJPEG 1
#define HAVE_DIRENT_H 1
#define HAVE_DLFCN_H 1
#define HAVE_FREETYPE_H 1
#define HAVE_FSEEKO 1
#define HAVE_GETTIMEOFDAY 1
#define HAVE_INTTYPES_H 1
#define HAVE_MEMORY_H 1
#define HAVE_MKSTEMP 1
#define HAVE_POPEN 1
#define HAVE_SPLASH 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define MULTITHREADED 1
#define OPI_SUPPORT 1
#define PACKAGE "poppler"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "poppler"
#define PACKAGE_STRING "poppler 0.5.1"
#define PACKAGE_TARNAME "poppler"
#define PACKAGE_VERSION "0.5.1"
#define STDC_HEADERS 1
#define SYSTEM_XPDFRC "/usr/local/etc/xpdfrc"
#define TEXTOUT_WORD_LIST 1
#define VERSION "0.5.1"
#define _FILE_OFFSET_BITS 64
#endif
#ifdef __cplusplus
extern "C" void std::exit (int); using std::exit;

gcc (GCC) 4.0.2
Comment 1 Albert Astals Cid 2006-03-10 08:42:07 UTC
No idea :_/, but you should try to contact some people that have previously 
built KPDF on Solaris as we share most of the code and i have reports that it 
works for them. 
Comment 2 Albert Astals Cid 2009-06-17 14:01:54 UTC
Can you check with a newer poppler?
Comment 3 Albert Astals Cid 2010-02-09 14:46:22 UTC
No answer after 6 months, closing as INVALID, if you ever want to answer, please reopen the bug if needed


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.