pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/54634: compiling devel/glib2 on Solaris 11



>Number:         54634
>Category:       pkg
>Synopsis:       compiling devel/glib2 on Solaris 11
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 21 15:10:00 +0000 2019
>Originator:     Joern Clausen
>Release:        
>Organization:
Bielefeld University
>Environment:
>Description:
See the current follow-up discussion to PR/41601 on the pkgsrc-user list for reference.

Compiling devel/glib2 on Solaris 11.3 needs a current patch-level of the OS, due to changes in /usr/include/sys/feature_tests.h. I needed to upgrade to the most recent release "entire@0.5.11-0.175.3.35.0.6.0".

In addition, this patch is necessary:

--- Makefile    2019/10/10 10:08:04     1.1
+++ Makefile    2019/10/21 15:07:53
@@ -11,6 +11,7 @@
 # Avoid linux dependency on libmount-dev
 MESON_ARGS+=   -Dlibmount=false
 
+CPPFLAGS.SunOS+=-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1
 LDFLAGS.SunOS+=                -lintl -lnsl
 
 REPLACE_PYTHON+=       gio/gio-querymodules-wrapper.py


otherwise this error occurs:

../gio/gsocket.c:4385:11: error: 'struct msghdr' has no member named 'msg_control'
 4385 |       _msg->msg_control = NULL; \
      |           ^~

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index