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

Close

compiling libwmf-0.2.8.3 under Solaris

Help
Jason
2004-11-12
2013-06-04
  • Jason
    Jason
    2004-11-12

    Hi,

    I'm trying to compile libwmf-0.2.8.3 on a Sparc machine running Solaris 8.  I'm using gcc-3.4.2 and gmake.  Everything compiles fine until I get to the wmf2eps executable, at which stage I get the following error.

    /bin/bash ../../libtool --mode=link gcc  -g -O2 -I/home/jbbrand1/include/freetype2 -I/home/jbbrand1/include  -I/usr/openwin/include  -I/home/jbbrand1/include/libxml2      -L../../src/.libs   -L/home/jbbrand1/lib -R/home/jbbrand1/lib -lfreetype -lz  -L/usr/openwin/lib -R/usr/openwin/lib  -lSM -lICE -lX11 -lsocket  -lnsl -L/home/jbbrand1/lib -R/home/jbbrand1/lib -lxml2 -lz -lpthread -lm -lsocket -lnsl -ljpeg -lpng -lz -lm -L/home/jbbrand1/lib -R/home/jbbrand1/lib -L/usr/local/lib -R/usr/local/lib -o wmf2eps  wmf2eps.o ../libwmf.la ../libwmflite.la
    mkdir .libs
    gcc -g -O2 -I/home/jbbrand1/include/freetype2 -I/home/jbbrand1/include -I/usr/openwin/include -I/home/jbbrand1/include/libxml2 -o .libs/wmf2eps wmf2eps.o  -L/deptpc/scratch/jbbrand1/packages/libwmf-0.2.8.3/src/.libs -L/home/jbbrand1/lib -L/usr/openwin/lib -L/usr/local/lib ../.libs/libwmf.so /deptpc/scratch/jbbrand1/packages/libwmf-0.2.8.3/src/.libs/libwmflite.so /home/jbbrand1/lib/libfreetype.so -lSM -lICE -lX11 /home/jbbrand1/lib/libxml2.so -lpthread -lsocket -lnsl /home/jbbrand1/lib/libjpeg.so -lpng -lz ../.libs/libwmflite.so -lm -R/home/jbbrand1/lib -R/usr/openwin/lib -R/usr/local/lib
    ld: warning: file ../.libs/libwmflite.so: linked to /deptpc/scratch/jbbrand1/packages/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
    gmake[3]: *** [wmf2eps] Error 1
    gmake[3]: Leaving directory `/deptpc/scratch/jbbrand1/packages/libwmf-0.2.8.3/src/convert'
    gmake[2]: *** [all-recursive] Error 1
    gmake[2]: Leaving directory `/deptpc/scratch/jbbrand1/packages/libwmf-0.2.8.3/src'
    gmake[1]: *** [all-recursive] Error 1
    gmake[1]: Leaving directory `/deptpc/scratch/jbbrand1/packages/libwmf-0.2.8.3'
    gmake: *** [all] Error 2

    It appears the problem is the multiple inclusion of libwmflite.so.  I can't seem to figure out how to get rid of this multiple inclusion.  Anybody else had this problem?

    Thanks for the help.

    Jason

     
    • bzRooter
      bzRooter
      2005-05-18

      I am having that issue. Did you find how to fix it?

       
      • Just a suggestion - I don't know whether it will work - but try running ./autogen.sh then re-running configure && make.

         
        • I have the same problem under Solaris with libwmf-0.2.8.4.
          Did anyone solve this problem?

          ##########################
          /bin/bash ../../libtool --mode=link --tag=CC gcc  -g -O2 -I/usr/local/include/freetype2 -I/usr/local/include         -L../../src/.libs   -L/usr/local/lib -R/usr/local/lib -lfreetype -lz  -lexpat -ljpeg -lpng -lz -lm  -o wmf2eps  wmf2eps.o ../libwmf.la ../libwmflite.la
          gcc -g -O2 -I/usr/local/include/freetype2 -I/usr/local/include -o .libs/wmf2eps wmf2eps.o  -L/var/daybyday/libwmf-0.2.8.4/src/.libs -L/usr/local/lib -L/usr/lib -L/usr/openwin/lib -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib ../.libs/libwmf.so /var/daybyday/libwmf-0.2.8.4/src/.libs/libwmflite.so /usr/local/lib/libfreetype.so /usr/local/lib/libexpat.so -ljpeg -lpng -lz ../.libs/libwmflite.so -lm -R/usr/local/lib
          ld: warning: file ../.libs/libwmflite.so: linked to /var/daybyday/libwmf-0.2.8.4/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
          gmake[3]: *** [wmf2eps] Error 1
          gmake[3]: Leaving directory `/var/daybyday/libwmf-0.2.8.4/src/convert'
          gmake[2]: *** [all-recursive] Error 1
          gmake[2]: Leaving directory `/var/daybyday/libwmf-0.2.8.4/src'
          gmake[1]: *** [all-recursive] Error 1
          gmake[1]: Leaving directory `/var/daybyday/libwmf-0.2.8.4'
          gmake: *** [all] Error 2
          ##########################

           
    • tried ./autgen.sh, installed a few missing pkg, run configure , make clean and make. Still the same error...