pkgsrc-Bugs archive

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

pkg/52318: expat-2.2.1 fails to build on Solaris 10



>Number:         52318
>Category:       pkg
>Synopsis:       expat-2.2.1 fails to build on Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 20 02:05:00 +0000 2017
>Originator:     Hiroshi Hakoyama
>Release:        pkgsrc 20170620
>Organization:
FRA
>Environment:
SunOS ec21 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Blade-1000
>Description:
expat-2.2.1 fails to build on Solaris 10.
expat-2.2.0 is OK.

lib/xmlparse.c:721:9: warning: implicit declaration of function 'getrandom' [-Wimplicit-function-declaration]
         getrandom(currentTarget, bytesToWrite, getrandomFlags);
         ^

......

libtool: link: gcc -std=gnu99 -I./lib -I. -O3 -mcpu=ultrasparc3 -mtune=ultrasparc3 -I/usr/pkgsrc/textproc/expat/work/.buildlink/include -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -fno-strict-aliasing -DHAVE_EXPAT_CONFIG_H -Wl,-rpath -Wl,/usr/pkg/gcc49/lib/gcc/sparc-sun-solaris2.10/4.9.4 -Wl,-rpath -Wl,/usr/pkg/gcc49/lib -Wl,-rpath -Wl,/usr/pkg/lib -fno-strict-aliasing -o xmlwf/.libs/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/unixfilemap.o  -L/usr/pkg/gcc49/lib/gcc/sparc-sun-solaris2.10/4.9.4 -L/usr/pkg/gcc49/lib -L/usr/pkgsrc/textproc/expat/work/.buildlink/lib ./.libs/libexpat.so -R/usr/pkg/lib
Undefined                       first referenced
 symbol                             in file
getrandom                           ./.libs/libexpat.so
ld: fatal: symbol referencing errors. No output written to xmlwf/.libs/xmlwf
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/textproc/expat/work/expat-2.2.1
*** Error code 1

Stop.
bmake[1]: stopped in /usr/pkgsrc/textproc/expat
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/textproc/expat

%--------------------
mk.conf

.ifdef BSD_PKG_MK       # begin pkgsrc settings

ABI=                    32
PKGSRC_COMPILER=        gcc
# GCCBASE=              /opt/csw/gcc4
GCCBASE=                /usr/pkg/gcc49

PKG_DBDIR=              /usr/pkg/pkgdb
LOCALBASE=              /usr/pkg
VARBASE=                /var
PKG_TOOLS_BIN=          /usr/pkg/sbin
PKGINFODIR=             info
PKGMANDIR=              man

TOOLS_PLATFORM.install?=        ${LOCALBASE}/bin/bsdinstall
TOOLS_PLATFORM.awk?=            ${LOCALBASE}/bin/nawk
TOOLS_PLATFORM.sed?=            ${LOCALBASE}/bin/nbsed
TOOLS_PLATFORM.sh?=             /usr/bin/bash
#TOOLS_PLATFORM.sh?=             ${LOCALBASE}/bin/bash

#CONFIG_SHELL=   ${LOCALBASE}/bin/bash
#WRAPPER_SHELL=  ${LOCALBASE}/bin/bash

TOOLS_PLATFORM.ar=      /usr/ccs/bin/ar
TOOLS_PLATFORM.nm=      /usr/ccs/bin/nm
TOOLS_PLATFORM.ranlib=  /usr/ccs/bin/ranlib
USE_TOOLS+=             ar nm ranlib

TOOLS_PLATFORM.flex?=           ${LOCALBASE}/bin/flex
TOOLS_PLATFORM.lex?=            ${LOCALBASE}/bin/flex
TOOLS_PLATFORM.find?=            ${LOCALBASE}/bin/gfind

# CFLAGS+=              -O2
CFLAGS+= -O3 -mcpu=ultrasparc3 -mtune=ultrasparc3
CXXFLAGS+= -O3 -mcpu=ultrasparc3 -mtune=ultrasparc3
DBG=                    # prevent DBG from adding default optimizer flags

# gcc49
PKG_OPTIONS.gcc49= gcc-c++ -gcc-fortran -gcc-go gcc-inplace-math -gcc-objc -gcc-
objc++

X11_TYPE= modular
USE_INET6= no

PKG_OPTIONS.xz= -nls
PKG_OPTIONS.cvs = -kerberos
PKG_OPTIONS.groff= -x11 -groff-docs
PKG_OPTIONS.gd= -x11
PKG_OPTIONS.apache= -http2

IS_BUILTIN.zlib= yes
USE_BUILTIN.zlib= no
PREFER.zlib= pkgsrc

USE_BUILTIN.bzip2= no
PREFER.bzip2= pkgsrc
USE_BZIP2= yes

ACCEPTABLE_LICENSES+=vim-license

.endif                  # end pkgsrc settings

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index