[Solved] Compile error

Forum for questions and support relating to the 1.25.x releases only.
Locked
trumee
Posts: 69
Joined: Tue Mar 08, 2011 3:33 pm

[Solved] Compile error

Post by trumee »

My compile is dying because of the following error (OpenSuse 11.3). Any idea what could be wrong?

Code: Select all

g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include/mysql/include -I/usr/include//include -Wall -Wno-sign-compare -fno-inline -I/usr/include//include   -g -O2 -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
zm_local_camera.cpp: In static member function âstatic bool LocalCamera::GetCurrentSettings(const char*, char*, int, bool)â:
zm_local_camera.cpp:774:22: error: âPATH_MAXâ was not declared in this scope
zm_local_camera.cpp:779:21: error: âqueryDeviceâ was not declared in this scope
zm_local_camera.cpp:781:22: error: âqueryDeviceâ was not declared in this scope
zm_local_camera.cpp:782:29: error: âqueryDeviceâ was not declared in this scope
zm_local_camera.cpp:799:67: error: âqueryDeviceâ was not declared in this scope
zm_local_camera.cpp:801:54: error: âqueryDeviceâ was not declared in this scope
zm_local_camera.cpp:811:92: error: âqueryDeviceâ was not declared in this scope
zm_local_camera.cpp:936:91: error: âqueryDeviceâ was not declared in this scope
zm_local_camera.cpp:961:82: error: âqueryDeviceâ was not declared in this scope
zm_local_camera.cpp:1086:90: error: âqueryDeviceâ was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/tmp/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/ZoneMinder-1.25.0'
make: *** [all] Error 2

Last edited by trumee on Sun Sep 04, 2011 2:01 pm, edited 1 time in total.
trumee
Posts: 69
Joined: Tue Mar 08, 2011 3:33 pm

Re: Compile error

Post by trumee »

Solved that by including #include <limits.h> in src/zm_local_camera.cpp

Hit another one:

Code: Select all


g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include/mysql/include -I/usr/include//include -Wall -Wno-sign-compare -fno-inline -I/usr/include//include  -D__STDC_CONSTANT_MACROS  -g -O2 -MT zm_user.o -MD -MP -MF .deps/zm_user.Tpo -c -o zm_user.o zm_user.cpp
zm_user.cpp: In function âUser* zmLoadAuthUser(const char*, bool)â:
zm_user.cpp:149:31: error: âGCRYPT_VERSIONâ was not declared in this scope
zm_user.cpp:149:46: error: âgcry_check_versionâ was not declared in this scope
zm_user.cpp:153:19: error: âGCRYCTL_DISABLE_SECMEMâ was not declared in this scope
zm_user.cpp:153:45: error: âgcry_controlâ was not declared in this scope
zm_user.cpp:154:19: error: âGCRYCTL_INITIALIZATION_FINISHEDâ was not declared in this scope
zm_user.cpp:199:24: error: âMD5_DIGEST_LENGTHâ was not declared in this scope
zm_user.cpp:219:54: error: âmd5sumâ was not declared in this scope
zm_user.cpp:219:61: error: âMD5â was not declared in this scope
make[2]: *** [zm_user.o] Error 1
make[2]: Leaving directory `/tmp/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/ZoneMinder-1.25.0'
make: *** [all] Error 2


trumee
Posts: 69
Joined: Tue Mar 08, 2011 3:33 pm

Re: Compile error

Post by trumee »

export ZM_SSL_LIB=openssl solved it.
Locked