This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compilation error for latest source


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]