hbmzip problem, debian 13.3, gcc 14.2.0

64 views
Skip to first unread message

nikk...@gmail.com

unread,
Feb 4, 2026, 12:14:05 PMFeb 4
to Harbour Users
hi guys
because i' m working only on linux,  in these days, i' m looking to download from an url a zip file.

i use libcurl and all is working fine, the file is download like a charm.

i take a look  in contrib/hmzip/tests to learn how to unzip

but whn i try to compile i receive this error

hbmk2: Processing local make script: hbmk.hbm
Harbour 3.2.0dev (r2601171121)
Copyright (c) 1999-2025, https://harbour.github.io/
Compiling 'myunzip.prg'...
Lines 177, Functions/Procedures 1
Generating C source output to '/tmp/hbmk_0nbuk0.dir/myunzip.c'... Done.
/usr/bin/ld: /usr/local/lib/harbour/libminizip.a(unzip.o): undefined reference to symbol 'inflateEnd'
/usr/bin/ld: /lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
hbmk2: Errore: nell'esecuzione del linker. 1
gcc '/tmp/hbmk_0nbuk0.dir/myunzip.o' '/tmp/hbmk_0nbuk0.dir/hbmk_x4kt1a.o'   -Wl,--start-group -lhbmzip -lminizip -lhbcplr -lhbdebug -lharbour   -Wl,--end-group -omyunzip -L/usr/local/lib/harbour

how can be solved the problem ?

Itamar Lins

unread,
Feb 4, 2026, 1:56:19 PMFeb 4
to Harbour Users
Hi!
put -lz and -lm on script or line command.
For zlib and mathematical libs

Regards,
Itamar M. Lins Jr.

nikk...@gmail.com

unread,
Feb 5, 2026, 2:28:00 AM (14 days ago) Feb 5
to Harbour Users
Hi Itamar M. Lins Jr.

thanks for your solution, now compilation is ok
Reply all
Reply to author
Forward
0 new messages