You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by "Richardson, Greg" <gr...@qualcomm.com> on 2011/03/08 01:24:42 UTC
ATS 2.1.6 issue: libtsmgmt.so
Just installed 2.1.6 on an Ubuntu 10.04 64 bit system and not having much luck (system was previously running 2.0.1 ok).
Via a strace -f when starting, I noticed this from the traffic_cop spawn:
[pid 23124] writev(2, [{"/usr/local/bin/traffic_cop", 26}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libtsmgmt.so.2", 14}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10) = 140
[pid 23124] exit_group(127) = ?
Ring any bells? I re-installed 2.0.1 and it seems to be at least starting ok.
Thx in advance!
Re: ATS 2.1.6 issue: libtsmgmt.so
Posted by Leif Hedstrom <zw...@apache.org>.
On 03/07/2011 05:55 PM, Richardson, Greg wrote:
> Correct, does not find it unless I update my ld_lib_path manually.
Fwiw, I see the same on a fresh Ubuntu 10.04 install :/. I'm guessing
libtool here doesn't add /usr/local/lib to the -rpath ? Sigh.
-- Leif
Re: ATS 2.1.6 issue: libtsmgmt.so
Posted by Jason Giedymin <ja...@gmail.com>.
Here were my commands for Ubuntu 10.04:
# I use the commands below in cycle, that is why I do a force, clean, uninstall
apt-get install -y g++ autoconf \
make \
libtool \
libssl-dev \
tcl-dev \
libexpat1-dev \
libpcre3-dev \
ccache
autoreconf -i --force
./configure --prefix=/usr/local
make clean
make
make uninstall
make install
cd ~/
# start server for test
sudo trafficserver start
# Verify processes, all 3 snippet:
# XXXX 00:00:00 traffic_cop
# XXXX 00:00:00 traffic_manager
# XXXX 00:00:00 traffic_server
ps -A
# stop server test
sudo trafficserver stop
On Mar 7, 2011, at 7:55 PM, Richardson, Greg wrote:
> Correct, does not find it unless I update my ld_lib_path manually.
>
>
> ldd /usr/local/bin/traffic_cop
> linux-vdso.so.1 => (0x00007fff4a10f000)
> libtsmgmt.so.2 => not found
> libtsutil.so.2 => not found
> libpcre.so.3 => /lib/libpcre.so.3 (0x00007f974e6bd000)
> libpthread.so.0 => /lib/libpthread.so.0 (0x00007f974e4a0000)
> libnsl.so.1 => /lib/libnsl.so.1 (0x00007f974e286000)
> libtcl8.4.so.0 => /usr/lib/libtcl8.4.so.0 (0x00007f974dfbe000)
> librt.so.1 => /lib/librt.so.1 (0x00007f974ddb6000)
> libdl.so.2 => /lib/libdl.so.2 (0x00007f974dbb2000)
> libssl.so.0.9.8 => /lib/libssl.so.0.9.8 (0x00007f974d961000)
> libcrypto.so.0.9.8 => /lib/libcrypto.so.0.9.8 (0x00007f974d5d1000)
> libresolv.so.2 => /lib/libresolv.so.2 (0x00007f974d3b8000)
> libz.so.1 => /lib/libz.so.1 (0x00007f974d1a0000)
> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f974ce8c000)
> libm.so.6 => /lib/libm.so.6 (0x00007f974cc09000)
> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f974c9f1000)
> libc.so.6 => /lib/libc.so.6 (0x00007f974c66e000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f974e8fd000)
>
>
>
> -----Original Message-----
> From: Leif Hedstrom [mailto:zwoop@apache.org]
> Sent: Monday, March 07, 2011 4:46 PM
> To: Richardson, Greg
> Cc: users@trafficserver.apache.org
> Subject: Re: ATS 2.1.6 issue: libtsmgmt.so
>
> On 03/07/2011 05:37 PM, Richardson, Greg wrote:
>> Install is plain vanilla with no options passed in, including prefix. Related libs dir look like this:
>>
>> ls -al /usr/local/lib/libts*
>>
>> -rw-r--r-- 1 root bin 1746980 2011-03-07 15:35 /usr/local/lib/libtsmgmt.a
>> -rwxr-xr-x 1 root bin 995 2011-03-07 15:35 /usr/local/lib/libtsmgmt.la
>> lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsmgmt.so -> libtsmgmt.so.2.1.6
>> lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsmgmt.so.2 -> libtsmgmt.so.2.1.6
>> -rwxr-xr-x 1 root bin 752387 2011-03-07 15:35 /usr/local/lib/libtsmgmt.so.2.1.6
>> -rw-r--r-- 1 root bin 1750198 2011-03-07 15:35 /usr/local/lib/libtsutil.a
>> -rwxr-xr-x 1 root bin 967 2011-03-07 15:35 /usr/local/lib/libtsutil.la
>> lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsutil.so -> libtsutil.so.2.1.6
>> lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsutil.so.2 -> libtsutil.so.2.1.6
>> -rwxr-xr-x 1 root bin 732902 2011-03-07 15:35 /usr/local/lib/libtsutil.so.2.1.6
>
> and when you do ldd /usr/local/bin/traffic_cop ? Does it not find
> libtsmgmt.so.2 ?
>
> -- Leif
>
RE: ATS 2.1.6 issue: libtsmgmt.so
Posted by "Richardson, Greg" <gr...@qualcomm.com>.
D'oh... You're right, easy fix... Thanks for the pointer!
I'll keep an eye out for any 'real' bugs with the new rev :)
-----Original Message-----
From: Leif Hedstrom [mailto:zwoop@apache.org]
Sent: Tuesday, March 08, 2011 8:46 AM
To: Richardson, Greg
Cc: users@trafficserver.apache.org
Subject: Re: ATS 2.1.6 issue: libtsmgmt.so
On 03/07/2011 05:55 PM, Richardson, Greg wrote:
> Correct, does not find it unless I update my ld_lib_path manually.
Oh, heh, did you try running "ldconfig" (sudo ldconfig) after install?
That fixes the problem for me.
-- Leif
Re: ATS 2.1.6 issue: libtsmgmt.so
Posted by Leif Hedstrom <zw...@apache.org>.
On 03/07/2011 05:55 PM, Richardson, Greg wrote:
> Correct, does not find it unless I update my ld_lib_path manually.
Oh, heh, did you try running "ldconfig" (sudo ldconfig) after install?
That fixes the problem for me.
-- Leif
Re: ATS 2.1.6 issue: libtsmgmt.so
Posted by Jason Giedymin <ja...@gmail.com>.
False alarm.
It works for me, though I use it system wide.
sudo trafficserver start
all services started and stopped.
Fresh VM.
On Mar 7, 2011, at 7:56 PM, Leif Hedstrom wrote:
> On 03/07/2011 05:55 PM, Richardson, Greg wrote:
>> Correct, does not find it unless I update my ld_lib_path manually.
>
> Weird. libtool is supposed to do the appropriate -Wl,-rpath= ... when linking the binaries ... Let me try on my Ubuntu 10.04 VM in a bit.
>
> -- Leif
>
Re: ATS 2.1.6 issue: libtsmgmt.so
Posted by Jason Giedymin <ja...@gmail.com>.
on a completely fresh machine which wasn't upgraded from 9.x I'm getting the same error
Hm...
On Mar 7, 2011, at 7:56 PM, Leif Hedstrom wrote:
> On 03/07/2011 05:55 PM, Richardson, Greg wrote:
>> Correct, does not find it unless I update my ld_lib_path manually.
>
> Weird. libtool is supposed to do the appropriate -Wl,-rpath= ... when linking the binaries ... Let me try on my Ubuntu 10.04 VM in a bit.
>
> -- Leif
>
Re: ATS 2.1.6 issue: libtsmgmt.so
Posted by Leif Hedstrom <zw...@apache.org>.
On 03/07/2011 05:55 PM, Richardson, Greg wrote:
> Correct, does not find it unless I update my ld_lib_path manually.
Weird. libtool is supposed to do the appropriate -Wl,-rpath= ... when
linking the binaries ... Let me try on my Ubuntu 10.04 VM in a bit.
-- Leif
RE: ATS 2.1.6 issue: libtsmgmt.so
Posted by "Richardson, Greg" <gr...@qualcomm.com>.
Correct, does not find it unless I update my ld_lib_path manually.
ldd /usr/local/bin/traffic_cop
linux-vdso.so.1 => (0x00007fff4a10f000)
libtsmgmt.so.2 => not found
libtsutil.so.2 => not found
libpcre.so.3 => /lib/libpcre.so.3 (0x00007f974e6bd000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f974e4a0000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00007f974e286000)
libtcl8.4.so.0 => /usr/lib/libtcl8.4.so.0 (0x00007f974dfbe000)
librt.so.1 => /lib/librt.so.1 (0x00007f974ddb6000)
libdl.so.2 => /lib/libdl.so.2 (0x00007f974dbb2000)
libssl.so.0.9.8 => /lib/libssl.so.0.9.8 (0x00007f974d961000)
libcrypto.so.0.9.8 => /lib/libcrypto.so.0.9.8 (0x00007f974d5d1000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00007f974d3b8000)
libz.so.1 => /lib/libz.so.1 (0x00007f974d1a0000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f974ce8c000)
libm.so.6 => /lib/libm.so.6 (0x00007f974cc09000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f974c9f1000)
libc.so.6 => /lib/libc.so.6 (0x00007f974c66e000)
/lib64/ld-linux-x86-64.so.2 (0x00007f974e8fd000)
-----Original Message-----
From: Leif Hedstrom [mailto:zwoop@apache.org]
Sent: Monday, March 07, 2011 4:46 PM
To: Richardson, Greg
Cc: users@trafficserver.apache.org
Subject: Re: ATS 2.1.6 issue: libtsmgmt.so
On 03/07/2011 05:37 PM, Richardson, Greg wrote:
> Install is plain vanilla with no options passed in, including prefix. Related libs dir look like this:
>
> ls -al /usr/local/lib/libts*
>
> -rw-r--r-- 1 root bin 1746980 2011-03-07 15:35 /usr/local/lib/libtsmgmt.a
> -rwxr-xr-x 1 root bin 995 2011-03-07 15:35 /usr/local/lib/libtsmgmt.la
> lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsmgmt.so -> libtsmgmt.so.2.1.6
> lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsmgmt.so.2 -> libtsmgmt.so.2.1.6
> -rwxr-xr-x 1 root bin 752387 2011-03-07 15:35 /usr/local/lib/libtsmgmt.so.2.1.6
> -rw-r--r-- 1 root bin 1750198 2011-03-07 15:35 /usr/local/lib/libtsutil.a
> -rwxr-xr-x 1 root bin 967 2011-03-07 15:35 /usr/local/lib/libtsutil.la
> lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsutil.so -> libtsutil.so.2.1.6
> lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsutil.so.2 -> libtsutil.so.2.1.6
> -rwxr-xr-x 1 root bin 732902 2011-03-07 15:35 /usr/local/lib/libtsutil.so.2.1.6
and when you do ldd /usr/local/bin/traffic_cop ? Does it not find
libtsmgmt.so.2 ?
-- Leif
Re: ATS 2.1.6 issue: libtsmgmt.so
Posted by Leif Hedstrom <zw...@apache.org>.
On 03/07/2011 05:37 PM, Richardson, Greg wrote:
> Install is plain vanilla with no options passed in, including prefix. Related libs dir look like this:
>
> ls -al /usr/local/lib/libts*
>
> -rw-r--r-- 1 root bin 1746980 2011-03-07 15:35 /usr/local/lib/libtsmgmt.a
> -rwxr-xr-x 1 root bin 995 2011-03-07 15:35 /usr/local/lib/libtsmgmt.la
> lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsmgmt.so -> libtsmgmt.so.2.1.6
> lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsmgmt.so.2 -> libtsmgmt.so.2.1.6
> -rwxr-xr-x 1 root bin 752387 2011-03-07 15:35 /usr/local/lib/libtsmgmt.so.2.1.6
> -rw-r--r-- 1 root bin 1750198 2011-03-07 15:35 /usr/local/lib/libtsutil.a
> -rwxr-xr-x 1 root bin 967 2011-03-07 15:35 /usr/local/lib/libtsutil.la
> lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsutil.so -> libtsutil.so.2.1.6
> lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsutil.so.2 -> libtsutil.so.2.1.6
> -rwxr-xr-x 1 root bin 732902 2011-03-07 15:35 /usr/local/lib/libtsutil.so.2.1.6
and when you do ldd /usr/local/bin/traffic_cop ? Does it not find
libtsmgmt.so.2 ?
-- Leif
RE: ATS 2.1.6 issue: libtsmgmt.so
Posted by "Richardson, Greg" <gr...@qualcomm.com>.
Install is plain vanilla with no options passed in, including prefix. Related libs dir look like this:
ls -al /usr/local/lib/libts*
-rw-r--r-- 1 root bin 1746980 2011-03-07 15:35 /usr/local/lib/libtsmgmt.a
-rwxr-xr-x 1 root bin 995 2011-03-07 15:35 /usr/local/lib/libtsmgmt.la
lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsmgmt.so -> libtsmgmt.so.2.1.6
lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsmgmt.so.2 -> libtsmgmt.so.2.1.6
-rwxr-xr-x 1 root bin 752387 2011-03-07 15:35 /usr/local/lib/libtsmgmt.so.2.1.6
-rw-r--r-- 1 root bin 1750198 2011-03-07 15:35 /usr/local/lib/libtsutil.a
-rwxr-xr-x 1 root bin 967 2011-03-07 15:35 /usr/local/lib/libtsutil.la
lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsutil.so -> libtsutil.so.2.1.6
lrwxrwxrwx 1 root bin 18 2011-03-07 15:35 /usr/local/lib/libtsutil.so.2 -> libtsutil.so.2.1.6
-rwxr-xr-x 1 root bin 732902 2011-03-07 15:35 /usr/local/lib/libtsutil.so.2.1.6
Thank, Leif!
-----Original Message-----
From: Leif Hedstrom [mailto:zwoop@apache.org]
Sent: Monday, March 07, 2011 4:30 PM
To: users@trafficserver.apache.org
Cc: Richardson, Greg
Subject: Re: ATS 2.1.6 issue: libtsmgmt.so
On 03/07/2011 05:24 PM, Richardson, Greg wrote:
> Just installed 2.1.6 on an Ubuntu 10.04 64 bit system and not having much luck (system was previously running 2.0.1 ok).
>
> Via a strace -f when starting, I noticed this from the traffic_cop spawn:
>
> [pid 23124] writev(2, [{"/usr/local/bin/traffic_cop", 26}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libtsmgmt.so.2", 14}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10) = 140
> [pid 23124] exit_group(127) = ?
>
> Ring any bells? I re-installed 2.0.1 and it seems to be at least starting ok.
Sounds like some sort of build problem. You should have a libtsmgmt.so.2 installed in your $prefix/lib. Is it not there?
-- Leif
Re: ATS 2.1.6 issue: libtsmgmt.so
Posted by Leif Hedstrom <zw...@apache.org>.
On 03/07/2011 05:24 PM, Richardson, Greg wrote:
> Just installed 2.1.6 on an Ubuntu 10.04 64 bit system and not having much luck (system was previously running 2.0.1 ok).
>
> Via a strace -f when starting, I noticed this from the traffic_cop spawn:
>
> [pid 23124] writev(2, [{"/usr/local/bin/traffic_cop", 26}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libtsmgmt.so.2", 14}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10) = 140
> [pid 23124] exit_group(127) = ?
>
> Ring any bells? I re-installed 2.0.1 and it seems to be at least starting ok.
Sounds like some sort of build problem. You should have a libtsmgmt.so.2
installed in your $prefix/lib. Is it not there?
-- Leif