NetBSD Problem Report #42335

From www@NetBSD.org  Tue Nov 17 13:10:48 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id A36B963C414
	for <gnats-bugs@gnats.netbsd.org>; Tue, 17 Nov 2009 13:10:48 +0000 (UTC)
Message-Id: <20091117131048.6E9E763C411@www.NetBSD.org>
Date: Tue, 17 Nov 2009 13:10:48 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: textproc/libxml2 does not compile on Solaris
X-Send-Pr-Version: www-1.0

>Number:         42335
>Category:       pkg
>Synopsis:       textproc/libxml2 does not compile on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 17 13:15:00 +0000 2009
>Closed-Date:    Mon Nov 23 08:43:31 +0000 2009
>Last-Modified:  Mon Nov 23 08:43:31 +0000 2009
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
SunOS spare4200 5.10 Generic_139556-08 i86pc i386 i86pc

>Description:
See

http://mail.gnome.org/archives/xml/2009-November/msg00000.html

for problem description and follow-up for suggested fix.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Tue, 17 Nov 2009 13:19:58 +0000
Responsible-Changed-Why:
Solaris pkgsrc problem.


From: Uwe Klaus <uklaus@hgb-leipzig.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/42335: textproc/libxml2 does not compile on Solaris
Date: Tue, 17 Nov 2009 16:08:36 +0100 (CET)

 On Tue, 17 Nov 2009, joern.clausen@uni-bielefeld.de wrote:

 >> Fix:
 The following modified patch/patch-ab worked for solaris10 sparc. But I'm 
 not sure if I do understand the semantics of VERSION_SCRIPT_FLAGS.

 Regards,
 Uwe

 --- configure.orig      2009-10-06 18:31:12.000000000 +0200
 +++ configure
 @@ -12149,10 +12149,10 @@ CC="$lt_save_CC"
   VERSION_SCRIPT_FLAGS=
   $(/usr/bin/ld --help 2>&1 | grep -- --version-script >/dev/null) && \
       VERSION_SCRIPT_FLAGS=-Wl,--version-script=
 -test "`uname`" == "SunOS" && \
 +test "`uname`" = "SunOS" && \
       VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"

 - if test -n "$VERSION_SCRIPT_FLAGS"; then
 + if test -z "$VERSION_SCRIPT_FLAGS"; then
     USE_VERSION_SCRIPT_TRUE=
     USE_VERSION_SCRIPT_FALSE='#'
   else
 @@ -19725,7 +19725,7 @@ fi
   fi


 -XML_LIBDIR='-L${libdir}'
 +XML_LIBDIR='-Wl,-R${libdir} -L${libdir}'
   XML_INCLUDEDIR='-I${includedir}/libxml2'

   XML_CFLAGS=""

From: Jens Rehsack <rehsack@googlemail.com>
To: gnats-bugs@netbsd.org
Cc: solaris-pkg-people@netbsd.org, gnats-admin@netbsd.org, 
	pkgsrc-bugs@netbsd.org, joern.clausen@uni-bielefeld.de
Subject: Re: pkg/42335: textproc/libxml2 does not compile on Solaris
Date: Wed, 18 Nov 2009 08:34:24 +0100

 2009/11/17 Uwe Klaus <uklaus@hgb-leipzig.de>:
 > The following reply was made to PR pkg/42335; it has been noted by GNATS.
 >
 > From: Uwe Klaus <uklaus@hgb-leipzig.de>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: pkg/42335: textproc/libxml2 does not compile on Solaris
 > Date: Tue, 17 Nov 2009 16:08:36 +0100 (CET)
 >
 >  On Tue, 17 Nov 2009, joern.clausen@uni-bielefeld.de wrote:
 >
 >  >> Fix:
 >  The following modified patch/patch-ab worked for solaris10 sparc. But I'm
 >  not sure if I do understand the semantics of VERSION_SCRIPT_FLAGS.
 >
 >  Regards,
 >  Uwe
 >
 >  --- configure.orig      2009-10-06 18:31:12.000000000 +0200
 >  +++ configure
 >  @@ -12149,10 +12149,10 @@ CC="$lt_save_CC"
 >   VERSION_SCRIPT_FLAGS=
 >   $(/usr/bin/ld --help 2>&1 | grep -- --version-script >/dev/null) && \
 >       VERSION_SCRIPT_FLAGS=-Wl,--version-script=
 >  -test "`uname`" == "SunOS" && \
 >  +test "`uname`" = "SunOS" && \
 >       VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"
 >
 >  - if test -n "$VERSION_SCRIPT_FLAGS"; then
 >  + if test -z "$VERSION_SCRIPT_FLAGS"; then
 >     USE_VERSION_SCRIPT_TRUE=
 >     USE_VERSION_SCRIPT_FALSE='#'
 >   else
 >  @@ -19725,7 +19725,7 @@ fi
 >   fi
 >
 >
 >  -XML_LIBDIR='-L${libdir}'
 >  +XML_LIBDIR='-Wl,-R${libdir} -L${libdir}'
 >   XML_INCLUDEDIR='-I${includedir}/libxml2'
 >
 >   XML_CFLAGS=""
 >
 >

 Emptying the VERSION_SCRIPT_FLAGS (see mail between Todd Kover
 and myself on pkgsrc-users@ regarding the same issue) is enough. I have a
 working patch meanwhile and will commit it at weekend.

From: Jens Rehsack <sno@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/42335 CVS commit: pkgsrc/textproc/libxml2
Date: Sun, 22 Nov 2009 14:05:26 +0000

 Module Name:	pkgsrc
 Committed By:	sno
 Date:		Sun Nov 22 14:05:26 UTC 2009

 Modified Files:
 	pkgsrc/textproc/libxml2: distinfo
 	pkgsrc/textproc/libxml2/patches: patch-ab
 Added Files:
 	pkgsrc/textproc/libxml2/patches: patch-ai

 Log Message:
 Patches out invalid linker flags for solaris. Tested with OpenSolaris/amd64
 and Solaris 10/sparc - both with Sun Studio C/C++ 12u1.
 Fixes PR pkg/42335 (thanks to Todd Kover for the hint).


 To generate a diff of this commit:
 cvs rdiff -u -r1.75 -r1.76 pkgsrc/textproc/libxml2/distinfo
 cvs rdiff -u -r1.16 -r1.17 pkgsrc/textproc/libxml2/patches/patch-ab
 cvs rdiff -u -r0 -r1.3 pkgsrc/textproc/libxml2/patches/patch-ai

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

State-Changed-From-To: open->feedback
State-Changed-By: sno@NetBSD.org
State-Changed-When: Sun, 22 Nov 2009 16:55:09 +0000
State-Changed-Why:
Patch applied, does it solves the problem?


From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: solaris-pkg-people@NetBSD.org, pkgsrc-bugs@NetBSD.org,
 gnats-admin@NetBSD.org, sno@NetBSD.org
Subject: Re: pkg/42335 (textproc/libxml2 does not compile on Solaris)
Date: Mon, 23 Nov 2009 09:29:07 +0100

 Yes, libxml2 does compile again on Solaris.

 Thanks a lot,
     Joern

 -- 
   Jörn Clausen                             joern.clausen@uni-bielefeld.de
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld

State-Changed-From-To: feedback->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Mon, 23 Nov 2009 08:43:31 +0000
State-Changed-Why:
Confirmed fixed.  Thanks!


>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.