public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* compile error:" unused variable ‘root’ "
@ 2013-08-09  5:02 Hatt Tom
  2013-08-09 13:17 ` Lukas Berk
  2013-08-16 15:04 ` =?windows-1252?Q?compile_error=3A=22_unused_variable_=91root=92_=22?= Frank Ch. Eigler
  0 siblings, 2 replies; 10+ messages in thread
From: Hatt Tom @ 2013-08-09  5:02 UTC (permalink / raw)
  To: systemtap

hi:

   I am compiling systemstap from source ,after configure well , I
type 'make' to compile .
   it print:
       tapset-method.cxx:431:15: error: unused variable ‘root’
[-Werror=unused-variable]
      tapset-method.cxx:432:26: error: unused variable ‘builder’
[-Werror=unused-variable]

how do I fix this issure?

thanks!

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: compile error:" unused variable ‘root’ "
  2013-08-09  5:02 compile error:" unused variable ‘root’ " Hatt Tom
@ 2013-08-09 13:17 ` Lukas Berk
  2013-08-10  5:20   ` Hatt Tom
  2013-08-16 15:04 ` =?windows-1252?Q?compile_error=3A=22_unused_variable_=91root=92_=22?= Frank Ch. Eigler
  1 sibling, 1 reply; 10+ messages in thread
From: Lukas Berk @ 2013-08-09 13:17 UTC (permalink / raw)
  To: Hatt Tom; +Cc: systemtap

[-- Attachment #1: Type: text/plain, Size: 682 bytes --]

Hey,

>    I am compiling systemstap from source ,after configure well , I
> type 'make' to compile .
>    it print:
>        tapset-method.cxx:431:15: error: unused variable ‘root’
> [-Werror=unused-variable]
>       tapset-method.cxx:432:26: error: unused variable ‘builder’
> [-Werror=unused-variable]
> 

I can't seem to reproduce the issue on fedora 19 with git head, what
sources are you using and with what distribution? Also, I'm wondering if
java support was enabled, in your build directory would you mind running 
`$grep "HAVE_JAVA" config.h` and pasting the output?  Did you configure
systemtap with any special java options?

Thanks,

Lukas

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: compile error:" unused variable ‘root’ "
  2013-08-09 13:17 ` Lukas Berk
@ 2013-08-10  5:20   ` Hatt Tom
  2013-08-13 14:36     ` David Smith
  0 siblings, 1 reply; 10+ messages in thread
From: Hatt Tom @ 2013-08-10  5:20 UTC (permalink / raw)
  To: systemtap

thanks for reply!

I do not need jave sipprot ,my distribution is ubuntu-server ,I have
downloaded systemtap source from its offcial website .

Best Regards!

2013/8/9 Lukas Berk <lberk@redhat.com>:
> Hey,
>
>>    I am compiling systemstap from source ,after configure well , I
>> type 'make' to compile .
>>    it print:
>>        tapset-method.cxx:431:15: error: unused variable ‘root’
>> [-Werror=unused-variable]
>>       tapset-method.cxx:432:26: error: unused variable ‘builder’
>> [-Werror=unused-variable]
>>
>
> I can't seem to reproduce the issue on fedora 19 with git head, what
> sources are you using and with what distribution? Also, I'm wondering if
> java support was enabled, in your build directory would you mind running
> `$grep "HAVE_JAVA" config.h` and pasting the output?  Did you configure
> systemtap with any special java options?
>
> Thanks,
>
> Lukas

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: compile error:" unused variable ‘root’ "
  2013-08-10  5:20   ` Hatt Tom
@ 2013-08-13 14:36     ` David Smith
  2013-08-14  4:18       ` Hatt Tom
  0 siblings, 1 reply; 10+ messages in thread
From: David Smith @ 2013-08-13 14:36 UTC (permalink / raw)
  To: Hatt Tom; +Cc: systemtap

On 08/10/2013 12:20 AM, Hatt Tom wrote:
> thanks for reply!
> 
> I do not need jave sipprot ,my distribution is ubuntu-server ,I have
> downloaded systemtap source from its offcial website .

Do you mean you downloaded a source release tarball or did you download
the git tree?

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: compile error:" unused variable ‘root’ "
  2013-08-13 14:36     ` David Smith
@ 2013-08-14  4:18       ` Hatt Tom
  2013-08-14 13:26         ` David Smith
  0 siblings, 1 reply; 10+ messages in thread
From: Hatt Tom @ 2013-08-14  4:18 UTC (permalink / raw)
  To: David Smith, systemtap

I only have downloaded the tarball .then compile in the source dir .


Thanks!

