NetBSD Problem Report #38224

From martin@duskware.de  Tue Mar 11 17:33:48 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id EF73863B968
	for <gnats-bugs@gnats.netbsd.org>; Tue, 11 Mar 2008 17:33:47 +0000 (UTC)
Message-Id: <20080311172843.2B47663B8E3@narn.NetBSD.org>
Date: Tue, 11 Mar 2008 17:28:43 +0000 (UTC)
From: srcshelton@gmail.com
Reply-To: srcshelton@gmail.com
To: netbsd-bugs-owner@NetBSD.org
Subject: textproc/libxslt-1.1.22 IRIX fix breaks on IRIX!
X-Send-Pr-Version: www-1.0

>Number:         38224
>Category:       pkg
>Synopsis:       textproc/libxslt-1.1.22 IRIX fix breaks on IRIX!
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    irix-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 11 17:35:00 +0000 2008
>Closed-Date:    Sun Jul 04 19:06:58 +0000 2010
>Last-Modified:  Sun Jul 04 19:06:58 +0000 2010
>Originator:     Stuart Shelton
>Release:        pkgsrc latest from CVS
>Organization:
>Environment:
IRIX64 octane 6.5 07202013 IP30; IRIX 6.5.30; MIPSpro Compilers: Version 7.4.4m
>Description:

The Makefile for textproc/libxslt contains:

.if ${OPSYS} == "IRIX"
CPPFLAGS+=     -Dsocklen_t=int
.endif

... however, this clashes with <sys/socket.h>, resulting in:

source='crypto.c' object='crypto.lo' libtool=yes \
        DEPDIR=.deps depmode=sgi /usr/bsd/bin/bash ../depcomp \
        /usr/bsd/bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libxslt -I../libexslt -I.. -I../libxslt -I../libexslt -I/usr/bsd/include/libxml2 -I/usr/bsd/include -c99 -O2 -n32 -mips4 -r14000 -apo -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 -woff 1174,1183,1185,1552,3970,3968 -n32 -I/usr/bsd/include -I/usr/include  -I/usr/bsd/include -D__inline__=inline -Dsocklen_t=int -I/usr/include -I/usr/bsd/include -c99 -O2 -n32 -mips4 -r14000 -apo -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 -woff 1174,1183,1185,1552,3970,3968 -n32 -I/usr/bsd/include -I/usr/include -c -o crypto.lo crypto.c
 cc -DHAVE_CONFIG_H -I. -I.. -I../libxslt -I../libexslt -I/usr/bsd/var/tmp/textproc/libxslt/work/.buildlink/include/libxml2 -I/usr/bsd/var/tmp/textproc/libxslt/work/.buildlink/include -c99 -O2 -n32 -mips4 -r14000 -apo -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 -woff 1174,1183,1185,1552,3970,3968 -n32 -D__inline__=inline -Dsocklen_t=int -c99 -O2 -n32 -mips4 -r14000 -apo -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 -woff 1174,1183,1185,1552,3970,3968 -n32 -c crypto.c -Wp,-MDupdate,.deps/crypto.TPlo  -DPIC -o .libs/crypto.o
cc-1084 cc: ERROR File = /usr/include/sys/socket.h, Line = 66
  The indicated declaration has an invalid combination of type specifiers.

  typedef int socklen_t;
              ^

