Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 324325

Summary: net-libs/gnutls-2.9.10 fails to build on IRIX
Product: Gentoo/Alt Reporter: Stuart Shelton <srcshelton>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: IRIX   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stuart Shelton 2010-06-16 15:50:58 UTC
gnutls needs a modified version of the gnutls-2.9.9 IRIX patch.

Even with this applied, gnutls fails with:

source='ex-cxx.cpp' object='ex-cxx.o' libtool=no \                                      DEPDIR=.deps depmode=gcc /opt/gentoo/bin/bash ../../build-aux/depcomp \
        CC -DHAVE_CONFIG_H -I. -I../..  -I../../lib/includes -I../../lib/include
s -I../../libextra/includes -I../../gl -I../../gl -D_GL_NO_LARGE_FILES -I/opt/ge
ntoo/usr/include  -J2 -O2 -n32 -mips4 -r14000 -float_const -use_readonly_const -
TARG:isa=mips4:platform=ip30: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,1999,3333 -FE:eliminate_duplicate_inline_co
pies:template_in_elf_section -woff 1174,1183,1185,1552,3968,3970  -c -o ex-cxx.o
 ex-cxx.cpp        
cc-1100 CC: ERROR File = ../../gl/sys/time.h, Line = 362
  The indicated parameter name appears more than once.
                   
  _GL_FUNCDECL_RPL (gettimeofday, int,
  ^                
                   
1 error detected in the compilation of "ex-cxx.cpp".
make[4]: *** [ex-cxx.o] Error 2
make[4]: Leaving directory `/usr/opt/gentoo/var/tmp/portage/net-libs/gnutls-2.9.10/work/gnutls-2.9.10/doc/examples'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/opt/gentoo/var/tmp/portage/net-libs/gnutls-2.9.10/work/gnutls-2.9.10/doc'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/opt/gentoo/var/tmp/portage/net-libs/gnutls-2.9.10/work/gnutls-2.9.10/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/opt/gentoo/var/tmp/portage/net-libs/gnutls-2.9.10/work/gnutls-2.9.10'
make: *** [all] Error 2
 * ERROR: net-libs/gnutls-2.9.10 failed:
 *   emake failed  
 *                 
 * Call stack:     
 *     ebuild.sh, line   54:  Called call-ebuildshell 'src_compile'
 *   environment, line  478:  Called src_compile
 *   environment, line 2929:  Called _eapi2_src_compile
 *     ebuild.sh, line  695:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"

... which looks like a GNU-ism has crept in when trying to replace native functions.

If this is corrected, then the next error is:

Creating documentation for file ../lib/x509_b64.c... Sequence (?<...) not recognized at ./scripts/gdoc line 273, <IN> chunk 306.
gmake[2]: *** [gnutls-api.texi] Error 2
gmake[2]: Leaving directory `/usr/opt/portage/var/tmp/portage/net-libs/gnutls-2.9.10/work/gnutls-2.9.10/doc'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/opt/portage/var/tmp/portage/net-libs/gnutls-2.9.10/work/gnutls-2.9.10/doc'
gmake: *** [all] Error 2

... when building the documentation.

The easy solution seems to be to patch the "doc" and "exmaples" SUBDIRS out of Makefile and doc/Makefile respectively.

... and why is documentation being built with USE="-doc"?
Comment 1 Stuart Shelton 2010-06-16 16:00:23 UTC
Actually, I didn't mean 2.9.9, and the patch is new.  I'll post it shortly once I've sanity-checked it.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-06-16 16:12:01 UTC
GnuTLS 2.9.11 is already available...
If you report the problem to upstream, then maybe it will be fixed before GnuTLS 2.10.
Comment 3 Fabian Groffen gentoo-dev 2011-12-15 19:16:25 UTC
We are sorry to close this bug.  We lack the man-power and devotion to support mips-irix in the tree.