Hi,

to start off, I'm using ldap-haskell straight from its darcs
repo under GHC-6.4.1, and it works.  Just not quite like I
want.

First, I can't make a static compile:
$ ghc --make prog.hs -o prog
works without a warning, while
$ ghc --make prog.hs -o prog -optl -static
[...]
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libldap.a(os-ip.o)(.text+0x38a): In 
function `ldap_pvt_is_socket_ready':
: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libldap.a(os-ip.o)(.text+0x381): In 
function `ldap_pvt_is_socket_ready':
: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libldap.a(os-ip.o)(.text+0x684): In 
function `ldap_connect_to_host':
: warning: Using 'getaddrinfo' in statically linked applications requires at 
runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libldap.a(util-int.o)(.text+0x232): 
In function `ldap_pvt_gethostbyaddr_a':
: warning: Using 'gethostbyaddr_r' in statically linked applications requires 
at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libldap.a(util-int.o)(.text+0x64): 
In function `ldap_pvt_gethostbyname_a':
: warning: Using 'gethostbyname_r' in statically linked applications requires 
at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libldap.a(open.o)(.text+0x1b7): In 
function `ldap_create':
: undefined reference to `ber_memcalloc'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libldap.a(open.o)(.text+0x26d): In 
function `ldap_create':
: undefined reference to `ber_sockbuf_alloc'
[...]
(plenty of undefined references elided)

If I cut out the LDAP part, the above command creates a
static executable just fine.

Second, I find no trace of SSL/TLS routines.  Is that really
left out, or do I overlook something?
-- 
Thanks,
Feri.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to