[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fwknop-discuss
Subject:    Re: [Fwknop-discuss] Bug detected on CentOS 6.5 x86_64
From:       Michael Rash <michael.rash () gmail ! com>
Date:       2014-04-29 2:50:59
Message-ID: CAA9wn8m5mvHioVswWFVGw5iyS4Rk-uqqSfiJgronBnEk=0GBiw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Sat, Apr 26, 2014 at 4:03 PM, HomeLab Info <info@homelab.it> wrote:

> Hi
> during the installation (fwknop-2.6.1.tar.gz) i have not received any
> error but i found this bug on CentOS 6.5 x86_64
>
> [root@apache02 fwknop-2.6.1]# fwknop -V
> fwknop: error while loading shared libraries: libfko.so.2: cannot open
> shared object file: No such file or directory
>
> [root@apache02 fwknop-2.6.1]# fwknopd -V
> fwknopd: error while loading shared libraries: libfko.so.2: cannot open
> shared object file: No such file or directory
>
> My Workaround:
>
> [root@apache02 root]# cd /usr/lib64
> [root@apache02 lib64]# ln -s /usr/lib/libfko.so libfko.so.2
> [root@apache02 lib64]# ls -la libfko.so.2
> lrwxrwxrwx 1 root root 18 26 apr 21:43 libfko.so.2 -> /usr/lib/libfko.so
>
>
Even though you had mentioned that you're installing with 'make install'
instead of from the RPM, here is how the RPM gets around this problem:

https://github.com/mrash/fwknop/blob/master/fwknop.spec#L5

..and then --libdir is used on the ./configure command line:

https://github.com/mrash/fwknop/blob/master/fwknop.spec#L84

Without using --libdir on the 'configure' command line, a default is used
as follows:

$ ./configure  --help |grep libdir
  --libdir=DIR            object code libraries [EPREFIX/lib]

This would explain what you are seeing.  I'm hesitant to try and alter the
'make install' step try to account for /lib64 vs. /lib when the default is
used.  Rather, it is probably better to just use the --libdir arg to set
/lib64.

Thanks,

--Mike



> [root@apache02 lib64]# fwknopd -V
> fwknopd server 2.6.1
> [root@apache02 lib64]# fwknop -V
> [*] Creating initial rc file: /root/.fwknoprc.
> fwknop client 2.6.1, FKO protocol version 2.0.1
> [root@apache02 lib64]#
>
>
>
> os: CentOS 6.5 (Final) x86_64
> gcc: gcc-4.4.7-4.el6.x86_64
> kernel: kernel-2.6.32-431.11.2.el6.x86_64
>
>
> Claudio V.
> HomeLab IT Blog
> http://www.homelab.it
>
>
>
> ------------------------------------------------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform
> _______________________________________________
> Fwknop-discuss mailing list
> Fwknop-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fwknop-discuss
>



-- 
Michael Rash | Founder
http://www.cipherdyne.org/
Key fingerprint = 53EA 13EA 472E 3771 894F  AC69 95D8 5D6B A742 839F

[Attachment #5 (text/html)]

<div dir="ltr"><br><div class="gmail_extra">On Sat, Apr 26, 2014 at 4:03 PM, HomeLab \
Info <span dir="ltr">&lt;<a href="mailto:info@homelab.it" \
target="_blank">info@homelab.it</a>&gt;</span> wrote:<br><div class="gmail_quote"> \
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">Hi<br> during the installation \
(fwknop-2.6.1.tar.gz) i have not received any<br> error but i found this bug on \
CentOS 6.5 x86_64<br> <br>
[root@apache02 fwknop-2.6.1]# fwknop -V<br>
fwknop: error while loading shared libraries: libfko.so.2: cannot open<br>
shared object file: No such file or directory<br>
<br>
[root@apache02 fwknop-2.6.1]# fwknopd -V<br>
fwknopd: error while loading shared libraries: libfko.so.2: cannot open<br>
shared object file: No such file or directory<br>
<br>
My Workaround:<br>
<br>
[root@apache02 root]# cd /usr/lib64<br>
[root@apache02 lib64]# ln -s /usr/lib/libfko.so libfko.so.2<br>
[root@apache02 lib64]# ls -la libfko.so.2<br>
lrwxrwxrwx 1 root root 18 26 apr 21:43 libfko.so.2 -&gt; /usr/lib/libfko.so<br>
<br></blockquote><div><br></div><div>Even though you had mentioned that you&#39;re \
installing with &#39;make install&#39; instead of from the RPM, here is how the RPM \
gets around this problem:<br><br><a \
href="https://github.com/mrash/fwknop/blob/master/fwknop.spec#L5">https://github.com/mrash/fwknop/blob/master/fwknop.spec#L5</a><br>
 <br></div><div>..and then --libdir is used on the ./configure command \
line:<br><br><a href="https://github.com/mrash/fwknop/blob/master/fwknop.spec#L84">https://github.com/mrash/fwknop/blob/master/fwknop.spec#L84</a><br></div>
 <div><br></div><div>Without using --libdir on the &#39;configure&#39; command line, \
a default is used as follows:<br><br>$ ./configure   --help |grep libdir<br>   \
--libdir=DIR                       object code libraries [EPREFIX/lib]<br> \
<br></div><div>This would explain what you are seeing.   I&#39;m hesitant to try and \
alter the &#39;make install&#39; step try to account for /lib64 vs. /lib when the \
default is used.   Rather, it is probably better to just use the --libdir arg to set \
/lib64.<br> <br>Thanks,<br><br></div><div>--Mike<br><br></div><div>  \
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px \
solid rgb(204,204,204);padding-left:1ex"> [root@apache02 lib64]# fwknopd -V<br>
fwknopd server 2.6.1<br>
[root@apache02 lib64]# fwknop -V<br>
[*] Creating initial rc file: /root/.fwknoprc.<br>
fwknop client 2.6.1, FKO protocol version 2.0.1<br>
[root@apache02 lib64]#<br>
<br>
<br>
<br>
os: CentOS 6.5 (Final) x86_64<br>
gcc: gcc-4.4.7-4.el6.x86_64<br>
kernel: kernel-2.6.32-431.11.2.el6.x86_64<br>
<br>
<br>
Claudio V.<br>
HomeLab IT Blog<br>
<a href="http://www.homelab.it" target="_blank">http://www.homelab.it</a><br>
<br>
<br>
------------------------------------------------------------------------------<br>
Start Your Social Network Today - Download eXo Platform<br>
Build your Enterprise Intranet with eXo Platform Software<br>
Java Based Open Source Intranet - Social, Extensible, Cloud Ready<br>
Get Started Now And Turn Your Intranet Into A Collaboration Platform<br>
<a href="http://p.sf.net/sfu/ExoPlatform" \
target="_blank">http://p.sf.net/sfu/ExoPlatform</a><br> \
_______________________________________________<br> Fwknop-discuss mailing list<br>
<a href="mailto:Fwknop-discuss@lists.sourceforge.net">Fwknop-discuss@lists.sourceforge.net</a><br>
 <a href="https://lists.sourceforge.net/lists/listinfo/fwknop-discuss" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/fwknop-discuss</a><br> \
</blockquote></div><br><br clear="all"><br>-- <br>Michael Rash | Founder<br><a \
href="http://www.cipherdyne.org/">http://www.cipherdyne.org/</a><br>Key fingerprint = \
53EA 13EA 472E 3771 894F   AC69 95D8 5D6B A742 839F </div></div>



------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs

_______________________________________________
Fwknop-discuss mailing list
Fwknop-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fwknop-discuss


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic