bug#20031: GNU Automake 1.15 fails on three "yacc" cxx related tests on Solaris 10 AMD64
On 19/01/18 07:25 AM, Mathieu Lirzin wrote: Hello, Those test failures are/were happening because IIUC Solaris header declares malloc, free, exit only in the std namespace [1]. "dcla...@blastwave.org"writes: Good day and thank you for looking at this. I am going to get around to testing your patch for the bug#29638 as well as this one .. sometime today I hope. I'll let you know what I see. Dennis
bug#20031: GNU Automake 1.15 fails on three "yacc" cxx related tests on Solaris 10 AMD64
Hello, Those test failures are/were happening because IIUC Solaris header declares malloc, free, exit only in the std namespace [1]. "dcla...@blastwave.org"writes: > /opt/solarisstudio12.4/bin/CC -DPACKAGE_NAME=\"yacc-cxx\" > -DPACKAGE_TARNAME=\"yacc-cxx\" -DPACKAGE_VERSION=\"1.0\" > -DPACKAGE_STRING=\"yacc-cxx\ 1.0\" -DPACKAGE_BUGREPORT=\"\" > -DPACKAGE_URL=\"\" -DPACKAGE=\"yacc-cxx\" -DVERSION=\"1.0\" -I. > -I/usr/local/include -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS > -D_LARGEFILE64_SOURCE -dalign -erroff=%none -errtags=yes -ftrap=%none -g > -xcode=pic32 -m64 -mc -xunroll=1 -xbuiltin=%none -xtarget=opteron -xdepend=no > -xnolibmopt -xlinkopt=0 -xnolibmil -xregs=no%frameptr -xs > -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_TS_ERRNO -c -o parse1.o > parse1.cc > "parse1.cc", line 1053: Error: The function "malloc" must have a prototype. > "parse1.cc", line 1060: Error: The function "free" must have a prototype. > "parse1.yy", line 10: Error: The function "exit" must have a prototype. > "parse1.cc", line 1406: Error: The function "free" must have a prototype. > 4 Error(s) detected. > *** Error code 2 > make: Fatal error: Command failed for target `parse1.o' The explicit inclusion of instead of is made because those tests want to ensure that the code is invalid C. What would seem a more robust solution would be to include instead and make the code invalid C by another mean. Sorry for long delay. Thanks for the report. [1] https://docs.oracle.com/cd/E19205-01/819-5267/bkajw/index.html -- Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37
bug#20031: GNU Automake 1.15 fails on three yacc cxx related tests on Solaris 10 AMD64
Systems is : tbk $ cat /etc/release Oracle Solaris 10 1/13 s10x_u11wos_24a X86 Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved. Assembled 17 January 2013 tbk $ psrinfo -pv The physical processor has 12 virtual processors (0-11) x86 (chipid 0x0 AuthenticAMD family 16 model 9 step 1 clock 2100 MHz) AMD Opteron(tm) Processor 6172 The physical processor has 12 virtual processors (12-23) x86 (chipid 0x1 AuthenticAMD family 16 model 9 step 1 clock 2100 MHz) AMD Opteron(tm) Processor 6172 Compiler tools are Oracle Studio 12.4 : tbk $ which cc /usr/bin/cc tbk $ cc -V cc: Sun C 5.13 SunOS_i386 2014/10/20 results : Testsuite summary for GNU Automake 1.15 # TOTAL: 2639 # PASS: 2334 # SKIP: 254 # XFAIL: 48 # FAIL: 3 # XPASS: 0 # ERROR: 0 Specific fails : tbk $ grep ^FAIL ../automake-1.15_SunOS5.10_x86_64.001.check.log FAIL: t/yacc-cxx.sh FAIL: t/yacc-d-cxx.sh FAIL: t/yacc-mix-c-cxx.sh full test suite log attached Dennis Clarke automake-1.15_SunOS5.10_x86_64.001_test-suite.log.gz Description: GNU Zip compressed data