Menu

#276 cmake build fails with syntax error in VERSION script for libpng-1.6.34 shared

open
nobody
5
2017-11-15
2017-11-15
No

I can build libpng successfully with the standard autotools. But I prefer cmake because I need to build on many architectures. The cmake build goes until 77%, but fails with an error in the VERSION script:

make[4]: Leaving directory '/tmp/debug-Ubuntu-16.04-x86_64-gcc5.4.0/thirdparty/libpng-1.6.34-x86_64'
[ 76%] Built target png_static
[ 77%] Linking C shared library libpng16d.so
/usr/bin/ld:/tmp/debug-Ubuntu-16.04-x86_64-gcc5.4.0/thirdparty/libpng-1.6.34-x86_64/libpng.vers:1: syntax error in VERSION script
collect2: error: ld returned 1 exit status
CMakeFiles/png.dir/build.make:530: recipe for target 'libpng16d.so.16.34.0' failed
make[4]: *** [libpng16d.so.16.34.0] Error 1
make[4]: Leaving directory '/tmp/debug-Ubuntu-16.04-x86_64-gcc5.4.0/thirdparty/libpng-1.6.34-x86_64'
CMakeFiles/Makefile2:375: recipe for target 'CMakeFiles/png.dir/all' failed
make[3]: *** [CMakeFiles/png.dir/all] Error 2
make[3]: Leaving directory '/tmp/debug-Ubuntu-16.04-x86_64-gcc5.4.0/thirdparty/libpng-1.6.34-x86_64'
Makefile:140: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/tmp/debug-Ubuntu-16.04-x86_64-gcc5.4.0/thirdparty/libpng-1.6.34-x86_64'

Attached the version script. Is something fishy there?

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB