NetBSD Problem Report #49825

From tsutsui@ceres.dti.ne.jp  Wed Apr  8 14:59:17 2015
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id CA77FA6558
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  8 Apr 2015 14:59:17 +0000 (UTC)
Message-Id: <201504081459.t38ExCNo015774@mirage.localdomain>
Date: Wed, 8 Apr 2015 23:59:12 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@gnats.NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: pkgsrc-2015Q1 www/webkit-gtk build fails on NetBSD 6.1.5
X-Send-Pr-Version: 3.95

>Number:         49825
>Category:       pkg
>Synopsis:       pkgsrc-2015Q1 www/webkit-gtk build fails on NetBSD 6.1.5
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 08 15:00:00 +0000 2015
>Closed-Date:    Sat Jul 11 16:16:49 +0000 2015
>Last-Modified:  Sat Jul 11 16:16:49 +0000 2015
>Originator:     Izumi Tsutsui
>Release:        NetBSD 6.1.5 + pkgsrc-2015Q1
>Organization:
>Environment:
System: NetBSD/i386 6.1.5 (GENERIC)
Architecture: i386
Machine: i386
>Description:
pkgsrc-2015Q1 pkgsrc/www/webkit-gtk configure fails on NetBSD/i386 6.1.5:

---
 :

===> Configuring for webkit-gtk-2.4.8
=> Generating pkg-config file for builtin expat package.
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Replacing python interpreter in Tools/gtk/*.py Tools/gtk/generate-feature-defines-files Tools/gtk/generate-gtkdoc.
=> Replacing Perl interpreter in Source/JavaScriptCore/create_hash_table Source/WebCore/bindings/scripts/*.pl Source/WebCore/bindings/scripts/InFilesCompiler.pm Source/WebCore/bindings/scripts/InFilesParser.pm Source/WebCore/css/*.pl Source/WebCore/dom/*.pl Source/WebCore/make-hash-tools.pl Source/WebCore/platform/text/mac/*.pl.
=> Adding run-time search paths to pkg-config files.
=> Checking for portability problems in extracted files
checking build system type... i486--netbsdelf
checking host system type... i486--netbsdelf
checking for perl... /usr/pkg/bin/perl
checking for python... /usr/pkg/bin/python2.7
checking for ruby... /usr/pkg/bin/ruby200

 :

checking for GSTREAMER... yes
checking for dlopen... yes
checking for CAIRO_GL... no
configure: JIT compilation is disabled, also disabling FTL JIT support.
checking for gtk-doc... no
configure: WARNING:
  You will not be able to create source packages with 'make dist'
  because gtk-doc >= 1.10 is not found.
checking for gtkdoc-check... no
checking for gtkdoc-check... no
checking for gtkdoc-rebase... no
checking for gtkdoc-mkpdf... no
checking whether to build gtk-doc documentation... no
checking for GTKDOC_DEPS... yes
checking pthread.h usability... no
checking pthread.h presence... yes
configure: WARNING: pthread.h: present but cannot be compiled
configure: WARNING: pthread.h:     check for missing prerequisite headers?
configure: WARNING: pthread.h: see the Autoconf documentation
configure: WARNING: pthread.h:     section "Present But Cannot Be Compiled"
configure: WARNING: pthread.h: proceeding with the compiler's result
configure: WARNING:     ## -------------------------------------- ##
configure: WARNING:     ## Report this to http://bugs.webkit.org/ ##
configure: WARNING:     ## -------------------------------------- ##
checking for pthread.h... no
configure: error: pthread support is required to build WebKit
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/webkit-gtk
*** Error code 1

Stop.

---

>How-To-Repeat:
cd pkgsrc/www/webkit-gtk && make package

>Fix:
No idea.

>Release-Note:

>Audit-Trail:
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49825: pkgsrc-2015Q1 www/webkit-gtk build fails on NetBSD
 6.1.5
Date: Wed, 8 Apr 2015 17:54:42 +0200

 On Wed, Apr 08, 2015 at 03:00:01PM +0000, Izumi Tsutsui wrote:
 > checking pthread.h usability... no
 > checking pthread.h presence... yes
 > configure: WARNING: pthread.h: present but cannot be compiled
 > configure: WARNING: pthread.h:     check for missing prerequisite headers?
 > configure: WARNING: pthread.h: see the Autoconf documentation
 > configure: WARNING: pthread.h:     section "Present But Cannot Be Compiled"
 > configure: WARNING: pthread.h: proceeding with the compiler's result
 > configure: WARNING:     ## -------------------------------------- ##
 > configure: WARNING:     ## Report this to http://bugs.webkit.org/ ##
 > configure: WARNING:     ## -------------------------------------- ##
 > checking for pthread.h... no
 > configure: error: pthread support is required to build WebKit
 > *** Error code 1

 Well, what does config.log say why it fails?

 Joerg

From: Leonardo Taccari <iamleot@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49825: pkgsrc-2015Q1 www/webkit-gtk build fails on NetBSD 6.1.5
Date: Wed, 08 Apr 2015 18:13:26 +0200

 Hello Joerg, Izumi and the entire pkgsrc community,

 Joerg Sonnenberger writes:
 >  Well, what does config.log say why it fails?
 Probably that's due the -D_FORTIFY_SOURCE use as we discussed in
 pkgsrc-changes@.
 Izumi, can you try the attached patches here please:

  http://mail-index.netbsd.org/pkgsrc-changes/2015/04/01/msg121771.html

 If you are interested in the full story of the problem please give a
 look here:

  http://mail-index.netbsd.org/pkgsrc-changes/2015/04/01/msg121737.html


 Please let us know if it will fix the problem!
 HTH!
 Ciao,
 L.

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: joerg@britannica.bec.de, tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/49825: pkgsrc-2015Q1 www/webkit-gtk build fails on NetBSD6.1.5
Date: Fri, 10 Apr 2015 00:09:17 +0900

 >  Well, what does config.log say why it fails?

 ---
  :

 configure:21896: checking pthread.h usability
 configure:21896: gcc -c -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -pthread -std=c99 -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include -I/usr/X11R7/include/libdrm conftest.c >&5
 In file included from /usr/pkg/gcc48/lib/gcc/i486--netbsdelf/4.8.4/include-fixed/stdio.h:536:0,
                  from conftest.c:30:
 /usr/pkg/gcc48/lib/gcc/i486--netbsdelf/4.8.4/include/ssp/stdio.h:38:17: fatal error: ssp.h: No such file or directory
  #include <ssp.h>
                  ^
 compilation terminated.
 configure:21896: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "WebKitGTK"
 | #define PACKAGE_TARNAME "webkitgtk"
 | #define PACKAGE_VERSION "2.4.8"
 | #define PACKAGE_STRING "WebKitGTK 2.4.8"
 | #define PACKAGE_BUGREPORT "http://bugs.webkit.org/"
 | #define PACKAGE_URL ""
 | #define USER_AGENT_GTK_MAJOR_VERSION 538
 | #define USER_AGENT_GTK_MINOR_VERSION 15
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE__BOOL 1
 | #define HAVE_STDBOOL_H 1
 | #define HAVE_DLFCN_H 1
 | #define LT_OBJDIR ".libs/"
 | #define HAVE_WEBP_DECODE_H 1
 | #define HAVE_GL_GLX_H 1
 | #define HAVE_GL_GL_H 1
 | #define GETTEXT_PACKAGE "WebKitGTK-2.0"
 | #define NDEBUG 1
 | /* end confdefs.h.  */
 | #include <stdio.h>
 | #ifdef HAVE_SYS_TYPES_H
 | # include <sys/types.h>
 | #endif
 | #ifdef HAVE_SYS_STAT_H
 | # include <sys/stat.h>
 | #endif
 | #ifdef STDC_HEADERS
 | # include <stdlib.h>
 | # include <stddef.h>
 | #else
 | # ifdef HAVE_STDLIB_H
 | #  include <stdlib.h>
 | # endif
 | #endif
 | #ifdef HAVE_STRING_H
 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 | #  include <memory.h>
 | # endif
 | # include <string.h>
 | #endif
 | #ifdef HAVE_STRINGS_H
 | # include <strings.h>
 | #endif
 | #ifdef HAVE_INTTYPES_H
 | # include <inttypes.h>
 | #endif
 | #ifdef HAVE_STDINT_H
 | # include <stdint.h>
 | #endif
 | #ifdef HAVE_UNISTD_H
 | # include <unistd.h>
 | #endif
 | #include <pthread.h>
 configure:21896: result: no
 configure:21896: checking pthread.h presence
 configure:21896: gcc -E -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include -I/usr/X11R7/include/libdrm conftest.c
 configure:21896: $? = 0
 configure:21896: result: yes
 configure:21896: WARNING: pthread.h: present but cannot be compiled
 configure:21896: WARNING: pthread.h:     check for missing prerequisite headers?
 configure:21896: WARNING: pthread.h: see the Autoconf documentation
 configure:21896: WARNING: pthread.h:     section "Present But Cannot Be Compiled"
 configure:21896: WARNING: pthread.h: proceeding with the compiler's result
 configure:21896: checking for pthread.h
 configure:21896: result: no
 configure:21905: error: pthread support is required to build WebKit

 ---
 Izumi Tsutsui

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: iamleot@gmail.com, tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/49825: pkgsrc-2015Q1 www/webkit-gtk build fails on NetBSD 6.1.5
Date: Sun, 12 Apr 2015 06:42:11 +0900

 >  Probably that's due the -D_FORTIFY_SOURCE use as we discussed in
 >  pkgsrc-changes@.
 >  Izumi, can you try the attached patches here please:
 >  
 >   http://mail-index.netbsd.org/pkgsrc-changes/2015/04/01/msg121771.html

 It works around.

 (not sure if _FORTIFY_SOURCE should work or not for pkgsrc gcc48 though)

 ---
 Izumi Tsutsui

