Issues with compiling zm on ubuntu

Forum for questions and support relating to the 1.24.x releases only.
Locked
miszka
Posts: 3
Joined: Thu Jun 30, 2011 8:44 pm

Issues with compiling zm on ubuntu

Post by miszka »

Hi,

Mine installation was step by step with this:
http://www.zoneminder.com/wiki/index.ph ... _Cambozola

Only difference is version of libjpeg-turbo (in mine case i386).

On step:

Code: Select all

make

of ZoneMinder i have:

Code: Select all

    zm_user.cpp: In constructor ‘User::User(char**&)’:
    zm_user.cpp:38:54: error: ‘strncpy’ was not declared in this scope
    zm_user.cpp:40:39: error: ‘atoi’ was not declared in this scope
    zm_user.cpp:50:47: error: ‘strlen’ was not declared in this scope
    zm_user.cpp: In function ‘User* zmLoadUser(const char*, const char*)’:
    zm_user.cpp:117:32: error: ‘exit’ was not declared in this scope
    zm_user.cpp:124:32: error: ‘exit’ was not declared in this scope
    zm_user.cpp: In function ‘User* zmLoadAuthUser(const char*, bool)’:
    zm_user.cpp:161:39: error: ‘getenv’ was not declared in this scope
    zm_user.cpp:176:32: error: ‘exit’ was not declared in this scope
    zm_user.cpp:183:32: error: ‘exit’ was not declared in this scope
    zm_user.cpp:220:51: error: ‘strlen’ was not declared in this scope
    zm_user.cpp:228:33: error: ‘strcmp’ was not declared in this scope
    make[2]: *** [zm_user.o] Error 1
    make[2]: Leaving directory `/usr/src/zm/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/src/zm'
    make: *** [all] Error 2
    root@bart:/usr/src/zm# 
What I'm doing wrong?
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Issues with compiling zm on ubuntu

Post by mastertheknife »

Try adding this to the start of the file:

Code: Select all

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
mastertheknife.
Kfir Itzhak.
miszka
Posts: 3
Joined: Thu Jun 30, 2011 8:44 pm

Re: Issues with compiling zm on ubuntu

Post by miszka »

Hi,

Thanks for the replay.

I did what u suggest:
prntscr. com/26qk3

And:
prntscr. com/26qkt

:(
miszka
Posts: 3
Joined: Thu Jun 30, 2011 8:44 pm

Re: Issues with compiling zm on ubuntu

Post by miszka »

Any ideas?
Locked