Hi Riccardo, Am 09.05.2014 um 12:06 schrieb Riccardo Mottola <[email protected]>: > On Fri, 2014-05-09 at 09:21, Maciej (Matchek) Bliziński wrote: >> On Fri, May 9, 2014 at 1:07 AM, Riccardo Mottola <[email protected]> >> wrote: >>> >>> I fear that the "-config" is missing or not found. pkg-config? >> >> I looked if our libgnutls_dev package contains >> /opt/csw/bin/libgnutls-config -- it does not. Here's how you can find >> whether any package from a given catalog contains a file with a given >> base name. For example, pkg-config: >> >> baseurl=http://buildfarm.opencsw.org/pkgdb/rest/catalogs/unstable/sparc/SunOS5.10/pkgnames-and-paths-by-basename >> curl -s "${baseurl}?basename=pkg-config" | python -m json.tool >> >> You will see some results. If you run the same query looking for >> "libgnutls-config" you will get back nothing. So it seems to be a >> discrepancy between what the gnutls packages provide, and what your >> sources expect. > > You are correct. libgnutls-config is not there at all, it is just a > configure aid, I suppose coming from pkg-config.
This was removed in GnuTLS 2.8.0: > *** Old libgnutls.m4 and libgnutls-config scripts removed. > Please use pkg-config instead. > In fact, if I configure outside gar, configure works even without > detecting libgnutls-config: > > checking for libgnutls-config... no > checking for libgnutls - version >= 1.4.0... yes > checking for gcry_control in -lgcrypt... yes > > the specific test looks like this: > configure:25140: gcc -o conftest -g -O2 -I/usr/include > -I/opt/csw/include -I/opt/GNUstep/Local/Library/Headers > -I/opt/GNUstep/Local/Library/Headers > -I/opt/GNUstep/System/Library/Headers -I/usr/include/libxml2 > -L/opt/csw/lib -R/opt/csw/lib -L/opt/csw/lib/ffi -R/opt/csw/lib/ffi > -L/opt/GNUstep/Local/Library/Libraries > -L/opt/GNUstep/Local/Library/Libraries > -L/opt/GNUstep/System/Library/Libraries conftest.c -L/usr/lib -lgnutls > -lgcrypt -lxslt -L/usr/lib -R/usr/lib -lxml2 -lz -lpthread -lm -lsocket > -lnsl -liconv -lffi -lnsl -lrt -ldl -lpthread -lz >&5 > > > Inside mgar, i get this error: > > configure:11104: checking for libgnutls-config > configure:11135: result: no > configure:11144: checking for libgnutls - version >= 1.4.0 > configure:11191: /opt/csw/bin/gcc-4.9 -o conftest -O2 -pipe -mcpu=v9 > -Wa,-xarch=v8plus -I/usr/include -I/opt/csw/include > -I/opt/csw/Local/Library/Headers -I/opt/csw/Local/Library/Headers > -I/opt/csw/System/Library/Headers -I/opt/csw/include > -I/usr/include/libxml2 -mcpu=v9 -Wa,-xarch=v8plus -L/opt/csw/lib > -L/opt/csw/Local/Library/Libraries -L/opt/csw/Local/Library/Libraries > -L/opt/csw/System/Library/Libraries conftest.c -L/usr/lib -lgnutls > -lgcrypt -lxslt -L/usr/lib -R/usr/lib -lxml2 -lz -lpthread -lm -lsocket > -lnsl -liconv -L/opt/csw/lib/ffi -lffi -lnsl -lrt -ldl -lpthread -lz >> &5 > ld: fatal: file /usr/lib/libc.so: version 'SUNW_1.22.5' is unavailable: > required by file /opt/csw/lib/libgnutls.so > ld: fatal: file processing errors. No output written to conftest > configure:11191: $? = 1 > > What kind of failure is that? On libc? You need to disable linker maps with LINKER_MAPS = We restrict libc versioning to Solaris 10u8 if possible, but gnutls needs a newer libc. > > One thing that I notice is that mgar only adds the -L flags and not the > -R. The paths are of course slightly different because I configured my > own stuff in /opt/GNUstep and not /opt/csw to keep them separate. -R is passed via LD_OPTIONS through the environment, you need to look in the command invocation or „mgar modenv“. > my configure section looks like this: > configure-sourcegs: > . /opt/csw/System/Library/Makefiles/GNUstep.sh && cd $(WORKSRC); > $(CONFIGURE_ENV) ./configure $(CONFIGURE_ARGS) > @$(MAKECOOKIE) > > which was, admittedly, blatantly coped as far as the variables goes, but > it makes sense to me. Essentially this is similar enough to https://buildfarm.opencsw.org/source/xref/opencsw/csw/mgar/gar/v2/gar.lib.mk#834 that it should work. Just add the linker map removal and try again. Best regards — Dago -- "You don't become great by trying to be great, you become great by wanting to do something, and then doing it so hard that you become great in the process." - xkcd #896
smime.p7s
Description: S/MIME cryptographic signature
