Forum

Linking problem

Arne
17 November 2018, 09:42
Hey everyone,

I have a problem while building hiawatha:

[ 81%] Linking C executable hiawatha
CMakeFiles/hiawatha.dir/src/libfs.c.o: In function `gzip_file':
/hiawatha/build/hiawatha-10.8.3/src/libfs.c:403: undefined reference to `gzopen64'
/hiawatha/build/hiawatha-10.8.3/src/libfs.c:424: undefined reference to `gzclose'
/hiawatha/build/hiawatha-10.8.3/src/libfs.c:417: undefined reference to `gzwrite'
/hiawatha/build/hiawatha-10.8.3/src/libfs.c:424: undefined reference to `gzclose'
CMakeFiles/hiawatha.dir/src/log.c.o: In function `gzip_logfile':
/hiawatha/build/hiawatha-10.8.3/src/log.c:673: undefined reference to `gzdopen'
/hiawatha/build/hiawatha-10.8.3/src/log.c:689: undefined reference to `gzwrite'
/hiawatha/build/hiawatha-10.8.3/src/log.c:700: undefined reference to `gzclose'
/hiawatha/build/hiawatha-10.8.3/src/log.c:700: undefined reference to `gzclose'
collect2: error: ld returned 1 exit status
CMakeFiles/hiawatha.dir/build.make:825: recipe for target 'hiawatha' failed
make[2]: *** [hiawatha] Error 1
CMakeFiles/Makefile2:69: recipe for target 'CMakeFiles/hiawatha.dir/all' failed
make[1]: *** [CMakeFiles/hiawatha.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
root@euve264315:/hiawatha/build/hiawatha-10.8.3/build# apt install hiawatha
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package hiawatha


I installed zlib1g-dev

Can anybody help me?
Thank you!

- Arne
Hugo Leisink
23 November 2018, 22:52
What distro are you using?
This topic has been closed.