NetBSD Problem Report #54137

From www@netbsd.org  Tue Apr 23 21:43:20 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id F26A37A17A
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 23 Apr 2019 21:43:19 +0000 (UTC)
Message-Id: <20190423214319.156557A1B4@mollari.NetBSD.org>
Date: Tue, 23 Apr 2019 21:43:19 +0000 (UTC)
From: js-pkgsrc@heap.zone
Reply-To: js-pkgsrc@heap.zone
To: gnats-bugs@NetBSD.org
Subject: www/netsurf fails to build on Darwin
X-Send-Pr-Version: www-1.0

>Number:         54137
>Category:       pkg
>Synopsis:       www/netsurf fails to build on Darwin
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    macos-pkg-people
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 23 21:45:00 +0000 2019
>Closed-Date:    
>Last-Modified:  Wed Apr 24 12:05:00 +0000 2019
>Originator:     Jonathan Schleifer
>Release:        HEAD
>Organization:
>Environment:
>Description:
When trying to build www/netsurf, all files get compiled successfully, but linking fails with:

Undefined symbols for architecture x86_64:
  "_iconv", referenced from:
      _utf8_convert in utils_utf8.o
      _utf8_convert_html_chunk in utils_utf8.o
      _parserutils__filter_process_chunk in libparserutils.a(src_input_filter.o)
      _parserutils__filter_reset in libparserutils.a(src_input_filter.o)
  "_iconv_close", referenced from:
      _utf8_finalise in utils_utf8.o
      _utf8_convert in utils_utf8.o
      _utf8_to_html in utils_utf8.o
      _parserutils__filter_destroy in libparserutils.a(src_input_filter.o)
      _filter_set_encoding in libparserutils.a(src_input_filter.o)
  "_iconv_open", referenced from:
      _utf8_convert in utils_utf8.o
      _utf8_to_html in utils_utf8.o
      _filter_set_encoding in libparserutils.a(src_input_filter.o)
  "_timerisset", referenced from:
      _netsurf_render_log in utils_log.o
ld: symbol(s) not found for architecture x86_64
>How-To-Repeat:
cd www/netsurf && bmake
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->leot
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Tue, 23 Apr 2019 22:21:51 +0000
Responsible-Changed-Why:
Take


State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Tue, 23 Apr 2019 22:26:54 +0000
State-Changed-Why:
Can you please try to also add:

 .include "../../converters/libiconv/buildlink3.mk"

near other bl3 inclusion?

(Or, just apply the following patch:

 <https://www.NetBSD.org/~leot/pkgsrc-patches/netsurf-iconv.patch>

Thank you!)


From: "Leonardo Taccari" <leot@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54137 CVS commit: pkgsrc/www/netsurf
Date: Tue, 23 Apr 2019 23:30:49 +0000

 Module Name:	pkgsrc
 Committed By:	leot
 Date:		Tue Apr 23 23:30:49 UTC 2019

 Modified Files:
 	pkgsrc/www/netsurf: Makefile

 Log Message:
 netsurf: Add dependency to libiconv

 Pointed out via PR pkg/54137 by Jonathan Schleifer (used by
 libparserutils and netsurf).

 Bump PKGREVISION


 To generate a diff of this commit:
 cvs rdiff -u -r1.73 -r1.74 pkgsrc/www/netsurf/Makefile

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

From: Jonathan Schleifer <js@heap.zone>
To: gnats-bugs@netbsd.org
Cc: leot@netbsd.org,
 pkgsrc-bugs@netbsd.org,
 gnats-admin@netbsd.org
Subject: Re: pkg/54137 (www/netsurf fails to build on Darwin)
Date: Wed, 24 Apr 2019 01:38:45 +0200

 Makes no difference at all :/

 > Am 24.04.2019 um 00:26 schrieb leot@netbsd.org <leot@NetBSD.org>:
 > 
 > Synopsis: www/netsurf fails to build on Darwin
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: leot@NetBSD.org
 > State-Changed-When: Tue, 23 Apr 2019 22:26:54 +0000
 > State-Changed-Why:
 > Can you please try to also add:
 > 
 > .include "../../converters/libiconv/buildlink3.mk"
 > 
 > near other bl3 inclusion?
 > 
 > (Or, just apply the following patch:
 > 
 > <https://www.NetBSD.org/~leot/pkgsrc-patches/netsurf-iconv.patch>
 > 
 > Thank you!)
 > 
 > 
 > 

