pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/54355: cmake-3.14.5 fails to build on Solaris 10
>Number: 54355
>Category: pkg
>Synopsis: cmake-3.14.5 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: Sun Jul 07 11:25:00 +0000 2019
>Originator: Hiroshi Hakoyama
>Release: pkgsrc current
>Organization:
Nagano University
>Environment:
SunOS ec21 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Blade-1000
>Description:
cmake-3.14.5 fails to build on Solaris 10.
# bmake
.....
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c: In function 'cmsysProcess_AddCommand':
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:446:7: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration]
newCommands[cp->NumberOfCommands][i] = strdup(command[i]);
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:446:44: warning: assignment makes pointer from integer without a cast
newCommands[cp->NumberOfCommands][i] = strdup(command[i]);
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c: In function 'cmsysProcess_SetWorkingDirectory':
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:499:26: warning: assignment makes pointer from integer without a cast
cp->WorkingDirectory = strdup(dir);
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c: In function 'cmsysProcess_SetPipeFile':
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:531:12: warning: assignment makes pointer from integer without a cast
*pfile = strdup(file);
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c: In function 'cmsysProcess_Interrupt':
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:1407:11: warning: implicit declaration of function 'kill' [-Wimplicit-function-declaration]
kill(-cp->ForkPIDs[i], SIGINT);
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c: In function 'kwsysProcessCreate':
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:1723:3: warning: implicit declaration of function 'sigemptyset' [-Wimplicit-function-declaration]
sigemptyset(&mask);
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:1724:3: warning: implicit declaration of function 'sigaddset' [-Wimplicit-function-declaration]
sigaddset(&mask, SIGINT);
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:1726:3: warning: implicit declaration of function 'sigprocmask' [-Wimplicit-function-declaration]
if (sigprocmask(SIG_BLOCK, &mask, &old_mask) < 0) {
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c: In function 'kwsysProcessRestoreDefaultSignalHandlers':
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2307:20: error: storage size of 'act' isn't known
struct sigaction act;
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2308:26: error: invalid application of 'sizeof' to incomplete type 'struct sigaction'
memset(&act, 0, sizeof(struct sigaction));
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2311:3: warning: implicit declaration of function 'sigaction' [-Wimplicit-function-declaration]
sigaction(SIGHUP, &act, 0);
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c: In function 'kwsysProcessKill':
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2561:5: warning: implicit declaration of function 'popen' [-Wimplicit-function-declaration]
FILE* ps = popen(KWSYSPE_PS_COMMAND, "r");
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2561:16: warning: initialization makes pointer from integer without a cast
FILE* ps = popen(KWSYSPE_PS_COMMAND, "r");
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2577:7: warning: implicit declaration of function 'pclose' [-Wimplicit-function-declaration]
pclose(ps);
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c: In function 'kwsysProcessesAdd':
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2713:24: error: storage size of 'newSigAction' isn't known
struct sigaction newSigAction;
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2714:39: error: invalid application of 'sizeof' to incomplete type 'struct sigaction'
memset(&newSigAction, 0, sizeof(struct sigaction));
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2723:31: error: 'SA_NOCLDSTOP' undeclared (first use in this function)
newSigAction.sa_flags = SA_NOCLDSTOP;
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2723:31: note: each undeclared identifier is reported only once for each function it appears in
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c: In function 'kwsysProcessesSignalHandler':
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2861:26: error: storage size of 'defSigAction' isn't known
struct sigaction defSigAction;
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2883:22: error: storage size of 'newSigAction' isn't known
struct sigaction newSigAction;
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2884:21: error: expected identifier or '(' before '&' token
struct sigaction& oldSigAction;
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2885:37: error: invalid application of 'sizeof' to incomplete type 'struct sigaction'
memset(&newSigAction, 0, sizeof(struct sigaction));
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2886:5: error: 'newSigChldAction' undeclared (first use in this function)
newSigChldAction.sa_handler = kwsysProcessesSignalHandler;
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2887:33: error: 'SA_NOCLDSTOP' undeclared (first use in this function)
newSigChldAction.sa_flags = SA_NOCLDSTOP;
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2891:9: error: 'oldSigAction' undeclared (first use in this function)
oldSigAction = &kwsysProcessesOldSigChldAction;
^
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/ProcessUNIX.c:2902:9: warning: 'return' with a value, in function returning void
return 0;
^
make: *** [ProcessUNIX.o] Error 1
---------------------------------------------
Error when bootstrapping CMake:
Problem while running make
---------------------------------------------
Log of errors: /usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
*** Error code 9
Stop.
bmake[1]: stopped in /usr/pkgsrc/devel/cmake
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/cmake
%-----------
cmake_bootstrap.log
...
cc1plus: warning: command line option '-std=c99' is valid for C/ObjC but not for
C++
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/kwsysPlatformTestsCXX.cxx:
In function 'int main()':
/usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/kwsysPlatformTestsCXX.cxx:
196:13: error: 'environ' was not declared in this scope
char* e = environ[0];
^
Test failed to compile
Try: g++
Line: g++ -std=c99 -O3 -mcpu=ultrasparc3 -mtune=ultrasparc3 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/include -O3 -mcpu=ultrasparc3 -mtune=ultrasparc3 -DTEST_KWSYS_STL_HAS_WSTRING /usr/pkgsrc/devel/cmake/work/cmake-3.14.5/Source/kwsys/kwsysPlatformTestsCXX.cxx -o cmake_bootstrap_24426_test
>How-To-Repeat:
At first, cmake_bootstrap says "On Solaris we need C99." and c99 is not set in the build, so I added -std=c99 in mk.conf
# bmake
%----------------------------
mk.conf
.ifdef BSD_PKG_MK # begin pkgsrc settings
ABI= 32
PKGSRC_COMPILER= gcc
# GCCBASE= /opt/csw/gcc4
# GCCBASE= /usr/pkg/gcc49
GCCBASE= /usr/pkg2/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
# On Solaris cmake need C99.
CFLAGS+= -std=c99 -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.tnftp= -inet6
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
>Fix:
unknown
Home |
Main Index |
Thread Index |
Old Index