domoticz / minizip

Minizip. Portable zip & unzip lib
10 stars 5 forks source link

Minizip compile error #4

Open ROV28 opened 1 week ago

ROV28 commented 1 week ago

Dear all,

I encounter an error while compiling minizip:

/domoticz/extern/minizip/zip.c: In function ‘zipOpenNewFileInZip4_64’:
/domoticz/extern/minizip/zip.c:1248:28: error: assignment to ‘const long unsigned int *’ from incompatible pointer type ‘const uint32_t *’ {aka ‘const unsigned int *’} [-Wincompatible-pointer-types]
 1248 |         zi->ci.pcrc_32_tab = get_crc_table();

System is Fedora 40.

BR, R

gizmocuz commented 1 week ago

Question, did you follow this guide to the letter?

https://www.domoticz.com/wiki/Build_Domoticz_from_source

ROV28 commented 6 days ago

Based on that guide I build a script way back and used is dozend times, it stopped working with the error. I guess it due an update of some tool or lib.

gizmocuz commented 6 days ago

Could you move your build folder to a backup location and follow the above guide to the letter? (It could be that a library dependency needs to be updated on your system, but first follow the above guide)

ROV28 commented 5 days ago

I have followed the guide, libsqlite3x-devel and ghc-cereal-devel were missing, but... it makes not difference. I got exactly the same error

make: 4.4.1 gcc: 14.1.1 g++: 14.1.1 openssl-devel: 1:3.2.1-2 git: 2.45.2 libcurl-devel: 8.6.0-8 libusb1-devel: 1.0.27-2 INSTALLED: libsqlite3x-devel: 20071018-36 python3-devel: 3.12.3-2 zlib-ng-compat-devel: 2.1.6-5 INSTALLED: ghc-cereal-devel 0.5.8.3-6. lua-devel: 5.4.6-5 lua-libs: 5.4.6-5 uthash-devel: 2.3.0-7 wget: 2.1.0

gizmocuz commented 5 days ago

I removed the cereal library from the wiki, that is not needed anymore

But your system is installing/using a sqlite3 library from 2007?

As it seems you are the only one with this compile issue, I want to suggest a few options:

ROV28 commented 4 hours ago

No clue why it is numbered like this, SQLite looks newer: SQLite version 3.45.1 2024-01-30 16:01:20

Regarding the options:

I will wait, Fedora is at the forefront with releases, the others will follow and then this issues pops up again, probably...