NetBSD Problem Report #56509

From www@netbsd.org  Thu Nov 18 19:23:47 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_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 AFD081A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 18 Nov 2021 19:23:47 +0000 (UTC)
Message-Id: <20211118192346.8A8761A923A@mollari.NetBSD.org>
Date: Thu, 18 Nov 2021 19:23:46 +0000 (UTC)
From: pekdon@gmail.com
Reply-To: pekdon@gmail.com
To: gnats-bugs@NetBSD.org
Subject: gstreamer1 build issues on Solaris (and SmartOS) after upgrade to 1.18.5
X-Send-Pr-Version: www-1.0

>Number:         56509
>Category:       pkg
>Synopsis:       gstreamer1 build issues on Solaris (and SmartOS) after upgrade to 1.18.5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 18 19:25:00 +0000 2021
>Closed-Date:    Fri Nov 19 09:29:38 +0000 2021
>Last-Modified:  Fri Nov 19 09:29:38 +0000 2021
>Originator:     Claes Nstn
>Release:        trunk 2021-11-17
>Organization:
>Environment:
SunOS 5.10 i86pc i386 i86pc
>Description:
A few gstreamer1 build issues popped up after the upgrade to 1.18.5, seen on Solaris 10 and some on SmartOS bulk builds as well.

gstreamer1

Undefined                       first referenced
 symbol                             in file
socketpair                          gst/libgstreamer-1.0.so.0.1805.0.p/gstpoll.c.o  (symbol belongs to implicit dependency /lib/amd64/libso$
ket.so.1)
ld: fatal: symbol referencing errors. No output written to gst/libgstreamer-1.0.so.0.1805.0
collect2: error: ld returned 1 exit status

AND

[202/512] Linking target plugins/tracers/libgstcoretracers.so
FAILED: plugins/tracers/libgstcoretracers.so
gcc  -o plugins/tracers/libgstcoretracers.so plugins/tracers/libgstcoretracers.so.p/gstlatency.c.o plugins/tracers/libgstcoretracers.so.p/gstleaks.c.o plugins/tracers/libgstcoretracers.so.p/gststats.c.o plugins/tracers/libgstcoretracers.so.p/gsttracers.c.o plugins/tracers/libgstcoretracers.so.p/gstlog.c.o plugins/tracers/libgstcoretracers.so.p/gstrusage.c.o -L/usr/pkg/gcc8/lib/gcc/x86_64-sun-solaris2.10/8.4.0 -L/usr/pkg/gcc8/lib/amd64 -L/usr/pkg/lib -L/usr/lib/amd64 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -I/usr/pkg/include/python3.9 -z defs -shared -fPIC -Wl,--start-group -Wl,-soname,libgstcoretracers.so -lsocket -lnsl -Wl,-R/usr/pkg/gcc8/lib/gcc/x86_64-sun-solaris2.10/8.4.0 -Wl,-R/usr/pkg/gcc8/lib/amd64 -Wl,-R/usr/pkg/lib -Wl,-R/usr/lib/amd64 -O2 -D_FORTIFY_SOURCE=2 '-Wl,-rpath,$ORIGIN/../../gst' gst/libgstreamer-1.0.so.0.1805.0 -Wl,-R/usr/pkg/lib /usr/pkg/lib/libglib-2.0.so /usr/pkg/lib/libintl.s
 o /usr/pkg/lib/libgobject-2.0.so -Wl,-R/usr/pkg/lib /usr/pkg/lib/libgmodule-2.0.so -Wl,--end-group -Wl,-R/usr/pkg/lib
Undefined                       first referenced
 symbol                             in file
clock_gettime                       plugins/tracers/libgstcoretracers.so.p/gstrusage.c.o  (symbol belongs to implicit dependency /lib/amd64/librt.so.1)
ld: fatal: symbol referencing errors. No output written to plugins/tracers/libgstcoretracers.so
collect2: error: ld returned 1 exit status

gst-plugins1-base

[152/333] Linking target gst-libs/gst/rtsp/libgstrtsp-1.0.so.0.1805.0
FAILED: gst-libs/gst/rtsp/libgstrtsp-1.0.so.0.1805.0
gcc  -o gst-libs/gst/rtsp/libgstrtsp-1.0.so.0.1805.0 gst-libs/gst/rtsp/libgstrtsp-1.0.so.0.1805.0.p/meson-generated_.._gstrtsp-enumtypes.c.o
 gst-libs/gst/rtsp/libgstrtsp-1.0.so.0.1805.0.p/gstrtsptransport.c.o gst-libs/gst/rtsp/libgstrtsp-1.0.so.0.1805.0.p/gstrtspurl.c.o gst-libs/
