public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* compilation error for latest source
@ 2009-09-15  2:56 Wenji Huang
  2009-09-15  3:22 ` Wenji Huang
  0 siblings, 1 reply; 3+ messages in thread
From: Wenji Huang @ 2009-09-15  2:56 UTC (permalink / raw)
  To: SystemTAP

Hi,

I got the compilation error for latest source after configured 
"with-elfutis".

g++ -DHAVE_CONFIG_H -I.  -Wall -Werror -DBINDIR='"/usr/local/bin"' 
-DSYSCONFDIR='"/usr/local/etc"' 
-DPKGDATADIR='"/usr/local/share/systemtap"' 
-DPKGLIBDIR='"/usr/local/libexec/systemtap"' -I./includes 
-I/usr/include/nss3 -I/usr/include/nspr4  -Wall -Werror -g -O2 -Werror 
-fstack-protector-all -D_FORTIFY_SOURCE=2 -MT stap_sign_module-modsign.o 
-MD -MP -MF .deps/stap_sign_module-modsign.Tpo -c -o 
stap_sign_module-modsign.o `test -f 'modsign.cxx' || echo './'`modsign.cxx
In file included from modsign.cxx:23:
session.h:20:28: error: elfutils/libdw.h: No such file or directory
session.h:199: error: ‘Dwarf_Addr’ does not name a type
session.h:200: error: ‘Dwarf_Addr’ does not name a type
session.h:201: error: ‘Dwarf_Addr’ does not name a type

Seems -Iinclude-elfutils should be added to the command line since
session.h embedded in 'modsign.cxx' requires it.

Regards,
Wenji

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

* Re: compilation error for latest source
  2009-09-15  2:56 compilation error for latest source Wenji Huang
@ 2009-09-15  3:22 ` Wenji Huang
  2009-09-15  6:45   ` Wenji Huang
  0 siblings, 1 reply; 3+ messages in thread
From: Wenji Huang @ 2009-09-15  3:22 UTC (permalink / raw)
  To: wenji.huang; +Cc: SystemTAP

Wenji Huang wrote:
> Hi,
> 
> I got the compilation error for latest source after configured 
> "with-elfutis".
> 
> g++ -DHAVE_CONFIG_H -I.  -Wall -Werror -DBINDIR='"/usr/local/bin"' 
> -DSYSCONFDIR='"/usr/local/etc"' 
> -DPKGDATADIR='"/usr/local/share/systemtap"' 
> -DPKGLIBDIR='"/usr/local/libexec/systemtap"' -I./includes 
> -I/usr/include/nss3 -I/usr/include/nspr4  -Wall -Werror -g -O2 -Werror 
> -fstack-protector-all -D_FORTIFY_SOURCE=2 -MT stap_sign_module-modsign.o 
> -MD -MP -MF .deps/stap_sign_module-modsign.Tpo -c -o 
> stap_sign_module-modsign.o `test -f 'modsign.cxx' || echo './'`modsign.cxx
> In file included from modsign.cxx:23:
> session.h:20:28: error: elfutils/libdw.h: No such file or directory
> session.h:199: error: ‘Dwarf_Addr’ does not name a type
> session.h:200: error: ‘Dwarf_Addr’ does not name a type
> session.h:201: error: ‘Dwarf_Addr’ does not name a type
> 
> Seems -Iinclude-elfutils should be added to the command line since
> session.h embedded in 'modsign.cxx' requires it.
In fact, seesion.h is not needed in modsign.cxx. Remove it from #include
can also avoid the error.

diff --git a/modsign.cxx b/modsign.cxx
index 903cc23..a73386e 100644
--- a/modsign.cxx
+++ b/modsign.cxx
@@ -20,7 +20,6 @@
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 
  USA
  */

-#include "session.h"
  #include "util.h"
  #include <iostream>
  #include <string>

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

* Re: compilation error for latest source
  2009-09-15  3:22 ` Wenji Huang
@ 2009-09-15  6:45   ` Wenji Huang
  0 siblings, 0 replies; 3+ messages in thread
From: Wenji Huang @ 2009-09-15  6:45 UTC (permalink / raw)
  To: wenji.huang; +Cc: SystemTAP

Wenji Huang wrote:
>> Seems -Iinclude-elfutils should be added to the command line since
>> session.h embedded in 'modsign.cxx' requires it.
> In fact, seesion.h is not needed in modsign.cxx. Remove it from #include
> can also avoid the error.
> 
> diff --git a/modsign.cxx b/modsign.cxx
> index 903cc23..a73386e 100644
> --- a/modsign.cxx
> +++ b/modsign.cxx
> @@ -20,7 +20,6 @@
>    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 
>  USA
>  */
> 
> -#include "session.h"
>  #include "util.h"
>  #include <iostream>
>  #include <string>
> 
Push the code and everything works fine.

commit 4ab2af3637026550ec28b95e287c6f2f2fc44ac7
Author: Wenji Huang <wenji.huang@oracle.com>
Date:   Tue Sep 15 14:39:51 2009 +0800

     Remove unneeded header file

     * modsign.cxx: Remove including session.h.

Regards,
Wenji

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

end of thread, other threads:[~2009-09-15  6:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-15  2:56 compilation error for latest source Wenji Huang
2009-09-15  3:22 ` Wenji Huang
2009-09-15  6:45   ` Wenji Huang

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).