Compile failure on FreeBSD 10.0

Forum for questions and support relating to the 1.25.x releases only.
Locked
satx
Posts: 2
Joined: Tue Jul 22, 2014 2:58 am

Compile failure on FreeBSD 10.0

Post by satx »

freebsd 10.0

installing with make in /usr/ports/multimedia/zoneminder (ie, zm compiled from source)

grinds on for long for all the libs, utils, etc, then finally it gets to zoneminder:

===> Building for zoneminder-1.25.0_3
/bin/cp /usr/ports/multimedia/zoneminder/files/videodev.h /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.25.0/src
/bin/cp /usr/ports/multimedia/zoneminder/files/zm_fbsd_camera.cpp /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.25.0/src
/usr/bin/touch /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.25.0/src/zm_fbsd_camera.h
/bin/cp /usr/ports/multimedia/zoneminder/files/README.FreeBSD /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.25.0
/usr/bin/make all-recursive
Making all in src
c++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/mysql -Wall -Wno-sign-compare -fno-inline -O2 -pipe -I/usr/local/include/ffmpeg0 -I/usr/local/include -fno-strict-aliasing -MT zm_logger.o -MD -MP -MF .deps/zm_logger.Tpo -c -o zm_logger.o zm_logger.cpp
zm_logger.cpp:113:28: error: use of undeclared identifier 'isatty'
if ( fileno(stderr) && isatty(fileno(stderr)) )
^
zm_logger.cpp:445:62: error: use of undeclared identifier 'getpid'
mLogFile = stringtf( "%s.%05d", tempLogFile.c_str(), getpid() );
^
zm_logger.cpp:526:15: error: use of undeclared identifier 'getpid'
tid = getpid(); // Process id
^
3 errors generated.

thanks
Len
Locked