well, actually I do not know whether it was a bug or not but I think that it was not a bug.
This is why:
1- I tried the first solution provided and it did not work for me [change the lib to lib64 approach etc ]. So I reverted the changes.
2- Then Zahid told me to check whether I had openssl-devel for 64 bits and I did not have it, so I installed it and the compilation went smoothly.
before installing openssl-devel for 64 bits I had:
[root@proxy1 ~]# find / -name "libssl.so"
/usr/lib/libssl.so
[root@proxy1 ~]#
after installing it I have the 2 versions:
[root@proxy1 ~]# find / -name "libssl.so"
/usr/lib/libssl.so
/usr/lib64/libssl.so
[root@proxy1 ~]#
thank you very much for your help
Fabian
> From: zm23@columbia.edu
> To: miconda@gmail.com
> Date: Fri, 6 Feb 2009 15:18:33 -0500
> CC: users@lists.kamailio.org
> Subject: Re: [Kamailio-Users] errors installing on centos 5 64 bits
>
> No, it may not be an issue now. This was used for a pre 1.4
> release. I just built from 1.4.3-tls, on RHEL5/64bit without any
> errors.
>
> Thanks
> --
> Zahid
>
> On Feb 6, 2009, at 11:29 AM, Daniel-Constantin Mierla wrote:
>
> > Hello,
> >
> > so practically there is a problem with lib directory on 64b, right?
> > It has to be fixed on SVN, it shouuld be lib64 instead of lib...
> >
> > Cheers,
> > Daniel
> >
> >
> > On 02/06/2009 04:29 PM, Zahid Mehmood wrote:
> >>
> >> Hi,
> >>
> >> I have used the following on RHEL5 64bit and seems to work. See if
> >> this helps. This was originally taken from one of the rhel openser
> >> rpm package.
> >>
> >> % cat openser--openssl-paths.diff
> >>
> >> --- Makefile.defs 2007-08-16 18:23:20.000000000 +0400
> >>
> >> +++ Makefile.defs 2007-08-26 11:07:20.000000000 +0400
> >>
> >> @@ -1205,8 +1205,8 @@
> >>
> >> #add libssl if needed
> >>
> >> ifneq ($(TLS),)
> >>
> >> -DEFS+= -I$(LOCALBASE)/ssl/include -I$(LOCALBASE)/include
> >>
> >> -LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl -lcrypto
> >>
> >> +DEFS+=
> >>
> >> +LIBS+= -L$(LOCALBASE)/lib64 -lssl -lcrypto
> >>
> >> endif
> >>
> >> ifneq ($(found_lock_method), yes)
> >>
> >> --- modules/tlsops/Makefile 2007-08-16 18:22:38.000000000 +0400
> >>
> >> +++ modules/tlsops/Makefile 2007-08-26 11:09:18.000000000 +0400
> >>
> >> @@ -7,8 +7,8 @@
> >>
> >> NAME=tlsops.so
> >>
> >> LIBS=
> >>
> >> -DEFS+= -I$(LOCALBASE)/ssl/include
> >>
> >> -LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl -lcrypto
> >>
> >> +DEFS+=
> >>
> >> +LIBS+= -L$(LOCALBASE)/lib64 -lssl -lcrypto
> >>
> >> include ../../Makefile.modules
> >>
> >> HTH.
> >>
> >> --
> >>
> >> Zahid
> >>
> >> ------------------------------------------------------------------------
> >>
> >> *From:* users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org
> >> ] *On Behalf Of *Fabian Borot
> >> *Sent:* Friday, February 06, 2009 9:22 AM
> >> *To:* Kamailio UserList
> >> *Subject:* [Kamailio-Users] errors installing on centos 5 64 bits
> >>
> >> Hello
> >>
> >> I am trying to install it on Centos 5 64 bits using this command:
> >>
> >> NICER=1 make prefix=/usr/local/kamailio-install-dir all
> >>
> >> and it fails with this message:
> >>
> >> make[1]: Entering directory `/usr/src/kamailio-1.4.3-notls/modules/
> >> db_mysql'
> >> Linking db_mysql.so
> >> /usr/bin/ld: skipping incompatible /usr/lib/libssl.so when
> >> searching for -lssl
> >> /usr/bin/ld: skipping incompatible /usr/lib/libssl.a when searching
> >> for -lssl
> >> /usr/bin/ld: cannot find -lssl
> >> collect2: ld returned 1 exit status
> >> make[1]: *** [db_mysql.so] Error 1
> >> make[1]: Leaving directory `/usr/src/kamailio-1.4.3-notls/modules/
> >> db_mysql'
> >> make: *** [modules] Error 2
> >>
> >> I think that somehow it is trying to use the lib for 32 bits or
> >> that my specific lib file is not what it should be or it is not on
> >> my system.
> >> I have the folders /usr/lib and usr/lib64 with its respective
> >> library files.
> >>
> >> Is this "libssl" related to openssl?
> >>
> >> I have these installed on my system already:
> >>
> >> [root@proxy1 lib64]# yum install openssl
> >> Setting up Install Process
> >> Parsing package install arguments
> >> Package openssl - 0.9.8b-10.el5_2.1.x86_64 is already installed.
> >> Package openssl - 0.9.8b-10.el5_2.1.i686 is already installed.
> >> Nothing to do
> >> [root@proxy1 lib64]#
> >>
> >>
> >> I also looked for "libssl" and this is what I see, it was only
> >> found in the folder for 32 bits libs if I am not mistaken. if that
> >> is the case how can i get the 64 bits equivalent?
> >>
> >> [root@proxy1 lib64]# find / -name "libssl.so"
> >> /usr/lib/libssl.so
> >> [root@proxy1 lib64]#
> >>
> >>
> >> thank you very much
> >>
> >> Fabian
> >>
> >> ------------------------------------------------------------------------
> >>
> >> Windows Live™: E-mail. Chat. Share. Get more ways to connect. Check
> >> it out. <http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Faster_022009
> >> >
> >>
> >> ------------------------------------------------------------------------
> >>
> >> _______________________________________________
> >> Kamailio (OpenSER) - Users mailing list
> >> Users@lists.kamailio.org
> >> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> >> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
> >
> > --
> > Daniel-Constantin Mierla
> > http://www.asipto.com
> >
> >
>
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users@lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Windows Live™: E-mail. Chat. Share. Get more ways to connect. See how it works.