Page 1 of 1

Ubuntu error when compiling the libsigrok4DSL

PostPosted: Mon Jul 10, 2017 11:42 pm
by Laur
Hi,

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?

Re: Ubuntu error when compiling the libsigrok4DSL

PostPosted: Tue Nov 21, 2017 5:10 pm
by bizu21
Hi,

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.