gst/rtsp/libgstrtsp-1.0.so.0.1805.0.p/gstrtspmessage.c.o gst-libs/gst/rtsp/libgstrtsp-1.0.so.0.1805.0.p/gstrtspconnection.c.o gst-libs/gst/r
tsp/libgstrtsp-1.0.so.0.1805.0.p/gstrtspdefs.c.o gst-libs/gst/rtsp/libgstrtsp-1.0.so.0.1805.0.p/gstrtspextension.c.o gst-libs/gst/rtsp/libgs
trtsp-1.0.so.0.1805.0.p/gstrtsprange.c.o -L/usr/pkg/gcc8/lib/gcc/x86_64-sun-solaris2.10/8.4.0 -L/usr/pkg/gcc8/lib/amd64 -L/usr/lib/amd64 -L/
usr/pkg/lib -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -z
 defs -shared -fPIC -Wl,--start-group -Wl,-soname,libgstrtsp-1.0.so.0 -Wl,-R/usr/pkg/gcc8/lib/gcc/x86_64-sun-solaris2.10/8.4.0 -Wl,-R/usr/pk
g/gcc8/lib/amd64 -Wl,-R/usr/lib/amd64 -Wl,-R/usr/pkg/lib -O2 -D_FORTIFY_SOURCE=2 /usr/pkg/lib/libgstbase-1.0.so /usr/pkg/lib/libgstreamer-1.
0.so /usr/pkg/lib/libgobject-2.0.so -Wl,-R/usr/pkg/lib /usr/pkg/lib/libglib-2.0.so /usr/pkg/lib/libintl.so -Wl,-R/usr/pkg/lib /usr/pkg/lib/l
ibgio-2.0.so -Wl,-R/usr/pkg/lib -lm -Wl,--end-group
Undefined                       first referenced
 symbol                             in file
getsockname                         gst-libs/gst/rtsp/libgstrtsp-1.0.so.0.1805.0.p/gstrtspconnection.c.o  (symbol belongs to implicit depend
ency /lib/amd64/libsocket.so.1)
setsockopt                          gst-libs/gst/rtsp/libgstrtsp-1.0.so.0.1805.0.p/gstrtspconnection.c.o  (symbol belongs to implicit depend
ency /lib/amd64/libsocket.so.1)
ld: fatal: symbol referencing errors. No output written to gst-libs/gst/rtsp/libgstrtsp-1.0.so.0.1805.0
collect2: error: ld returned 1 exit status

In addition, gst/tcp/gstmultifdsink.c fails to compile due to undefined 
>How-To-Repeat:
Build multimedia/gstreamer1 or multimedia/gst-plugins1-base
>Fix:
multimedia/gstreamer1/Makefile

LDFLAGS.SunOS+= -lsocket -lnsl -lrt

multimedia/gst-plugins1-base/Makefile

LDFLAGS.SunOS+= -lsocket -lnsl

multimedia/gst-plugins1-base/patches/patch-gst_tcp_gstmultifdsink.c 

$NetBSD$

--- gst/tcp/gstmultifdsink.c.orig       2021-11-18 19:16:20.355525783 +0000
+++ gst/tcp/gstmultifdsink.c
@@ -121,6 +121,10 @@

 #include "gstmultifdsink.h"

+#if !defined(FIONREAD) && defined(__sun)
+#include <sys/filio.h>
+#endif
+
 #define NOT_IMPLEMENTED 0

 GST_DEBUG_CATEGORY_STATIC (multifdsink_debug);

>Release-Note:

>Audit-Trail:
From: "Nia Alarie" <nia@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56509 CVS commit: pkgsrc/multimedia
Date: Thu, 18 Nov 2021 20:25:45 +0000

 Module Name:	pkgsrc
 Committed By:	nia
 Date:		Thu Nov 18 20:25:45 UTC 2021

 Modified Files:
 	pkgsrc/multimedia/gst-plugins1-base: Makefile distinfo
 	pkgsrc/multimedia/gstreamer1: Makefile
 Added Files:
 	pkgsrc/multimedia/gst-plugins1-base/patches:
 	    patch-gst_tcp_gstmultifdsink.c

 Log Message:
 gstreamer1: Build fixes for Solarish

 PR pkg/56509 from Claes Nästén


 To generate a diff of this commit:
 cvs rdiff -u -r1.27 -r1.28 pkgsrc/multimedia/gst-plugins1-base/Makefile
 cvs rdiff -u -r1.42 -r1.43 pkgsrc/multimedia/gst-plugins1-base/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/multimedia/gst-plugins1-base/patches/patch-gst_tcp_gstmultifdsink.c
 cvs rdiff -u -r1.51 -r1.52 pkgsrc/multimedia/gstreamer1/Makefile

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

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Fri, 19 Nov 2021 09:29:38 +0000
State-Changed-Why:
Committed by nia, thanks for the PR!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.