NetBSD Problem Report #55188

From  Mon Apr 20 12:51:14 2020
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id B07BF1A9213
	for <>; Mon, 20 Apr 2020 12:51:14 +0000 (UTC)
Message-Id: <>
Date: Mon, 20 Apr 2020 12:50:43 +0000 (UTC)
Subject: libsoup FTBFS on RHEL-7. Needs to define _BSD_SOURCE.
X-Send-Pr-Version: www-1.0

>Number:         55188
>Category:       pkg
>Synopsis:       libsoup FTBFS on RHEL-7. Needs to define _BSD_SOURCE.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    linux-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 20 12:55:00 +0000 2020
>Last-Modified:  Sat Apr 25 15:12:23 +0000 2020
>Originator:     Eric Garver
>Release:        pkgsrc-2020Q1
$ uname -a
Linux $HOST 3.10.0-693.21.1.el7.x86_64 #1 SMP Fri Feb 23 18:54:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Fails to build because u_char is not defined. It's defined in sys/types.h, but wrapped in __USE_BSD which is glibc internal and gets defined if _BSD_SOURCE is defined [1].

[1]: Search "__USE_BSD" here


[5/170] Compiling C object 'libsoup/275ffb9@@soup-2.4@sha/soup-address.c.o'.
FAILED: libsoup/275ffb9@@soup-2.4@sha/soup-address.c.o
cc -Ilibsoup/275ffb9@@soup-2.4@sha -Ilibsoup -I../libsoup -I. -I../ -I/home/egarver/pkg-2020Q1/include/glib-2.0 -I/home/egarver/pkg-2020Q1/lib/glib-2.0/include -I/home/egarv
er/pkg-2020Q1/include -I/home/egarver/pkg-2020Q1/include/libxml2 -I/usr/include -I/home/egarver/pkg-2020Q1/include/gio-unix-2.0 -I/home/egarver/pkg-2020Q1/include/python3.7
-fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c89 -D_DEFAULT_SOURCE -DHAVE_CONFIG_H -Wall -Wmissing-include-dirs -Wpointer-arith -Winit-self -Wdeclaration-aft
er-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=aggregate-return -Werror=format=2 -Wstrict-prototypes -Wno-format-zero-length -O2 -D_FO
RTIFY_SOURCE=2 -fPIC -pthread '-DG_LOG_DOMAIN="libsoup"' -DLIBSOUP_COMPILATION -fvisibility=hidden -MD -MQ 'libsoup/275ffb9@@soup-2.4@sha/soup-address.c.o' -MF 'libsoup/275f
fb9@@soup-2.4@sha/soup-address.c.o.d' -o 'libsoup/275ffb9@@soup-2.4@sha/soup-address.c.o' -c ../libsoup/soup-address.c
In file included from /usr/include/resolv.h:65:0,
                 from /home/egarver/pkgsrc/net/libsoup/work/.buildlink/include/glib-2.0/gio/gnetworking.h:44,
                 from ../libsoup/soup-address.c:14:
/usr/include/arpa/nameser.h:115:8: error: unknown type name 'u_char'
  const u_char *_msg, *_eom;
$ cd pkgsrc/net/libsoup
$ bmake
$ cd pkgsrc/net/libsoup
$ bmake clean



Responsible-Changed-From-To: pkg-manager->linux-pkg-people
Responsible-Changed-When: Sat, 25 Apr 2020 15:12:23 +0000
RHEL/Linux problem


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.