avutil.h: present but cannot be compiled

Forum for questions and support relating to the 1.24.x releases only.
Locked
ZoneMadener
Posts: 2
Joined: Thu Jun 30, 2011 2:22 am

avutil.h: present but cannot be compiled

Post by ZoneMadener »

Trying to get ZoneMinder up for the first time:

I'm getting the following error when I try to run configure on ZoneMinder:

Code: Select all

configure:7631: checking libavutil/avutil.h usability
configure:7631: g++ -c -g -O2 -I/usr/include  conftest.cpp >&5
In file included from /usr/local/include/libavutil/avutil.h:125,
                 from conftest.cpp:135:
/usr/local/include/libavutil/common.h: In function 'int32_t av_clipl_int32_c(int64_t)':
/usr/local/include/libavutil/common.h:170: error: 'UINT64_C' was not declared in this scope
configure:7631: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
.
.
.
checking libavutil/avutil.h usability... no
checking libavutil/avutil.h presence... yes
configure: WARNING: libavutil/avutil.h: present but cannot be compiled
configure: WARNING: libavutil/avutil.h:     check for missing prerequisite headers?
configure: WARNING: libavutil/avutil.h: see the Autoconf documentation
configure: WARNING: libavutil/avutil.h:     section "Present But Cannot Be Compiled"
configure: WARNING: libavutil/avutil.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------- ##
configure: WARNING:     ## Report this to support@zoneminder. com ##
configure: WARNING:     ## ------------------------------------- ##
checking for libavutil/avutil.h... no
Config:
- Mandriva 2008.1
- ZoneMinder 1.24.4
- ffmpeg 0.8

I've been working on various aspects for days. I'm reluctant to upgrade from Mandriva 2008.1 because of previous configuration work for a different project. So I had to install and upgrade a number of components as prerequisites for ZM including PHP, Perl, libjpg.a, and a few others.

Found a few hits doing searches that referenced Autoconf, but nothing that seemed appropriate.

Update: noticed 100 lines above the first posted issue this:
'UINT64_C' was not declared in this scope

I'll do some searching on that error and see how that goes.

Thanks for any help.
ZoneMadener
Posts: 2
Joined: Thu Jun 30, 2011 2:22 am

Re: avutil.h: present but cannot be compiled

Post by ZoneMadener »

Searching on the UINT64_C bug lead me to this solution:
code.google. com/p/ffmpegsource/issues/detail?id=11

Modified my configure command:
CXXFLAGS=-D__STDC_CONSTANT_MACROS ./configure --with-webdir=/usr/local/httpd/htdocs/zm --with-cgidir=/usr/local/httpd/cgi-bin ZM_SSL_LIB=openssl

Feels pretty good to passed this bug after a weekend and two evenings of banging my head, trying old versions, clean, repeat, change this option, and that. Ok I'm tired and punchy.
Locked