[csw-users] GCC4 ld Warnings

Kapoor, Nitin Nitin.Kapoor at Sensis.com
Mon Apr 11 21:43:41 CEST 2011

Here is the exact warning:-

libtool: link: g++ -Wall -Werror -ggdb -O0 -o recorder recorder-RecorderMain.o  -L/usr/local/lib -L/opt/csw/gcc4/lib -L/export/home/sbsmlat/workspace/system/app/recorder/Debug/.lib -L/export/home/sbsmlat/install/Debug/lib -L/export/home/sbsmlat/workspace/system_libs/Debug/.lib -L/usr/local/boost/lib -L/export/home/sbsmlat/xerces-c-3.1.1/src /export/home/sbsmlat/workspace/system/app/recorder/Debug/recorder/.libs/librecorder.a /export/home/sbsmlat/install/Debug/lib/libmlat_component.so /export/home/sbsmlat/install/Debug/lib/libmlat_adaptation.so /export/home/sbsmlat/install/Debug/lib/libmlat_comm.so /export/home/sbsmlat/install/Debug/lib/libmlat_message.so /usr/local/lib/libprotobuf.so -lz /export/home/sbsmlat/install/Debug/lib/libmlat_repository.so -lboost_filesystem /export/home/sbsmlat/install/Debug/lib/libmlat_utility.so /export/home/sbsmlat/install/Debug/lib/libmlat_transform.so -lboost_system -lboost_thread -lboost_date_time -lboost_program_options /usr/local/lib/libxqilla.so /usr/local/lib/libxerces-c.so -licuuc -licudata -lnsl -lsocket -lpthread -ldl /opt/csw/gcc4/lib/libstdc++.so -lm -pthreads -Wl,-R -Wl,/export/home/sbsmlat/install/Debug/lib -Wl,-R -Wl,/usr/local/lib -Wl,-R -Wl,/opt/csw/gcc4/lib -Wl,-R -Wl,/export/home/sbsmlat/install/Debug/lib -Wl,-R -Wl,/usr/local/lib -Wl,-R -Wl,/opt/csw/gcc4/lib
ld: warning: file /opt/csw/gcc4/lib/libstdc++.so: attempted multiple inclusion of file


-----Original Message-----
From: users-bounces+nitin.kapoor=sensis.com at lists.opencsw.org [mailto:users-bounces+nitin.kapoor=sensis.com at lists.opencsw.org] On Behalf Of Maciej Blizinski
Sent: Monday, April 11, 2011 11:37 AM
To: Questions and discussions
Subject: Re: [csw-users] GCC4 ld Warnings

2011/4/11 Kapoor, Nitin <Nitin.Kapoor at sensis.com>:
> Well the issue remains when we build our own software with GCC4.

Yes, so these are 2 separate issues: one is multiple inclusions.
Ben's advice is most probably the way to go: do not use
LD_LIBRARY_PATH, use -L and -R instead.

The second issue is what seems to be effort duplication.  Are there
any reasons not to use OpenCSW xerces and/or protobuf?  I'm asking,
because if you don't use these packages because there's something that
doesn't work for you, we need to fix the packages.

users mailing list
users at lists.opencsw.org
This message is intended only for the addressee and may contain information that is company confidential or privileged.  Any technical data in this message may be exported only in accordance with the U.S. International Traffic in Arms Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 CFR Parts 730-774). Unauthorized use is strictly prohibited and may be unlawful. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, you should not read, copy, disclose or otherwise use this message. If you have received this email in error, please delete it, and advise the sender immediately. 

More information about the users mailing list