make error… help….
Posted: Sat Jul 09, 2011 8:06 pm
Hi,
I have a working debian squeeze install, just trying to update to latest svn.
this configure command is good…
./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --with-libarch=lib --with-ffmpeg=/usr/local/bin ZM_SSL_LIB=openssl CPPFLAGS="-D__STDC_CONSTANT_MACROS"
however make come up with this…
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/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 constructor ‘User::User(char**&)’:
zm_user.cpp:38: error: ‘strncpy’ was not declared in this scope
zm_user.cpp:40: error: ‘atoi’ was not declared in this scope
zm_user.cpp:50: error: ‘strlen’ was not declared in this scope
zm_user.cpp: In function ‘User* zmLoadUser(const char*, const char*)’:
zm_user.cpp:117: error: ‘exit’ was not declared in this scope
zm_user.cpp:124: error: ‘exit’ was not declared in this scope
zm_user.cpp: In function ‘User* zmLoadAuthUser(const char*, bool)’:
zm_user.cpp:161: error: ‘getenv’ was not declared in this scope
zm_user.cpp:176: error: ‘exit’ was not declared in this scope
zm_user.cpp:183: error: ‘exit’ was not declared in this scope
zm_user.cpp:220: error: ‘strlen’ was not declared in this scope
zm_user.cpp:228: error: ‘strcmp’ was not declared in this scope
make[2]: *** [zm_user.o] Error 1
make[2]: Leaving directory `/root/zmbuild/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zmbuild/zm'
make: *** [all] Error 2
root@CCTV:~/zmbuild/zm#
I have a working debian squeeze install, just trying to update to latest svn.
this configure command is good…
./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --with-libarch=lib --with-ffmpeg=/usr/local/bin ZM_SSL_LIB=openssl CPPFLAGS="-D__STDC_CONSTANT_MACROS"
however make come up with this…
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/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 constructor ‘User::User(char**&)’:
zm_user.cpp:38: error: ‘strncpy’ was not declared in this scope
zm_user.cpp:40: error: ‘atoi’ was not declared in this scope
zm_user.cpp:50: error: ‘strlen’ was not declared in this scope
zm_user.cpp: In function ‘User* zmLoadUser(const char*, const char*)’:
zm_user.cpp:117: error: ‘exit’ was not declared in this scope
zm_user.cpp:124: error: ‘exit’ was not declared in this scope
zm_user.cpp: In function ‘User* zmLoadAuthUser(const char*, bool)’:
zm_user.cpp:161: error: ‘getenv’ was not declared in this scope
zm_user.cpp:176: error: ‘exit’ was not declared in this scope
zm_user.cpp:183: error: ‘exit’ was not declared in this scope
zm_user.cpp:220: error: ‘strlen’ was not declared in this scope
zm_user.cpp:228: error: ‘strcmp’ was not declared in this scope
make[2]: *** [zm_user.o] Error 1
make[2]: Leaving directory `/root/zmbuild/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zmbuild/zm'
make: *** [all] Error 2
root@CCTV:~/zmbuild/zm#