pkgsrc-Users archive

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

Re: PR41601 devel/glib2 fails to compile on Solaris 10



On Sat, 19 Oct 2019 14:54:05 +0100
Jonathan Perkin <jperkin%joyent.com@localhost> wrote:

> * On 2019-10-19 at 10:36 BST, Sad Clouds wrote:
> 
> > I wonder if the bug needs to be reopened. Does anyone know what
> > causes this failure? Is this related to -std=gnu89 or some other
> > macro defined somewhere?
> 
> Yes, it's related to -std=gnu89, the question is what is adding it.
> 
> glib2 requires C99, and we specify that in USE_LANGUAGES, but it looks
> like the -std=gnu89 is taking precedence.
> 
> If you can figure out where it's coming from we can fix it, glib2
> builds fine on illumos so this seems specific either to Oracle Solaris
> or SPARC somehow.
> 
> -- 
> Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com

Well glib2 uses something weird called mesonbuild. It takes about 10
minutes just to run "configure" phase. Looked at ptree and it keeps
running "tr" command, no idea what it's trying to translate.

            5474  bmake build
              5552  /usr/bin/bash -c set -e;      if test -n "" &&  /opt/pkg/sbin/pkg_info -K /opt/
                5553  /opt/pkg/bin/bmake _MAKE=/opt/pkg/bin/bmake OPSYS=SunOS OS_VERSION=5.11 LOWER_O
                  6794  /usr/bin/bash -c set -e; cd /opt/pkgbuild/objects/devel/glib2/work/glib-2.60.6;
                    6986  /usr/bin/bash -c set -e; cd /opt/pkgbuild/objects/devel/glib2/work/glib-2.60.6;
                      6987  /usr/xpg4/bin/tr -cd \0
                      6988  /usr/xpg4/bin/tr \0 x


Anyway, looked in "meson.build" file

project('glib', 'c', 'cpp',
  version : '2.60.6',
  meson_version : '>= 0.48.0',
  default_options : [
    'buildtype=debugoptimized',
    'warning_level=1',
    'c_std=gnu89'
  ]
)

Changed that go "gnu99" and still get the same build error. So will
look to see what else may be causing it.


Home | Main Index | Thread Index | Old Index