gnutls dependency
Dagobert Michelsen
dam at opencsw.org
Fri May 9 12:39:08 CEST 2014
Hi Riccardo,
Am 09.05.2014 um 12:06 schrieb Riccardo Mottola <rmottola at opencsw.org>:
> On Fri, 2014-05-09 at 09:21, Maciej (Matchek) Bliziński wrote:
>> On Fri, May 9, 2014 at 1:07 AM, Riccardo Mottola <rmottola at opencsw.org> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2418 bytes
Desc: not available
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20140509/d1c685b7/attachment-0001.p7s>
More information about the maintainers
mailing list