Just started using cmake in the last couple of weeks on Windows and Linux, and now moving to Solaris 11.4 (x86). I have built and installed cmake a couple of times under Linux, but it fails to compile under Solaris. It gives a link error.
Undefined first referenced
symbol in file
Had a look at the source and I think I see what the problem is.
There is a section with a comment that starts ‘This is blatantly stolen from libarchive/archive_entry.c’. And the code that follows is identical to the other file. However the includes at the top of the file, that setup various defines used by the code, are different.
I believe that
needs to become
So it matches the other file.
After making this change locally cmake builds successfully and works with my CMakeLists.txt files.