2013/8/13 David Smith <dsmith@redhat.com>:
> On 08/10/2013 12:20 AM, Hatt Tom wrote:
>> thanks for reply!
>>
>> I do not need jave sipprot ,my distribution is ubuntu-server ,I have
>> downloaded systemtap source from its offcial website .
>
> Do you mean you downloaded a source release tarball or did you download
> the git tree?
>
> --
> David Smith
> dsmith@redhat.com
> Red Hat
> http://www.redhat.com
> 256.217.0141 (direct)
> 256.837.0057 (fax)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: compile error:" unused variable ‘root’ "
  2013-08-14  4:18       ` Hatt Tom
@ 2013-08-14 13:26         ` David Smith
  2013-08-18  3:19           ` Hatt Tom
  0 siblings, 1 reply; 10+ messages in thread
From: David Smith @ 2013-08-14 13:26 UTC (permalink / raw)
  To: Hatt Tom; +Cc: systemtap

On 08/13/2013 11:18 PM, Hatt Tom wrote:
> I only have downloaded the tarball .then compile in the source dir .

OK, then your compile error is really odd. If you look at that code, you
can clearly see that those variables are being used.

One workaround might be to configure with '--without-java'. At that
point, the code with unused variables should be compiled out.

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: =?windows-1252?Q?compile_error=3A=22_unused_variable_=91root=92_=22?=
  2013-08-09  5:02 compile error:" unused variable ‘root’ " Hatt Tom
  2013-08-09 13:17 ` Lukas Berk
@ 2013-08-16 15:04 ` Frank Ch. Eigler
  1 sibling, 0 replies; 10+ messages in thread
From: Frank Ch. Eigler @ 2013-08-16 15:04 UTC (permalink / raw)
  To: Hatt Tom; +Cc: systemtap

Hatt Tom <net.study.sea@gmail.com> writes:

> [...]
> how do I fix this issure?

git commit 47a606a7 fixed this in the 2.2.1 release (and later).

- FChE

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: compile error:" unused variable ‘root’ "
  2013-08-14 13:26         ` David Smith
@ 2013-08-18  3:19           ` Hatt Tom
  2013-08-19 13:39             ` Lukas Berk
  0 siblings, 1 reply; 10+ messages in thread
From: Hatt Tom @ 2013-08-18  3:19 UTC (permalink / raw)
  To: systemtap, Lukas Berk, David Smith

hi:

  I have configure it without-jave ,but it still report the same error:




2013/8/14 David Smith <dsmith@redhat.com>:
> On 08/13/2013 11:18 PM, Hatt Tom wrote:
>> I only have downloaded the tarball .then compile in the source dir .
>
> OK, then your compile error is really odd. If you look at that code, you
> can clearly see that those variables are being used.
>
> One workaround might be to configure with '--without-java'. At that
> point, the code with unused variables should be compiled out.
>
> --
> David Smith
> dsmith@redhat.com
> Red Hat
> http://www.redhat.com
> 256.217.0141 (direct)
> 256.837.0057 (fax)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: compile error:" unused variable ‘root’ "
  2013-08-18  3:19           ` Hatt Tom
@ 2013-08-19 13:39             ` Lukas Berk
  2013-08-20  3:04               ` Hatt Tom
  0 siblings, 1 reply; 10+ messages in thread
From: Lukas Berk @ 2013-08-19 13:39 UTC (permalink / raw)
  To: Hatt Tom; +Cc: systemtap, David Smith

[-- Attachment #1: Type: text/plain, Size: 517 bytes --]

Hey,

I installed a ubuntu-server vm over the weekend and was still unable to
reproduce the error (without any java options or installing any specific
java packages).  What tarball are you using to compile systemtap?  I'm
wondering if its older than 2.2.1 like Frank mentioned[1].  

Cheers,

Lukas

[1] - http://article.gmane.org/gmane.linux.systemtap/21002

* Hatt Tom <net.study.sea@gmail.com> [2013-08-17 23:19]:
> hi:
> 
>   I have configure it without-jave ,but it still report the same error:

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: compile error:" unused variable ‘root’ "
  2013-08-19 13:39             ` Lukas Berk
@ 2013-08-20  3:04               ` Hatt Tom
  0 siblings, 0 replies; 10+ messages in thread
From: Hatt Tom @ 2013-08-20  3:04 UTC (permalink / raw)
  To: Lukas Berk, systemtap

I am using systemtap-2.2  and ubuntu -server LTS 12.04

Best Regards!

2013/8/19 Lukas Berk <lberk@redhat.com>:
> Hey,
>
> I installed a ubuntu-server vm over the weekend and was still unable to
> reproduce the error (without any java options or installing any specific
> java packages).  What tarball are you using to compile systemtap?  I'm
> wondering if its older than 2.2.1 like Frank mentioned[1].
>
> Cheers,
>
> Lukas
>
> [1] - http://article.gmane.org/gmane.linux.systemtap/21002
>
> * Hatt Tom <net.study.sea@gmail.com> [2013-08-17 23:19]:
>> hi:
>>
>>   I have configure it without-jave ,but it still report the same error:

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-08-20  3:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-09  5:02 compile error:" unused variable ‘root’ " Hatt Tom
2013-08-09 13:17 ` Lukas Berk
2013-08-10  5:20   ` Hatt Tom
2013-08-13 14:36     ` David Smith
2013-08-14  4:18       ` Hatt Tom
2013-08-14 13:26         ` David Smith
2013-08-18  3:19           ` Hatt Tom
2013-08-19 13:39             ` Lukas Berk
2013-08-20  3:04               ` Hatt Tom
2013-08-16 15:04 ` =?windows-1252?Q?compile_error=3A=22_unused_variable_=91root=92_=22?= Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).