Page 1 of 1

Compliation failed - zmu.cpp

Posted: Mon Jan 02, 2006 1:44 am
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

Posted: Mon Jan 02, 2006 2:44 am
by rdmelin
Guess I wasn't logged in in the above post. :)

Posted: Mon Jan 02, 2006 10:53 am
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