From: Leonardo Taccari <iamleot@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49825: pkgsrc-2015Q1 www/webkit-gtk build fails on NetBSD 6.1.5
Date: Sun, 12 Apr 2015 15:45:25 +0200

 Hello Izumi and the entire pkgsrc community,

 Izumi Tsutsui writes:
 > It works around.
 Thank you very much for the feedback!

 Can someone with the commit access review and commit the patch
 discussed here please?:

  http://mail-index.netbsd.org/pkgsrc-changes/2015/04/01/msg121771.html

 As pointed out it will unbreak the build of www/webkit-gtk at least on
 NetBSD stable releases that needs lang/gcc48 to build webkit-gtk.

 > (not sure if _FORTIFY_SOURCE should work or not for pkgsrc gcc48 though)
 I only discussed briefly with Joerg regarding that. If I understand
 correctly it works only with gcc in base and I also think that usually
 packages in pkgsrc should not force it (if I am wrong please correct
 me).


 Ciao,
 L.

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49825: pkgsrc-2015Q1 www/webkit-gtk build fails on NetBSD
 6.1.5
Date: Sun, 12 Apr 2015 16:02:19 +0200

 On Sun, Apr 12, 2015 at 01:50:00PM +0000, Leonardo Taccari wrote:
 >  > (not sure if _FORTIFY_SOURCE should work or not for pkgsrc gcc48 though)
 >  I only discussed briefly with Joerg regarding that. If I understand
 >  correctly it works only with gcc in base and I also think that usually
 >  packages in pkgsrc should not force it (if I am wrong please correct
 >  me).

 It works fine with GCC from pkgsrc IF you remove the broken fixinc
 headers.

 Joerg

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/49825: pkgsrc-2015Q1 www/webkit-gtk build fails on NetBSD 6.1.5
Date: Sun, 12 Apr 2015 23:51:24 +0900

 Well I'm not a pkgsrc developer and have no idea against comments
 like "it should be blah blah" (local patch is enough for me.)

State-Changed-From-To: open->feedback
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Tue, 02 Jun 2015 10:42:28 +0000
State-Changed-Why:
Should be fixed now, please try!


State-Changed-From-To: feedback->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sat, 11 Jul 2015 16:16:49 +0000
State-Changed-Why:
Works fine with pkgsrc-2015Q2 + NetBSD 6.1.5 and 7.0_RC1.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.