Skip to content
Mikrotik's NPK files managing tools
Branch: master
Clone or download
rsa9000 Fix compilation issue
On some platform linking stage may fail with the following message:

unnpk.c:(.text+0x3f6): undefined reference to `inflateInit_'
unnpk.c:(.text+0x536): undefined reference to `inflate'
unnpk.c:(.text+0x55d): undefined reference to `inflateEnd'
unnpk.c:(.text+0xc3e): undefined reference to `inflateEnd'
collect2: error: ld returned 1 exit status

This issue is caused by a wrong compiler arguments order. Instruction
to link with zlib (-lz) goes before the source file and linker can not
found required symbols. Fix this issue by correcting arguments order in
the compiler invocation line.

Thanks to David Jacoby, for the issue report and the solution

Reported-and-tested-by: David Jacoby <>
Latest commit 749875e May 8, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit May 19, 2016
LICENSE Update version information Jun 20, 2017
Makefile Fix compilation issue May 8, 2018 Initial commit May 19, 2016
npk.h Update version information Jun 20, 2017
unnpk.c Fix formating issue Apr 27, 2018

npk-tools: Mikrotik's NPK files managing tools

Utility to dump or unpack Mikrotik's NPK packages for RouterOS.


Inspired by python scripts from [1], this site not available now but these scripts could be found in [2].



A lot


This project is licensed under the terms of the ISC license. See the LICENSE file for license rights and limitations.

You can’t perform that action at this time.