On Solaris 7, 8, 9, 10, 11 for both SPARC and i86pc, when using the Sun Studio 7, 11, 12 and 12.3 compilers, the use of the gcc-ism '-pedantic' will cause a compile error. It tries to trigger performance gathering.
You can test for '__SUNPRO_C' or better yet, test for gcc use before injecting it. It's now -Wpedantic anyway.
/usr/local/bin/bash ../libtool --tag=CC --mode=link cc -xtarget=ultra -xarch=v9 -xcode=pic32 -I/usr/local/include -pedantic -no-undefined -export-symbols exported.sym -R/usr/local/lib -L/usr/local/lib -o libcheck.la -rpath /libcheck/lib check.lo check_error.lo check_list.lo check_log.lo check_msg.lo check_pack.lo check_print.lo check_run.lo check_str.lo ../lib/libcompat.la
libtool: link: echo "local: *; };" >> .libs/libcheck.so.0.0.0.exp
libtool: link: cc -xtarget=ultra -xarch=v9 -xcode=pic32 -G -z defs -M .libs/libcheck.so.0.0.0.exp -h libcheck.so.0 -o .libs/libcheck.so.0.0.0 .libs/check.o .libs/check_error.o .libs/check_list.o .libs/check_log.o .libs/check_msg.o .libs/check_pack.o .libs/check_print.o .libs/check_run.o .libs/check_str.o -z allextract ../lib/.libs/libcompat.a -z defaultextract -R/usr/local/lib -L/usr/local/lib -lc -xtarget=ultra -xarch=v9
Undefined first referenced
symbol in file
floor .libs/check.o
mcount .libs/check.o
ld: fatal: Symbol referencing errors. No output written to .libs/libcheck.so.0.0.0
gmake[2]: *** [libcheck.la] Error 1
gmake[2]: Leaving directory `/var/tmp/check-0.9.12/src'
gmake[1]: *** [all-recursive] Error 1
References:
https://bugs.freedesktop.org/show_bug.cgi?id=27735
Mark,
Thanks for reporting this issue. I've actually never run Solaris, and thus
have never checked that Check works on Solaris.
The -pedantic was actually removed in January for an unrelated reason. This
has not been put into a release yet, but is available in the SVN trunk.
This change will appear in the next Check release.
Besides this flag, does everything else work on Solaris?
On Mon, Mar 17, 2014 at 10:22 PM, Mark markatc@users.sf.net wrote:
Related
Bugs:
#95Yup, pretty clean. I do have to diddle the src/Makefile.in to remove CK_EXPORT though. Here's the recipe:
Packages are up at http://www.ibiblio.org/pub/packages/solaris/sparc/