Error "undeclared identifier 'isatty'" on FreeBSD 10-Stable

Forum for questions and support relating to the 1.25.x releases only.
Locked
trigger
Posts: 3
Joined: Wed May 28, 2014 3:04 am

Error "undeclared identifier 'isatty'" on FreeBSD 10-Stable

Post by trigger »

Good day!

I'm try to build my server with zoneminder on FreeBSD. And it gets me such error:

Code: Select all

--- zm_logger.o ---
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.
*** [zm_logger.o] Error code 1
What libs or dependencies are missing?

Thanks!
emoxam
Posts: 4
Joined: Tue May 27, 2014 9:09 am

Re: Error "undeclared identifier 'isatty'" on FreeBSD 10-Sta

Post by emoxam »

as you asked

pkg_version -v | grep gcc
and
pkg_info | grep gcc
don't show anything

cc -v

Code: Select all

Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]
trigger
Posts: 3
Joined: Wed May 28, 2014 3:04 am

Re: Error "undeclared identifier 'isatty'" on FreeBSD 10-Sta

Post by trigger »

Thanks again, I will rebuild system with gcc and hope it helps. And after successfully ZM installing will be solve your problem together :)
Locked