Youre right, the library files are in the lib subdirectory. Here's the partial failed command which does contain the correct -L option.
iverBody.o ./qpid/framing/.libs/AMQP_ClientProxy.o ./qpid/framing/.libs/ClusterConnectionDeliveryRecordBody.o ./qpid/framing/.libs/SessionAttachBody.o ./qpi\ d/framing/.libs/ClusterConnectionTxDequeueBody.o ./qpid/framing/.libs/AMQP_ServerProxy.o ./qpid/framing/.libs/ExecutionSyncBody.o ./qpid/framing/.libs/DtxGe\ tTimeoutBody.o ./qpid/framing/.libs/ClusterConnectionOutputTaskBody.o ./qpid/framing/.libs/SessionCompletedBody.o ./qpid/framing/.libs/ClusterUpdateOfferBod\ y.o ./qpid/framing/.libs/SessionAttachedBody.o ./qpid/framing/.libs/FileStageBody.o ./qpid/framing/.libs/MessageResumeResult.o ./qpid/framing/.libs/Exchange\ QueryResult.o ./qpid/framing/.libs/ClusterErrorCheckBody.o ./qpid/framing/.libs/FragmentProperties.o ./qpid/framing/.libs/MessageReleaseBody.o ./qpid/framin\ g/.libs/ClusterConnectionAbortBody.o ./qpid/framing/.libs/ClusterConfigChangeBody.o ./qpid/framing/.libs/SessionDetachedBody.o ./qpid/framing/.libs/Exchange\ DeclareBody.o ./qpid/framing/.libs/ConnectionTuneOkBody.o ./qpid/framing/.libs/SessionRequestTimeoutBody.o ./qpid/framing/.libs/ClusterConnectionConfigBody.\ o ./qpid/framing/.libs/StreamReturnBody.o ./qpid/framing/.libs/MessageAcquireBody.o ./qpid/framing/.libs/DtxPrepareBody.o qpid/.libs/Address.o qpid/.libs/Da\ taDir.o qpid/.libs/Exception.o qpid/.libs/Modules.o qpid/.libs/Options.o qpid/.libs/Plugin.o qpid/.libs/RefCountedBuffer.o qpid/.libs/SaslFactory.o qpid/.li\ bs/SessionId.o qpid/.libs/SessionState.o qpid/.libs/StringUtils.o qpid/.libs/Url.o qpid/amqp_0_10/.libs/SessionHandler.o qpid/.libs/assert.o qpid/framing/.l\ ibs/AMQBody.o qpid/framing/.libs/AMQContentBody.o qpid/framing/.libs/AMQFrame.o qpid/framing/.libs/AMQHeaderBody.o qpid/framing/.libs/AMQHeartbeatBody.o qpi\ d/framing/.libs/AMQMethodBody.o qpid/framing/.libs/AccumulatedAck.o qpid/framing/.libs/Array.o qpid/framing/.libs/BodyHandler.o qpid/framing/.libs/Buffer.o \ qpid/framing/.libs/Endian.o qpid/framing/.libs/FieldTable.o qpid/framing/.libs/FieldValue.o qpid/framing/.libs/FrameDecoder.o qpid/framing/.libs/FrameSet.o \ qpid/framing/.libs/List.o qpid/framing/.libs/ProtocolInitiation.o qpid/framing/.libs/ProtocolVersion.o qpid/framing/.libs/Proxy.o qpid/framing/.libs/SendCon\ tent.o qpid/framing/.libs/SequenceNumber.o qpid/framing/.libs/SequenceNumberSet.o qpid/framing/.libs/SequenceSet.o qpid/framing/.libs/TransferContent.o qpid\ /framing/.libs/Uuid.o qpid/log/.libs/Logger.o qpid/log/.libs/Options.o qpid/log/.libs/OstreamOutput.o qpid/log/.libs/Selector.o qpid/log/.libs/Statement.o q\ pid/management/.libs/Buffer.o qpid/management/.libs/ConnectionSettings.o qpid/management/.libs/Manageable.o qpid/management/.libs/ManagementObject.o qpid/ma\ nagement/.libs/Mutex.o qpid/sys/.libs/AggregateOutput.o qpid/sys/.libs/AsynchIOHandler.o qpid/sys/.libs/ClusterSafe.o qpid/sys/.libs/DispatchHandle.o qpid/s\ ys/.libs/Dispatcher.o qpid/sys/.libs/Runnable.o qpid/sys/.libs/Shlib.o qpid/sys/.libs/Timer.o qpid/sys/.libs/TimerWarnings.o qpid/amqp_0_10/.libs/Codecs.o \ -Wl,-rpath -Wl,/home/spervez1/qpidc-0.14/src/.libs -Wl,-rpath -Wl,/home/spervez1/qpid-tools/lib -L/tp64/boost/1.44.0/lib ./.libs/libqpidtypes.so -lboost_pr\ ogram_options -lboost_filesystem -luuid -ldl -lrt -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64 -L/lib\ /../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../l\ ib64/crtn.o -Wl,-soname -Wl,libqpidcommon.so.2 -o .libs/libqpidcommon.so.2.0.0 /usr/bin/ld: cannot find -lboost_program_options collect2: ld returned 1 exit status make[2]: *** [libqpidcommon.la] Error 1 make[2]: Leaving directory `/home/spervez1/qpidc-0.14/src' the boost libs subdirectory contains these files /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-1_44.a /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-1_44.so /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-1_44.so.1.44.0 /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-d-1_44.a /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-d-1_44.so /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-d-1_44.so.1.44.0 /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-d.a /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-d.so /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-mt-1_44.a /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-mt-1_44.so /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-mt-1_44.so.1.44.0 /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-mt-d-1_44.a /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-mt-d-1_44.so /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-mt-d-1_44.so.1.44.0 /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-mt-d.a /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-mt-d.so /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-mt.a /tp64/boost/1.44.0/lib/libboost_program_options-gcc41-mt.so /tp64/boost/1.44.0/lib/libboost_program_options-gcc41.a /tp64/boost/1.44.0/lib/libboost_program_options-gcc41.so Which I believe is what is being asked for. Why is it not finding them? Salman -----Original Message----- From: Steve Huston [mailto:[email protected]] Sent: Thursday, March 15, 2012 6:38 AM To: [email protected] Subject: RE: boost error Did you see the -L/tp64/boost/1.44.0 option passed to the command that failed? Is libboost_program_options.so (and the other Boost libs) in /tp64/boost/1.44.0? Or in a subdirectory of that? I'm guessing a subdirectory - you would need to specify the complete path to the directory where the libs are located with -L. -Steve > -----Original Message----- > From: Pervez, Salman [mailto:[email protected]] > Sent: Wednesday, March 14, 2012 6:41 PM > To: [email protected] > Subject: RE: boost error > > Steve, thanks for the help. Unfortunately this does not seem to work. > > CXXFLAGS=-I/tp64/boost/1.44.0 LDFLAGS=-L/tp64/boost/1.44.0 ./configure - > -prefix=/home/spervez1/qpid-\ Tools > CXXFLAGS=-I/tp64/boost/1.44.0 LDFLAGS=-L/tp64/boost/1.44.0 make install > > Still gives me the same error message. > > /usr/bin/ld: cannot find -lboost_program_options > collect2: ld returned 1 exit status > > I read online that boost now requires explicit declaration of st or mt > semantics so I replaced occurrences of lboost_program_options with > lboost_program_options-mt but that does not work. I also tried giving > configure the argument --with-boost=<...> but it did not recognize that > option. Any other thoughts? > > Salman > > -----Original Message----- > From: Steve Huston [mailto:[email protected]] > Sent: Wednesday, March 14, 2012 12:39 PM > To: [email protected] > Subject: RE: boost error > > Hi Salman, > > You came to the right place. > > Since you passed CPPFLAGS to the build, which helps the compiler find the > headers, you should also try passing LDFLAGS=-L<path to the boost libs> > > -Steve > > > -----Original Message----- > > From: Pervez, Salman [mailto:[email protected]] > > Sent: Tuesday, March 13, 2012 7:13 PM > > To: [email protected] > > Subject: boost error > > > > Hi everyone, I am trying to do a source build for qpid 0.14. I am > running into a > > boost dependency error which I am unable to solve. Perhaps I should be > > posting this on a boost users list but I was hoping if someone > encountered > > something similar they might be able to help me out. Here is the > error... > > > > /usr/bin/ld: cannot find -lboost_program_options > > collect2: ld returned 1 exit status > > make[2]: *** [libqpidcommon.la] Error 1 > > > > I also built boost from source so its no surprise that it cannot find > the > > required file in /usr/bin/ld. Perhaps there is a way to tell it where > > to > find > > boost? I passed the location of my boost build to the configure script > through > > a CPPFLAG which helps it find the hpp files but perhaps not this one. > I'll > > appreciate any input on this. Thanks! > > > > Salman > > > > ________________________________ > > > > CONFIDENTIALITY AND SECURITY NOTICE > > > > The contents of this message and any attachments may be confidential > > and proprietary and also may be covered by the Electronic > > Communications Privacy Act. This message is not intended to be used > > by, and should not > be > > relied upon in any way, by any third party. If you are not an intended > > recipient, please inform the sender of the transmission error and > > delete > this > > message immediately without reading, disseminating, distributing or > copying > > the contents. Citadel makes no assurances that this e-mail and any > > attachments are free of viruses and other harmful code. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] For additional > commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] For additional > commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
