Hey, since you asked for thoughts and not necessarily correct answers, here
goes.
Looking at your log file, I see that the libraries are linking incorrectly.
I guess there are several problems.
1)
We are building the old gnutls version, 1.4.5.
On snv_101, there is SUNWgnutls, containing both new and old library versions.
The linker may prefer the new conflicting library at
/usr/lib/libgnutls.so.26.1.6 over our /opt/foss/lib/libgnutls.so.13.0.10. One
might try building after removing SUNWgnutls.
2)
The GNU/linux build uses a version-script. We should use a mapfile. Try
adding these:
lib-Makefile.am
libgnutls_la_LDFLAGS += -export-symbols-regex '^(_gnutls|gnutls|_E_).*'
libextra-Makefile.am.diff
libgnutls_extra_la_LDFLAGS += -export-symbols-regex '^gnutls.*'
3)
The linking with and building of the convenience libraries may not be right
Try a single make job, "make -j1", or rework the Makefiles.
.
If using the "scalpel" approach of small changes does not provide an immediate
solution, one might instead take the "meat axe" approach, and redo the
configure.in and Makefile.am's as in the attached patches. As the attached log
file shows, I got a working solution. (One problem is tests/srptool.test.
This is an extra test file, where my work is not done.) All the standard tests
pass a "make check".
Since my modified Solaris/configure.sh uses gnulib-tool, I have also attached
CBEgnulib.spec to build it. It requires minimal versions of other tools. They
need manual attention, because pkgtool lacks this feature of rpm.. Sorry my
answer was not elegant, but this is a severely outdated version, and I would
rather spend time on something new.
--
This message posted from opensolaris.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Solaris-GNUTLS-1.4.5.tar.gz
Type: application/octet-stream
Size: 46726 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/kde-discuss/attachments/20081109/5c189d57/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CBEgnulib.spec
Type: application/octet-stream
Size: 1874 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/kde-discuss/attachments/20081109/5c189d57/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FOSSgnutls.log.gz
Type: application/octet-stream
Size: 82198 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/kde-discuss/attachments/20081109/5c189d57/attachment-0002.obj>