1 error detected in the compilation of "crypto.c".
gmake[2]: *** [crypto.lo] Error 1
gmake[2]: Leaving directory `/usr/bsd/var/tmp/textproc/libxslt/work/libxslt-1.1.22/libexslt'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/bsd/var/tmp/textproc/libxslt/work/libxslt-1.1.22'
gmake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/bsd/src/textproc/libxslt
*** Error code 1

Stop.
bmake: stopped in /usr/bsd/src/textproc/libxslt

>How-To-Repeat:

>Fix:

With those lines in the Makefile commented-out, libxslt builds successfully.

Perhaps this fix was only needed on earlier (5.x?) IRIX releases, which may have lacked socket headers?

>Release-Note:

>Audit-Trail:
From: Tobias Nygren <tnn@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/38224 CVS commit: pkgsrc/textproc/libxslt
Date: Tue, 11 Mar 2008 17:56:16 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tnn
 Date:		Tue Mar 11 17:56:16 UTC 2008

 Modified Files:
 	pkgsrc/textproc/libxslt: Makefile

 Log Message:
 PR pkg/38224: Another case of me doing a bad LOWER_OPSYS to
 MACHINE_PLATFORM conversion.
 Will revist all of these to make sure they were correct.


 To generate a diff of this commit:
 cvs rdiff -r1.78 -r1.79 pkgsrc/textproc/libxslt/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Tobias Nygren <tnn@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/38224 CVS commit: pkgsrc
Date: Tue, 11 Mar 2008 18:47:41 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tnn
 Date:		Tue Mar 11 18:47:41 UTC 2008

 Modified Files:
 	pkgsrc/databases/db3: Makefile
 	pkgsrc/databases/mysql4-client: Makefile.common
 	pkgsrc/devel/gmp: Makefile
 	pkgsrc/graphics/xpm: Makefile
 	pkgsrc/graphics/xv: Makefile
 	pkgsrc/mail/deliver: Makefile
 	pkgsrc/mail/libesmtp: Makefile
 	pkgsrc/mail/nmh: Makefile
 	pkgsrc/net/host: Makefile
 	pkgsrc/net/xtraceroute: Makefile
 	pkgsrc/security/skey: hacks.mk
 	pkgsrc/shells/bash: Makefile
 	pkgsrc/textproc/aspell: Makefile
 	pkgsrc/www/libwww: Makefile

 Log Message:
 Put back a couple of IRIX conditionals the way they used to behave,
 e.g. match IRIX 5.x but not 6.x. Some of these may indeed apply to 6.x
 too, but let's be conservative. PR pkg/38224.


 To generate a diff of this commit:
 cvs rdiff -r1.36 -r1.37 pkgsrc/databases/db3/Makefile
 cvs rdiff -r1.61 -r1.62 pkgsrc/databases/mysql4-client/Makefile.common
 cvs rdiff -r1.49 -r1.50 pkgsrc/devel/gmp/Makefile
 cvs rdiff -r1.59 -r1.60 pkgsrc/graphics/xpm/Makefile
 cvs rdiff -r1.72 -r1.73 pkgsrc/graphics/xv/Makefile
 cvs rdiff -r1.12 -r1.13 pkgsrc/mail/deliver/Makefile
 cvs rdiff -r1.26 -r1.27 pkgsrc/mail/libesmtp/Makefile
 cvs rdiff -r1.66 -r1.67 pkgsrc/mail/nmh/Makefile
 cvs rdiff -r1.18 -r1.19 pkgsrc/net/host/Makefile
 cvs rdiff -r1.49 -r1.50 pkgsrc/net/xtraceroute/Makefile
 cvs rdiff -r1.2 -r1.3 pkgsrc/security/skey/hacks.mk
 cvs rdiff -r1.37 -r1.38 pkgsrc/shells/bash/Makefile
 cvs rdiff -r1.53 -r1.54 pkgsrc/textproc/aspell/Makefile
 cvs rdiff -r1.76 -r1.77 pkgsrc/www/libwww/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: pkg-manager->irix-pkg-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Sat, 05 Apr 2008 16:03:31 +0000
Responsible-Changed-Why:
Problem on IRIX.


State-Changed-From-To: open->closed
State-Changed-By: schwarz@NetBSD.org
State-Changed-When: Sun, 04 Jul 2010 19:06:58 +0000
State-Changed-Why:
The issue was fixed long ago with the release 1.79 of Makefile (11/03/2008)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.