[lttng-dev] Compilation error in lttng-tools (version.c)

Jonathan Rajotte Julien Jonathan.rajotte-julien at efficios.com
Tue Jun 30 10:21:55 EDT 2015


Hi,

On 2015-06-29 04:52 PM, Daniel Olivier wrote:
> Hi,
>
> Indeed, I'm running autoconf 2.63:
>
> SC-1:~/trace_ea/foss/lttng-tools # autoconf --version
> autoconf (GNU Autoconf) 2.63
> ...
> SC-1:~/trace_ea/foss/lttng-tools # automake --version
> automake (GNU automake) 1.10.1
> ...
>
> The system is SLES11:
> SC-1:~/trace_ea/foss/lttng-tools # uname -a
> Linux SC-1 3.0.101-0.47.52-default #1 SMP Thu Mar 26 10:55:49 UTC 2015 (0e3c7c8) x86_64 x86_64 x86_64 GNU/Linux
> SC-1:~/trace_ea/foss/lttng-tools # cat /etc/issue
>
> Welcome to SUSE Linux Enterprise Server 11 SP3  (x86_64) - Kernel \r (\l).
>
> Is there a way to check the autoconf version (during configuration), in order to make the error more explicit?

We would add a check for autoconf >= 2.64 during the bootstrap sequence. 
But this not solve the issue for SLES11sp3.
I did find people trying to support both 2.63 and >= 2.64 [1] but it has 
some downside. It might be a way to do it.

One way to solve the issue would be to do daily distribution tarballs 
(signed of course) so you dont have to bootstrap everything.

Cheers !

[1] https://github.com/gdnsd/gdnsd/blob/master/configure.ac


>
> Thanks,
> Dan
>
> -----Original Message-----
> From: Jonathan Rajotte Julien [mailto:Jonathan.rajotte-julien at efficios.com]
> Sent: Monday, June 29, 2015 4:33 PM
> To: lttng-dev at lists.lttng.org
> Subject: Re: [lttng-dev] Compilation error in lttng-tools (version.c)
>
> 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
>
>
> _______________________________________________
> 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