Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#135 Symbol referencing errors(wmf2eps.o)

open
nobody
None
5
2005-02-15
2005-02-15
Anonymous
No

I'm getting a compiling failure on libwmf-0.2.8.3.

OS:Solaris 8 Generic_117350-16
gcc:3.4.3
libpng:1.2.8
freetype:2.1.9
gd:2.0.33

----------
make[3]: Entering directory
`/usr/local/src/libwmf-0.2.8.3/src/convert'
source='wmf2eps.c' object='wmf2eps.o' libtool=no \ depfile='.deps/wmf2eps.Po'
tmpdepfile='.deps/wmf2eps.TPo' \ depmode=gcc3 /bin/bash ../../depcomp \ gcc -DHAVE_CONFIG_H -DPACKAGE=\"libwmf\"
-DVERSION=\"0.2.8\" -I. -I. -I../.. -I.
./../include -I../../src -I../.. -g -O2
-I/usr/local/include/freetype2 -I/usr
/local/include -c `test -f 'wmf2eps.c' || echo
'./'`wmf2eps.c
/bin/bash ../../libtool --mode=link gcc -g -O2
-I/usr/local/include/freetype2 -
I/usr/local/include -L../../src/.libs
-L/usr/local/lib -R/usr/local/li
b -lfreetype -lz -lSM -lICE -lX11 -lsocket -lnsl
-ljpeg -lpng -lz -lm -o wm
f2eps wmf2eps.o ../libwmf.la ../libwmflite.la
mkdir .libs
gcc -g -O2 -I/usr/local/include/freetype2
-I/usr/local/include -o .libs/wmf2eps
wmf2eps.o -L/usr/local/src/libwmf-0.2.8.3/src/.libs
-L/usr/local/lib ../.libs/l
ibwmf.so
/usr/local/src/libwmf-0.2.8.3/src/.libs/libwmflite.so
/usr/local/lib/li
bfreetype.so -lSM -lICE -lX11 -lsocket -lnsl
/usr/local/lib/libjpeg.so -lpng -lz
../.libs/libwmflite.so -lm -R/usr/local/lib
ld: warning: file ../.libs/libwmflite.so: linked to
/usr/local/src/libwmf-0.2.8.
3/src/.libs/libwmflite.so: attempted multiple inclusion
of file
Undefined first referenced
symbol in file
wmf_eps_function wmf2eps.o
ld: fatal: Symbol referencing errors. No output written
to .libs/wmf2eps
collect2: ld returned 1 exit status
make[3]: *** [wmf2eps] Error 1
make[3]: Leaving directory
`/usr/local/src/libwmf-0.2.8.3/src/convert'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr/local/src/libwmf-0.2.8.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/local/src/libwmf-0.2.8.3'
make: *** [all] Error 2
hogehoge#
----------

I corrected the configure script as follows.

% diff libwmf-0.2.8.3/configure.org
libwmf-0.2.8.3/configure
-----
7674c7674
< whole_archive_flag_spec='-z
allextract$convenience -z defaultextract' ;;
---
> whole_archive_flag_spec='${wl}-z
${wl}allextract$convenience ${wl}-z
${wl}defaultextract' ;;
-----

The cause is uncertain.
- gcc version?
- Solaris version?

--
****************************************
JAPAN INFORMATION PROCESSING SERVICE
Tomohiro Suzuki
****************************************

Discussion