[erlang-questions] erlang fails to load crypto on solaris 10 x86_64

Sverker Eriksson sverker.eriksson@REDACTED
Mon Nov 12 12:03:55 CET 2012


Use --disable-hipe as a workaround if you do not plan to use hipe.

In either way, could you sent me (off list) the generated file
erts/emulator/i386-pc-solaris2.10/opt/smp/hipe_amd64_bifs.S

/Sverker

Venu Middela wrote:
> Sverker, Thanks for the quick suggestion.. I was able to compile and build  64-bit openssl along with building shared objects.
> Now, when i try to compile erlang 15B01, running into a new compilation error..
>
> Here's my configure parameters before running gmake..
>
> #./configure --enable-m64-build --prefix=/export/home/vmi/ERL --enable-threads --enable-smp-support 
> --with-ssl=/usr/local/ssl --with-ssl-lib=/usr/local/ssl/lib 
>
> Heres' the compilation error:
> gcc -m64  -m64  -fPIC -I/export/home/vmi/otp/otp_src_R15B01/erts/i386-pc-so
> laris2.10  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DERTS_SMP -DHAVE_CONFIG_
> H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -
> DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -D_POSIX_PTHREAD_SEMANT
> ICS  -Ii386-pc-solaris2.10/opt/smp -Ibeam -Isys/unix -Isys/common -Ii386-pc-sola
> ris2.10 -Izlib  -Ipcre -Ihipe -I../include -I../include/i386-pc-solaris2.10 -I..
> /include/internal -I../include/internal/i386-pc-solaris2.10 -c i386-pc-solaris2.
> 10/opt/smp/hipe_amd64_bifs.S -o obj/i386-pc-solaris2.10/opt/smp/hipe_amd64_bifs.
> o                                                                               
> i386-pc-solaris2.10/opt/smp/hipe_amd64_bifs.S:2005:2: #endif without #if        
> gmake[3]: *** [obj/i386-pc-solaris2.10/opt/smp/hipe_amd64_bifs.o] Error 1       
> gmake[3]: Leaving directory `/export/home/vmi/otp/otp_src_R15B01/erts/emula
> tor'                                                                            
> gmake[2]: *** [opt] Error 2                                                     
> gmake[2]: Leaving directory `/export/home/vmi/otp/otp_src_R15B01/erts/emula
> tor'                                                                            
> gmake[1]: *** [smp] Error 2                                                     
> gmake[1]: Leaving directory `/export/home/vmi/otp/otp_src_R15B01/erts'     
> gmake: *** [emulator] Error 2                                                   
> ddela/otp/otp_src_R15B01root@REDACTED:/export/home/vmi/otp/otp_src_R15BThanks,
> Venu
>
>   
>> Date: Fri, 9 Nov 2012 10:25:51 +0100
>> From: sverker.eriksson@REDACTED
>> To: mvm_8@REDACTED
>> CC: attila.r.nohl@REDACTED; erlang-questions@REDACTED
>> Subject: Re: [erlang-questions] erlang fails to load crypto on solaris 10 x86_64
>>
>> You have to configure openssl source tree with option 'shared' to get 
>> dynamic libraries.
>> Option 'no-asm' might also help if you get compile problems. Read INSTALL.
>>
>> /Sverker
>>
>> Venu Middela wrote:
>>     
>>> Attila,
>>>  I did try installing the package openssl0.9.8, but the binaries from this package are 32 bit.
>>> also, when i tried to compile from the  sourcecode , strangely, the compile/make is not building the 64-bit binaries for libcrypto and libssl..
>>> here's the contents of compiled /usr/local/ssl/lib
>>> bash-3.2$ pwd                                                                  
>>> /usr/local/ssl/lib                                                              
>>>
>>> -bash-3.2$ ls    
>>> engines      libcrypto.a  libssl.a     pkgconfig 
>>>
>>>
>>> Thanks,
>>> Venu
>>>
>>>   
>>>       
>>>> Date: Thu, 8 Nov 2012 21:50:21 +0100
>>>> From: attila.r.nohl@REDACTED
>>>> To: erlang-questions@REDACTED
>>>> Subject: Re: [erlang-questions] erlang fails to load crypto on solaris 10	x86_64
>>>>
>>>> 2012/11/8 Venu Middela <mvm_8@REDACTED>:
>>>>     
>>>>         
>>>>> Steve,
>>>>>  Thanks for pointing out the correct version of crypto.
>>>>> Could you please point to instructions on how to patch crypto to remove the
>>>>> NIF des_ede3_cfb_crypt.
>>>>> I couldnt find a solaris package version 0.9.8. Looked through oracle sites
>>>>> for updated package and/or any patch that would
>>>>> upgrade openssl to 0.9.8, but no luck.
>>>>>       
>>>>>           
>>>> Check sunfreeware.com (or one of its mirrors). For example this is a
>>>> 0.9.8 package for Solaris 10 on x86:
>>>> http://sunfreeware.saix.net/programlistintel10.html#openssl098p It
>>>> seems that now the main site requires registration :-(
>>>> _______________________________________________
>>>> erlang-questions mailing list
>>>> erlang-questions@REDACTED
>>>> http://erlang.org/mailman/listinfo/erlang-questions
>>>>     
>>>>         
>>>  		 	   		  
>>>   
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> erlang-questions mailing list
>>> erlang-questions@REDACTED
>>> http://erlang.org/mailman/listinfo/erlang-questions
>>>   
>>>       
>  		 	   		  
>   




More information about the erlang-questions mailing list