[lttng-dev] Compilation error in lttng-tools (version.c)
Jonathan Rajotte Julien
Jonathan.rajotte-julien at efficios.com
Mon Jun 29 16:33:09 EDT 2015
Hey Daniel,
As you suggested it look like it's not generated on ./configure when it
should.
The problem come from the AC_INIT macro interpretation from Autoconf.
The AC_INIT macro we currently use was
introduced in autoconf 2.64. Look like you are running Autoconf 2.63.
AC_INIT 2.63:
*AC_INIT*(package, version,[bug-report],[tarname])
AC_INIT 2.64:
*AC_INIT*(package, version,[bug-report],[tarname],[url])
Which distribution are you using?
Cheers !
On 2015-06-29 03:52 PM, Daniel Olivier wrote:
> I am getting:
>
> make[3]: Entering directory `/root/trace_ea/foss/lttng-tools/src/bin/lttng'
> depbase=`echo commands/version.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> gcc -DHAVE_CONFIG_H -I../../.. -I../../.. -I../../../src -I../../../include -include config.h -I../../../include -I../../../src -DINSTALL_BIN_PATH=\""/usr/local/bin"\" -Wall -g -O2 -g -fno-strict-aliasing -MT commands/version.o -MD -MP -MF $depbase.Tpo -c -o commands/version.o commands/version.c &&\
> mv -f $depbase.Tpo $depbase.Po
> commands/version.c: In function 'create_version':
> commands/version.c:71: error: 'PACKAGE_URL' undeclared (first use in this function)
> commands/version.c:71: error: (Each undeclared identifier is reported only once
> commands/version.c:71: error: for each function it appears in.)
> make[3]: *** [commands/version.o] Error 1
>
> I gather that PACKAGE_URL should get generated by configure step into config.h (or something)...
>
> Attached is config.log, but I didn't find that it contained any errors pertaining to this.
>
> Anybody ever see this?
>
> Thanks,
> Daniel
>
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Jonathan R. Julien
Efficios
More information about the lttng-dev
mailing list