Help compiling Valgrind 3.19.0 on Solaris 11

Shane Bishop <[email protected]>
Newsgroups gmane.comp.debugging.valgrind
Message-ID <DM6PR05MB4635349B48413DC75B8CE5B98C409@DM6PR05MB4635.namprd05.prod.outlook.com>
Hi,

I am trying to compile Valgrind 3.19.0 on Solaris 11. The compilation fails.

Here are the commands I have run:
wget --no-check-certificate https://sourceware.org/pub/valgrind/valgrind-3.19.0.tar.bz2
tar xjf valgrind-3.19.0.tar.bz2
cd valgrind-3.19.0
MAKE=gmake ./configure --enable-only64bit
gmake

Once I run "gmake" then the build runs for a while, and then it fails:

gcc -m64 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-align -Wcast-qual -Wwrite-strings -Wempty-body -Wformat -Wformat-signedness -Wformat-security -Wignored-qualifiers -Wmissing-parameter-type -Wlogical-op -Wimplicit-fallthrough=2 -Wold-style-declaration -finline-functions -fno-stack-protector -fno-strict-aliasing -fno-builtin   -O -g -fno-omit-frame-pointer -fno-strict-aliasing -fpic -fno-builtin -fno-ipa-icf  -nodefaultlibs -shared -Wl,-z,interpose,-z,initfirst -Wl,-M,../solaris/vgpreload-solaris.mapfile -m64 -Wl,-soname -Wl,vgpreload_core.so.0  -o vgpreload_core-amd64-solaris.so vgpreload_core_amd64_solaris_so-vg_preloaded.o
Undefined                       first referenced
 symbol                             in file
__xpg4                              ../solaris/vgpreload-solaris.mapfile  (symbol scope specifies local binding)
__xpg6                              ../solaris/vgpreload-solaris.mapfile  (symbol scope specifies local binding)
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status
gmake[3]: *** [Makefile:3469: vgpreload_core-amd64-solaris.so] Error 1
gmake[3]: Leaving directory '/root/Downloads/valgrind-3.19.0/coregrind'
gmake[2]: *** [Makefile:2475: all] Error 2
gmake[2]: Leaving directory '/root/Downloads/valgrind-3.19.0/coregrind'
gmake[1]: *** [Makefile:896: all-recursive] Error 1
gmake[1]: Leaving directory '/root/Downloads/valgrind-3.19.0'
gmake: *** [Makefile:759: all] Error 2

I have gcc version 7.3.0 and gmake version 4.2.1.

Please let me know any other details I should share to help identify why my build is failing.

Is it possible I am missing some headers or libs I need to install to build successfully?

Is there an earlier release of Valgrind that is known to successfully compile on Solaris 11 that I could try building instead?

Thanks,
Shane

P.S. I apologize if my email client inserts any HTML formatting, I don't know how to prevent this.

_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.