Compliation failed - zmu.cpp

Support and queries relating to all previous versions of ZoneMinder
Locked
Guest

Compliation failed - zmu.cpp

Post by Guest »

Hi Phil,
You have been busy :)

On my Mandriva 2006 system compiling errors out here:
zmu.cpp:96: error: 'LIST' redeclared as different kind of symbol
/usr/include/mysql/my_list.h:27: error: previous declaration of 'typedef struct st_list LIST'
zmu.cpp: In function 'bool ValidateAccess(User*, int, int)':
zmu.cpp:112: error: expected primary-expression before ')' token
zmu.cpp: In function 'int main(int, char**)':
zmu.cpp:315: error: expected primary-expression before ';' token
zmu.cpp:649: error: expected primary-expression before ')' token
make[2]: *** [zmu.o] Error 1
make[2]: Leaving directory `/home/ross/build/ZoneMinder-1.22.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ross/build/ZoneMinder-1.22.0'
make: *** [all] Error 2
Best regards,
Ross
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

Guess I wasn't logged in in the above post. :)
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

There is obviously a clash between the enum type declared in zmu.cpp and a mysql type in one of it's headers. I'll fix it properly here but for now just change LIST in zmu.cpp to XLIST or something. It's not used anywhere else anyway.

Phil
Locked