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

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

I think that I have narrowed this down to a libtool behavior. In the make 
files, we are linking to the .la file rather than to the un-installed shared 
library. Libtool will somehow translate the explicit .la file (within the build 
tree) to -l* which may search outside of the build tree, e.g., 
../../lib/ts/libtsutil.la in the libtool command ends up being -ltsutil in the 
eventual ld command. I happen to have the older ATS 6.x libtsutil.so in my lib 
so it ends up linking against that even when I am building ATS 7.x.

Not sure this is worth the effort to fix. Probably easier just to be aware of 
and avoid the situation.

> 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
>             Fix For: 7.0.0
>
>
> 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