tong/hxssl — Issue #6: Can't use/compile hxssl
Author: judu
Created: 2011-10-21 11:41:58+00:00
State: open

I'm trying to install hxssl.
So I just do
```haxelib install hxssl```

Then when I try to launch a project, I get the following error :

> Uncaught exception - load.c(232) : Failed to load library : /usr/lib/haxe/lib/hxssl/1,2/ndll/Linux/tls.ndll (/usr/lib/haxe/lib/hxssl/1,2/ndll/Linux/tls.ndll: wrong ELF class: ELFCLASS32)

I tried to compile the hxssl library (for, you know the 64bits support) :
```cd /usr/lib/haxe/lib/hxssl/1,2/; make```

And I get :

> cc -c -o src/_bio.o src/_bio.c
> src/_bio.c: In function ‘_BIO_set_conn_port’:
> src/_bio.c:57: warning: cast to pointer from integer of different size
> src/_bio.c:57: warning: cast to pointer from integer of different size
> src/_bio.c:57: warning: cast to pointer from integer of different size
> cc -c -o src/_evp.o src/_evp.c
> cc -c -o src/_hmac.o src/_hmac.c
> cc -c -o src/_ssl.o src/_ssl.c
> cc -I/usr/local/ssl/include -I -L/usr/lib/ssl -shared -o ndll/Linux/tls.ndll \
>	-lstdc++ -ldl -lgc -lssl -lcrypto src/_bio.o src/_evp.o src/_hmac.o src/_ssl.o \
>	/usr/lib/libcrypto.a /usr/lib/libssl.a
> /usr/bin/ld: src/_bio.o: relocation R_X86_64_32 against `_BIO_new_connect' can not be used when making a shared object; recompile with -fPIC
> src/_bio.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status

Do you know from where it comes?