RE: atk_relation_add_target multiple inclusion error

"J.M. Maurer" <[email protected]>
Newsgroups gmane.editors.abiword.user
Message-ID <1287000812.22039.10.camel@psi>
I'm off to Brussels now for 2 days, but when I get back I'll have a
closer look. If anyone has a good idea in the meantime, please help Don
along :)

  Marc

On Tue, 2010-10-12 at 16:25 -0500, Don Farage wrote:
> Marc,
> 
> OK...how's this.  I built a little script to scan all the *.so libs for that
> key.
> 
> /usr/lib
> 
> /usr/local/lib
> 
> /usr/local/lib/libatk-1.0.so
> [785] | 50552| 255|FUNC |GLOB |0 |12 |atk_relation_add_target
> 
> /usr/local/lib/libgtk-x11-2.0.so
> [11303] | 0| 0|FUNC |GLOB |0 |UNDEF |atk_relation_add_target
> 
> The script uses "nm" to scan the libs and filters using grep.
> 
> Seems like the atk lib is required by one of the pieces for the build as
> well as the libgtk-x11 lib.
> 
> Let me know if you can.
> 
> SCRIPT================================================================================
> #!/bin/sh
> 
> KEY="atk_relation_add_target"
> DIRECTORIES="\
>   /usr/lib \
>   /usr/local/lib \
> "
> for DIRECTORY in ${DIRECTORIES}
> do
>   echo ${DIRECTORY}
> 
>   FILES=`/usr/bin/ls ${DIRECTORY}/*.so`
> 
>   for FILE in ${FILES}
>   do
>     DATA=`nm ${FILE} | grep ${KEY}`
>     if [ ! -z "${DATA}" ]
>     then
>       echo ${FILE}
>       echo ${DATA}
>     fi
>   done
> done
> 
> exit
> SCRIPT================================================================================
> 
> Thanks,
> Don Farage
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of J.M. Maurer
> Sent: Monday, October 11, 2010 4:31 PM
> To: Don Farage
> Cc: [email protected]
> Subject: Re:
> 
> 
> Hi Don,
> 
> This really looks like a broken setup, but you probably already figured
> that much ;) My guess is that some system library is linked against that
> provides the atk_relation_add_target() function, and you also link
> against a similar library in /usr/local/lib/. A good old version
> conflict.
> 
> Unfortunately I see nothing in the output that could give me a better
> hint, sorry.
> 
>   Marc
> 
> On Fri, 2010-10-01 at 15:37 -0500, Don Farage wrote:
> > OK...help.
> >
> > I'm compiling Abiword 2.8.4 for Solaris x86 10_9 and keep getting a
> > linking error.  I think all the tools are update to date/current and work
> > for other apps...not sure what's happening.
> >
> > Any idea what the "multiple inclusions" messages are about?
> >
> > Thanks in advance,
> > Don
> >
> > libtool: link: g++ -g -O2 --no-undefined -o .libs/abiword
> > abiword-UnixMain.o  ./.libs/libabiword-2.8.so -L/usr/local/lib -L/usr/lib
> > -L/usr/openwin/lib -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib
> > -L/usr/X11R6/lib -L/usr/local/BerkeleyDB.4.7/lib -L/usr/local/mysql/lib
> > -L/sol10/SOURCES/I10/gcc-3.4.6/objdir/i386-pc-solaris2.10/libstdc++-v3/src
> > -L/sol10/SOURCES/I10/gcc-3.4.6/objdir/i386-pc-solaris2.10/libstdc++-v3/src
> > /.libs -L/sol10/SOURCES/I10/gcc-3.4.6/objdir/gcc
> > -L/usr/local/i386-pc-solaris2.10/bin -L/usr/local/i386-pc-solaris2.10/lib
> > -L/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/../../../../i386-pc-solaris
> > 2.10/lib -L/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6 -L/usr/ccs/bin
> > -L/usr/ccs/lib -L/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/../../..
> > /usr/local/lib/libstdc++.so -lgcc_s /usr/local/lib/libfribidi.so
> > /usr/local/lib/libwv.so /usr/local/lib/libgio-2.0.so
> > /usr/local/lib/libgtk-x11-2.0.so /usr/local/lib/libgdk-x11-2.0.so
> > -latk-1.0 /usr/local/lib/librsvg-2.so /usr/local/lib/libgsf-1.so -lbz2
> > /usr/local/lib/libcroco-0.6.so /usr/local/lib/libxml2.so
> > /usr/local/lib/libpangocairo-1.0.so /usr/local/lib/libpangoft2-1.0.so
> > /usr/local/lib/libpango-1.0.so /usr/local/lib/libgdk_pixbuf-2.0.so -lmlib
> > /usr/local/lib/libcairo.so /usr/local/lib/libfontconfig.so
> > /usr/local/lib/libfreetype.so /usr/local/lib/libexpat.so -lresolv
> > /usr/local/lib/libpng12.so -lz /usr/local/lib/libXrender.so -lSM -lICE
> > -lX11 -lm /usr/local/lib/libgobject-2.0.so
> > /usr/local/lib/libgmodule-2.0.so /usr/local/lib/libgthread-2.0.so
> > -lpthread -lthread -lrt /usr/local/lib/libglib-2.0.so -lsocket -lnsl
> > /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -lsec -lc
> > /usr/local/lib/libjpeg.so -Wl,-R -Wl,/usr/local/lib
> > ld: warning: file /usr/local/lib/libstdc++.so: attempted multiple
> > inclusion of file
> > Undefined                       first referenced
> >  symbol                             in file
> > atk_relation_add_target             /usr/local/lib/libgtk-x11-2.0.so
> > ld: fatal: Symbol referencing errors. No output written to .libs/abiword
> > collect2: ld returned 1 exit status
> > make[3]: *** [abiword] Error 1
> > make[3]: Leaving directory `/u/dlfarage/Abiword/abiword-2.8.6/src'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/u/dlfarage/Abiword/abiword-2.8.6/src'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/u/dlfarage/Abiword/abiword-2.8.6'
> > make: *** [all] Error 2
> > -----------------------------------------------
> > To unsubscribe from this list, send a message to
> > [email protected] with the word
> > unsubscribe in the message body.
> 
> 
> -----------------------------------------------
> To unsubscribe from this list, send a message to
> [email protected] with the word
> unsubscribe in the message body.
> -----------------------------------------------
> To unsubscribe from this list, send a message to
> [email protected] with the word
> unsubscribe in the message body.


-----------------------------------------------
To unsubscribe from this list, send a message to
[email protected] with the word
unsubscribe in the message body.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.