State-Changed-From-To: feedback->open
State-Changed-By: leot@NetBSD.org
State-Changed-When: Wed, 24 Apr 2019 07:56:02 +0000
State-Changed-Why:
Feedback provided.


From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54137 (www/netsurf fails to build on Darwin)
Date: Wed, 24 Apr 2019 09:57:52 +0200

 Hello Jonathan, 

 Jonathan Schleifer writes:
 > Makes no difference at all :/

 Just to double-check, have you just `cvs up' www/netsurf and not
 applied any patch? (I have seen that libiconv was needed and added
 the bl3 *before* waiting for feedback)

 Thank you!

From: Jonathan Schleifer <js@heap.zone>
To: gnats-bugs@netbsd.org
Cc: leot@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
 js-pkgsrc@heap.zone
Subject: Re: pkg/54137 (www/netsurf fails to build on Darwin)
Date: Wed, 24 Apr 2019 11:18:51 +0200

 I just applied the patch without updating and did bmake clean && bmake.

 > Am 24.04.2019 um 10:00 schrieb Leonardo Taccari <leot@netbsd.org>:
 > 
 > The following reply was made to PR pkg/54137; it has been noted by GNATS.
 > 
 > From: Leonardo Taccari <leot@NetBSD.org>
 > To: gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: pkg/54137 (www/netsurf fails to build on Darwin)
 > Date: Wed, 24 Apr 2019 09:57:52 +0200
 > 
 > Hello Jonathan, 
 > 
 > Jonathan Schleifer writes:
 >> Makes no difference at all :/
 > 
 > Just to double-check, have you just `cvs up' www/netsurf and not
 > applied any patch? (I have seen that libiconv was needed and added
 > the bl3 *before* waiting for feedback)
 > 
 > Thank you!
 > 

Responsible-Changed-From-To: leot->macos-pkg-people
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Wed, 24 Apr 2019 09:32:16 +0000
Responsible-Changed-Why:
Over to macOS people.


State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Wed, 24 Apr 2019 11:49:44 +0000
State-Changed-Why:
More feedback needed.


