Ubuntu error when compiling the libsigrok4DSL

Help to track any bugs about DSView software

Issue noticed in Ubuntu 14.04

After downloading the latest version of DSview (git clone git://github.com/DreamSourceLab/DSView) , after checking all the dependencies, when i try to compile libsigrok4DSL i receive the following error:

session_file.c: In function 'sr_session_append':
session_file.c:476:5: warning: implicit declaration of function 'zip_file_add' [-Wimplicit-function-declaration]
if (zip_file_add(archive, chunk_name, logicsrc, ZIP_FL_OVERWRITE) == -1) {
session_file.c:476:53: error: 'ZIP_FL_OVERWRITE' undeclared (first use in this function)
if (zip_file_add(archive, chunk_name, logicsrc, ZIP_FL_OVERWRITE) == -1) {
session_file.c:476:53: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [session_file.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Any idea about this error?
Posts: 1
Joined: Wed Jul 05, 2017 11:07 pm


I had initially exactly the same issue. Apparently, the problem comes from the version of libzip-dev installed. The configure.ac specifies a required libzip-dev > 0.10 while the zip_file_add function seems to be supported only for versions > 0.11.
For me, the solution was to install the latest libzip version from https://libzip.org/download/ after having removed the previously installed libzip-dev package, and then re-compile everything. It worked then like a charm.

Hope it helps.
Posts: 1
Joined: Fri Nov 17, 2017 3:22 pm

Return to Bugs Report

Who is online
Users browsing this forum: No registered users and 1 guest