[ 
https://issues.apache.org/activemq/browse/AMQCPP-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Timothy Bish closed AMQCPP-226.
-------------------------------

    Resolution: Fixed

This is an environment issue, adding the location of the libraries to the 
LD_LIBRARY_PATH is the solution.

> During linking, the expat library is not found if apr-utils was installed in 
> non standard path
> ----------------------------------------------------------------------------------------------
>
>                 Key: AMQCPP-226
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-226
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>    Affects Versions: 2.2.3, 2.2.4
>         Environment: Solaris with SunStudio compiler and apr-utils not 
> installed in /usr/local
>            Reporter: Michael Vishchers
>            Assignee: Timothy Bish
>            Priority: Minor
>
> When installing apr-utils in a non-standard directory (and maybe even then, 
> have not checked it), the linking steps fail with a "ld: fatal: library 
> -lexpat: not found" error.
> Even adding the directory where the expat lib could be found to apu-1-config 
> did not help. The only way to get around this problem was create links to the 
> expat library in /usr/lib (not my preferred solution ;-)
> The output from the interesting moment:
> Making all in src/examples
> /bin/bash ../../libtool --tag=CXX    --mode=link CC -mt -w -O5 
> -library=stlport4   -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT 
> -D_LARGEFILE64_SOURCE  
> -I/localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-1.3.3/include/apr-1
>    
> -I/localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-util-1.3.4/include/apr-1
>   -PIC   -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT 
> -D_LARGEFILE64_SOURCE  
> -I/localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-1.3.3/include/apr-1
>    
> -I/localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-util-1.3.4/include/apr-1
>  -I./../main -g    -o example example-main.o ../main/libactivemq-cpp.la  
> /localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-1.3.3/lib/libapr-1.la
>  -luuid -lsendfile -lrt -lsocket -lnsl  -lpthread    
> /localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-util-1.3.4/lib/libaprutil-1.la
>   
> /localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-util-1.3.4/lib/libexpat.la
>  
> CC -mt -w -O5 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT 
> -D_LARGEFILE64_SOURCE 
> -I/localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-1.3.3/include/apr-1
>  
> -I/localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-util-1.3.4/include/apr-1
>  -PIC -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT 
> -D_LARGEFILE64_SOURCE 
> -I/localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-1.3.3/include/apr-1
>  
> -I/localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-util-1.3.4/include/apr-1
>  -I./../main -g -o .libs/example example-main.o  
> ../main/.libs/libactivemq-cpp.so -lexpat -library=stlport4 -lm 
> /localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-util-1.3.4/lib/libaprutil-1.so
>  
> /localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-1.3.3/lib/libapr-1.so
>  -luuid -lsendfile -lrt -lsocket -lnsl -lpthread 
> /localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-util-1.3.4/lib/libexpat.so
>   
> -R/localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/activemq-cpp-2.2.4/lib
>  
> -R/localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-util-1.3.4/lib
>  
> -R/localhome/export/home/gnu/try2/install/sun4u/SunOS/5.10/packages/apr-1.3.3/lib
> ld: fatal: library -lexpat: not found
> ld: fatal: File processing errors. No output written to .libs/example

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to