oe-angstrom compile error opkg-native !!

Hello,

I've been having trouble baking OE-Angstrom. I'm getting error [1] and
with my limited knowledge of the process I can't figure out what I'm
missing.
I'm building OE-Angstrom on Zenwalk (formerly MiniSlack) with gcc
4.2.3
The crosstool and others compiled ok, but got stuck with the opkg-
native.
Any help would be greatly appreciated.

[1] http://pastebin.ca/1213015

exerpt: (in case the pastebin disappear)

NOTE: Running task 642 of 897 (ID: 49, /home/spaceman/devel/oe/
org.openembedded.dev/packages/opkg/opkg-native_svn.bb, do_compile)
NOTE: package opkg-native-0.1.4+svnr4640: started
NOTE: package opkg-native-0.1.4+svnr4640-r2: task do_compile: started
ERROR: function do_compile failed
ERROR: log data follows (/home/spaceman/devel/oe/system/angstrom/work/
i686-linux/opkg-native-0.1.4+svnr4640-r2/temp/log.do_compile.3086)
................................

/usr/lib/libldap.so: undefined reference to `BIO_clear_flags'
/usr/lib/libldap.so: undefined reference to `BIO_set_flags'
/usr/lib/libldap.so: undefined reference to

`SSL_CTX_set_info_callback'

collect2: ld returned 1 exit status
make[1]: *** [opkg-cl] Error 1
make[1]: Leaving directory `/home/spaceman/devel/oe/system/angstrom/

work/i686-linux/opkg-native-0.1.4+svnr4640-r2/opkg/src'

Does anyone know which version of libldap.so is required to build
opkg?
I still haven't been able to produce a minimal-image of Angstrom.

I'm still getting this error:

/usr/lib/libldap.so: undefined reference to `BIO_clear_flags'
/usr/lib/libldap.so: undefined reference to `BIO_set_flags'
/usr/lib/libldap.so: undefined reference to

`SSL_CTX_set_info_callback'

Which header are they supposed to be defined?
The version I have on my host is libldap_r-2.4.so.2.1.0, I believe it
comes with openldap,
I did not have libldap.so , I just created a symlink of it to my
version.

Any help will be greatly appreciated.

Thanks.