From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54137 (www/netsurf fails to build on Darwin)
Date: Wed, 24 Apr 2019 13:47:51 +0200

 Hello Jonathan, 

 Jonathan Schleifer writes:
 > I just applied the patch without updating and did bmake clean && bmake.

 Possible further steps to help investigate this issue further:

  - Can you please check in ${WRKDIR}/.work.log for LIBICONV_PLUG (it is
    probably passed via `-DLIBICONV_PLUG' or `-ULIBICONV_PLUG')?
  - Can you please share the last problematic cc invocation? (both the
    `[*]' line and `<.>' line, if you prefer feel free to share the
    entire .work.log somewhere as a text file)

 (It's probably worth to investigate if `-liconv' is passed in some part
 of the build but not at the end, if that's the case probably adding an
 `LDFLAGS.Darwin+= -liconv' would do the trick, but it would be nice to
 first investigate if that's the issue. (I'm also not sure why _iconv*
 are not find not, iconv* (why is there an underscore in them?)))


 Thank you!

From: Benny Siegert <bsiegert@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54137 (www/netsurf fails to build on Darwin)
Date: Wed, 24 Apr 2019 14:03:29 +0200

 --00000000000003030b0587457e18
 Content-Type: text/plain; charset="UTF-8"

 The leading underscore is inserted by the Darwn linker, dyld. So it is
 really looking for the iconv symbol.

 Leonardo Taccari <leot@netbsd.org> schrieb am Mi. 24. Apr. 2019 um 13:50:

 > The following reply was made to PR pkg/54137; it has been noted by GNATS.
 >
 > From: Leonardo Taccari <leot@NetBSD.org>
 > To: gnats-bugs@netbsd.org
 > Cc:
 > Subject: Re: pkg/54137 (www/netsurf fails to build on Darwin)
 > Date: Wed, 24 Apr 2019 13:47:51 +0200
 >
 >  Hello Jonathan,
 >
 >  Jonathan Schleifer writes:
 >  > I just applied the patch without updating and did bmake clean && bmake.
 >
 >  Possible further steps to help investigate this issue further:
 >
 >   - Can you please check in ${WRKDIR}/.work.log for LIBICONV_PLUG (it is
 >     probably passed via `-DLIBICONV_PLUG' or `-ULIBICONV_PLUG')?
 >   - Can you please share the last problematic cc invocation? (both the
 >     `[*]' line and `<.>' line, if you prefer feel free to share the
 >     entire .work.log somewhere as a text file)
 >
 >  (It's probably worth to investigate if `-liconv' is passed in some part
 >  of the build but not at the end, if that's the case probably adding an
 >  `LDFLAGS.Darwin+= -liconv' would do the trick, but it would be nice to
 >  first investigate if that's the issue. (I'm also not sure why _iconv*
 >  are not find not, iconv* (why is there an underscore in them?)))
 >
 >
 >  Thank you!
 >
 > --
 Benny

 --00000000000003030b0587457e18
 Content-Type: text/html; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable

 <div><div dir=3D"auto">The leading underscore is inserted by the Darwn link=
 er, dyld. So it is really looking for the iconv symbol.</div></div><div><br=
 ><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Leonardo =
 Taccari &lt;<a href=3D"mailto:leot@netbsd.org">leot@netbsd.org</a>&gt; schr=
 ieb am Mi. 24. Apr. 2019 um 13:50:<br></div><blockquote class=3D"gmail_quot=
 e" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">=
 The following reply was made to PR pkg/54137; it has been noted by GNATS.<b=
 r>
 <br>
 From: Leonardo Taccari &lt;leot@NetBSD.org&gt;<br>
 To: <a href=3D"mailto:gnats-bugs@netbsd.org" target=3D"_blank">gnats-bugs@n=
 etbsd.org</a><br>
 Cc: <br>
 Subject: Re: pkg/54137 (www/netsurf fails to build on Darwin)<br>
 Date: Wed, 24 Apr 2019 13:47:51 +0200<br>
 <br>
 =C2=A0Hello Jonathan, <br>
 <br>
 =C2=A0Jonathan Schleifer writes:<br>
 =C2=A0&gt; I just applied the patch without updating and did bmake clean &a=
 mp;&amp; bmake.<br>
 <br>
 =C2=A0Possible further steps to help investigate this issue further:<br>
 <br>
 =C2=A0 - Can you please check in ${WRKDIR}/.work.log for LIBICONV_PLUG (it =
 is<br>
 =C2=A0 =C2=A0 probably passed via `-DLIBICONV_PLUG&#39; or `-ULIBICONV_PLUG=
 &#39;)?<br>
 =C2=A0 - Can you please share the last problematic cc invocation? (both the=
 <br>
 =C2=A0 =C2=A0 `[*]&#39; line and `&lt;.&gt;&#39; line, if you prefer feel f=
 ree to share the<br>
 =C2=A0 =C2=A0 entire .work.log somewhere as a text file)<br>
 <br>
 =C2=A0(It&#39;s probably worth to investigate if `-liconv&#39; is passed in=
  some part<br>
 =C2=A0of the build but not at the end, if that&#39;s the case probably addi=
 ng an<br>
 =C2=A0`LDFLAGS.Darwin+=3D -liconv&#39; would do the trick, but it would be =
 nice to<br>
 =C2=A0first investigate if that&#39;s the issue. (I&#39;m also not sure why=
  _iconv*<br>
 =C2=A0are not find not, iconv* (why is there an underscore in them?)))<br>
 <br>
 <br>
 =C2=A0Thank you!<br>
 <br>
 </blockquote></div></div>-- <br><div dir=3D"ltr" class=3D"gmail_signature" =
 data-smartmail=3D"gmail_signature">Benny</div>

 --00000000000003030b0587457e18--

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.