Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256111 - net-libs/gnutls requires 'append-flags -lintl'
Summary: net-libs/gnutls requires 'append-flags -lintl'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-23 18:16 UTC by Stuart Shelton
Modified: 2009-06-30 19:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Two one-line fixes for gnutls-2.6.3 (gnutls.patch,628 bytes, patch)
2009-02-01 11:06 UTC, Stuart Shelton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2009-01-23 18:16:57 UTC
dev-libs/libgcrypt fails with:

Making all in random
make[2]: Entering directory `/usr/opt/portage/var/tmp/portage/dev-libs/libgcrypt-1.4.3-r1/work/libgcrypt-1.4.3/random'
/opt/portage/bin/bash ../libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I../src -I../src  -I/opt/portage/usr/include -I/opt/portage/usr/include -c99 -O2 -n32 -mips4 -r14000 -float_const -use_readonly_const -TARG:isa=mips4:platform=ip35:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -diag_error 1035 -woff 1174,1183,1185,1552,3968,3970 -c -o random.lo random.c
mkdir .libs
 cc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/opt/portage/usr/include -I/opt/portage/usr/include -c99 -O2 -n32 -mips4 -r14000 -float_const -use_readonly_const -TARG:isa=mips4:platform=ip35:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -diag_error 1035 -woff 1174,1183,1185,1552,3968,3970 -c random.c  -DPIC -o .libs/random.o
cc-1117 cc: ERROR File = random.c, Line = 322
  An expression appears after a "return" in a "void" function.

      return _gcry_rngfips_deinit_external_test (context);
             ^

1 error detected in the compilation of "random.c".
make[2]: *** [random.lo] Error 1
make[2]: Leaving directory `/usr/opt/portage/var/tmp/portage/dev-libs/libgcrypt-1.4.3-r1/work/libgcrypt-1.4.3/random'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/opt/portage/var/tmp/portage/dev-libs/libgcrypt-1.4.3-r1/work/libgcrypt-1.4.3'
make: *** [all] Error 2
 * ERROR: dev-libs/libgcrypt-1.4.3-r1 failed:
 *   emake failed
 * 
 * Call stack:
 *               ebuild.sh:  49: <call src_compile>
 *             environment:2663:     emake || die "emake failed"

Removing the "return" keyword from this line allows the build to complete successfully.
Comment 1 Stuart Shelton 2009-01-23 19:03:59 UTC
net-libs/gnutls-2.6.3 has the same issue on line 123 of lib/mpi-libgcrypt.c
Comment 2 Stuart Shelton 2009-01-23 19:19:51 UTC
net-libs/gnutls-2.6.3 has the same issue on:
* line 123 of lib/mpi-libgcrypt.c
* line 96 of lib/mac-libgcrypt.c

With these two corrections, gnutls merges successfully.

(Sorry for the re-post)
Comment 3 Fabian Groffen gentoo-dev 2009-01-30 19:43:06 UTC
hmmm, got a patch file for me?
Comment 4 Stuart Shelton 2009-02-01 11:05:15 UTC
libgcrypt has fixed this (but has other issues - see Bug 256652 (great number :) ), but gnutls is still affected.  Patch coming up...
Comment 5 Stuart Shelton 2009-02-01 11:06:41 UTC
Created attachment 180524 [details, diff]
Two one-line fixes for gnutls-2.6.3 


Fix two instances of a void function attempting to return a value.
Comment 6 Fabian Groffen gentoo-dev 2009-02-01 21:22:30 UTC
Thanks, applied, 2.7.4 is already fixed in this regard.
Comment 7 Stuart Shelton 2009-02-02 16:51:21 UTC
gnutls (at least, 2.6.3) also requires "-lintl" on IRIX (and therefore other platforms such as interix too?).

Adding:

[[ ${CHOST} == *-irix* ]] && append-libs intl

... to the src_configure section of the ebuild (with 'flag-o-matic' also added to the "inherits" statement) fixes this.  Sorry I missed it the first time.
Comment 8 Fabian Groffen gentoo-dev 2009-02-02 17:01:04 UTC
is that with or without USE=nls?
Comment 9 Stuart Shelton 2009-02-03 09:56:17 UTC
Definitely with, but I'm pretty sure it's needed either way.
Comment 10 Stuart Shelton 2009-02-03 13:53:03 UTC
My mistake - it appears only to be necessary with USE="nls".

With this flag in effect, the error is:

ld32: ERROR   33 : Unresolved text symbol "libintl_gettext" -- 1st referenced by ../gl/.libs/libgnu.a(version-etc.o).
        Use linker option -v to see when and which objects, archives and dsos are loaded.  
ld32: INFO    152: Output file removed because of error.
make[3]: *** [gnutls-serv] Error 2
make[3]: Leaving directory `/opt/gentoo/var/tmp/portage/net-libs/gnutls-2.6.3/work/gnutls-2.6.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/gentoo/var/tmp/portage/net-libs/gnutls-2.6.3/work/gnutls-2.6.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/gentoo/var/tmp/portage/net-libs/gnutls-2.6.3/work/gnutls-2.6.3'
make: *** [all] Error 2
Comment 11 Stuart Shelton 2009-05-12 12:03:52 UTC
net-libs/gnutls-2.6.6 no longer requires any patching for IRIX, but it still requires linking against libintl.

This can either be done as above, or a more general:

use nls && append-libs -lintl

... should also work on all platforms, shouldn't it?
Comment 12 Fabian Groffen gentoo-dev 2009-05-12 12:07:13 UTC
not on platforms with that stuff in their libc, like glibc, as on Linux ;)
Comment 13 Fabian Groffen gentoo-dev 2009-06-30 19:32:22 UTC
closing per #275486