[ 
https://issues.apache.org/jira/browse/TS-4708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15475034#comment-15475034
 ] 

Peter Chou commented on TS-4708:
--------------------------------

Additional Info -- although my LD_LIBRARY_PATH is not set at compile time, I 
did find that LDFLAGS was set to include my $HOME/local/lib. This was 
previously done in order to find the GeoIP libraries installed there. This may 
be necessary to reproduce the issue -- which is linking the v7 .la file will 
end up resolving to the v6 .so in some circumstances.

In this reported case, the libtsmgmt.so is linked against libtsutil.so v6 
located in $HOME/local/lib, and the resulting traffic_cop depends on both 
libtsutil.so v7 (its own dependency) and v6 (via libtsmgt.so). If the linking 
command line is changed to specify the .so instead of the .la it will work. If 
the libtsmgmt.so linking command line omits libtsutil completely it will work 
(apparently it is not really required).

I am OK with closing this issue, as the work-around is not to install ATS into 
standard library search paths such as /usr or $HOME/local or else other 
versions of ATS installed into other directories, e.g., /opt or $HOME/opt, may 
be linked incorrectly during compilation. This would impact mostly development 
and build machines rather than production.

> traffic_cop looking for libtsutil.so.6 although libtsutil.so.7 was built.
> -------------------------------------------------------------------------
>
>                 Key: TS-4708
>                 URL: https://issues.apache.org/jira/browse/TS-4708
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Cop
>            Reporter: Peter Chou
>
> Apologies if this is a known issue. I looked through several pages of search 
> results for traffic_cop and did not see this particular issue. Platform is 
> Ubuntu Linux 14.04 LTS 64-bit. I have previously installed and ran 6.1.x 
> under $HOME/local (I am running as an un-privileged user). I just tried 
> compiling and running "master" or 7.0.0 and installed to $HOME/master. I gave 
> the appropriate "--prefix" option to configure each time. Neither of the 
> directories above are in my LD_LIBRARY_PATH at compile or run time.
> Result: traffic_manager starts OK , traffic_server starts OK , traffic_cop 
> fails since it is looking for version-6 library. If I then add 
> $HOME/local/lib to my LD_LIBRARY_PATH (contains previous 6.1.x build), then 
> traffic_cop runs using the version-6 library under there. No idea why it 
> doesn't use the version-7 library that was built at the same time and 
> installed under $HOME/master.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to