guile 1.6.0 problems



I am trying to compile guile 1.6.0 on Solaris 10 x86. I have tried
gcc, gld gas, ld, as, gmake, make, dmake, Sun cc, in all sorts of
combinations but still can't get it to compile.

With gcc, gld, gas and gmake I can successfully run

../configure --prefix=/opt/mbl --with-local-prefix=/opt/mbl

(/opt/mbl is where all my compiled programs are, eg autoconf,
automake, libtool, etc)

I end up getting this error while compiling
--------------------------
gcc -g -O2 -Wall -Wmissing-prototypes -o .libs/guile .libs/guileS.o
guile.o -Wl,--export-dynamic ./.libs/libguile.so /storage/downloads/
solaris/source/guile-1.6.0/libltdl/.libs/libltdl.so -ldl -lcrypt -
lsocket -lnsl -lm -Wl,--rpath -Wl,/opt/mbl/lib
/storage/downloads/solaris/source/guile-1.6.0/libltdl/.libs/
libltdl.so: undefined reference to `dlopen@xxxxxxxx'
/storage/downloads/solaris/source/guile-1.6.0/libltdl/.libs/
libltdl.so: undefined reference to `dlclose@xxxxxxxx'
../.libs/libguile.so: undefined reference to
`gethostname@xxxxxxxxxxxxxxx'
../.libs/libguile.so: undefined reference to `crypt@xxxxxxxx'
/storage/downloads/solaris/source/guile-1.6.0/libltdl/.libs/
libltdl.so: undefined reference to `dlsym@xxxxxxxx'
/storage/downloads/solaris/source/guile-1.6.0/libltdl/.libs/
libltdl.so: undefined reference to `dlerror@xxxxxxxx'
collect2: ld returned 1 exit status
gmake[2]: *** [guile] Error 1
gmake[2]: Leaving directory `/storage/downloads/solaris/source/
guile-1.6.0/libguile'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/storage/downloads/solaris/source/
guile-1.6.0'
gmake: *** [all] Error 2
----------------------

I am trying to get GnuCash installed. I have also tried 1.8.1 of
guile but get an error during compile with that version as well.

Can anyone help me with this one. It's very frustrating and I am sure
I am doing something wrong.

.