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#
make error… help….
-
- Posts: 1
- Joined: Tue Jul 12, 2011 10:25 pm
Re: make error… help….
I got this and fixed it by adding two includes to the file "zm_user.cpp" in the "src" dir:
after line number 25. However, after "fixing" that, I'm getting other errors during the make process:
zm_mpeg.o: In function `VideoStream::~VideoStream()':
zm_mpeg.cpp:(.text+0x407): undefined reference to `avio_close'
zm_mpeg.o: In function `VideoStream::~VideoStream()':
zm_mpeg.cpp:(.text+0x4d7): undefined reference to `avio_close'
zm_mpeg.o: In function `VideoStream::OpenStream()':
zm_mpeg.cpp:(.text+0x668): undefined reference to `avio_open'
collect2: ld returned 1 exit status
Code: Select all
#include <stdlib.h>
#include <cstring>
zm_mpeg.o: In function `VideoStream::~VideoStream()':
zm_mpeg.cpp:(.text+0x407): undefined reference to `avio_close'
zm_mpeg.o: In function `VideoStream::~VideoStream()':
zm_mpeg.cpp:(.text+0x4d7): undefined reference to `avio_close'
zm_mpeg.o: In function `VideoStream::OpenStream()':
zm_mpeg.cpp:(.text+0x668): undefined reference to `avio_open'
collect2: ld returned 1 exit status
-
- Posts: 163
- Joined: Fri Oct 22, 2010 11:21 am
Re: make error… help….
So you are still not able to run Make ?nobleiceman wrote:I got this and fixed it by adding two includes to the file "zm_user.cpp" in the "src" dir:after line number 25. However, after "fixing" that, I'm getting other errors during the make process:Code: Select all
#include <stdlib.h> #include <cstring>
zm_mpeg.o: In function `VideoStream::~VideoStream()':
zm_mpeg.cpp:(.text+0x407): undefined reference to `avio_close'
zm_mpeg.o: In function `VideoStream::~VideoStream()':
zm_mpeg.cpp:(.text+0x4d7): undefined reference to `avio_close'
zm_mpeg.o: In function `VideoStream::OpenStream()':
zm_mpeg.cpp:(.text+0x668): undefined reference to `avio_open'
collect2: ld returned 1 exit status