[Systrace] [lists@damokles.de: compile problems under linux]

Caspar Clemens Mierau lists at damokles.de
Wed Jan 7 22:09:21 EST 2004


Hi there,

I'm trying to set up systrace under linux.

Systrace: usr-systrace-2004-01-01
Kernel: 2.4.24 (Debian woody)
libevent: 0.7c
autoconf: 2.50

Compiling begins and interrupts with:

---
gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall  -c filter.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall  -c intercept-translate.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall  -c intercept.c
intercept.c: In function `normalize_filename':
intercept.c:771: warning: control reaches end of non-void function
gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall  -c util.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall  -c policy.c
policy.c: In function `systrace_templatedir':
policy.c:466: warning: control reaches end of non-void function
gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall  -c systrace-error.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall  -c systrace-translate.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall  -c systrace.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall  -c alias.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall  -c parse.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall  -c lex.c
lex.l: In function `yylex':
lex.l:124: warning: implicit declaration of function `strlcat'
lex.l: At top level:
lex.yy.c:1335: warning: `yyunput' defined but not used
gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall  -c cradle.c
cradle.c: In function `mkunserv':
cradle.c:113: warning: implicit declaration of function `strlcpy'
cradle.c: In function `cradle_server':
cradle.c:176: warning: implicit declaration of function `setproctitle'
gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall  -c linux-syscalls.c
linux-syscalls.c: In function `linux_replace':
linux-syscalls.c:356: incompatible type for argument 1 of `memset'
linux-syscalls.c: At top level:
linux-syscalls.c:520: warning: initialization from incompatible pointer
type
make: *** [linux-syscalls.o] Error 1
---

I googled around and noticed that gcc often dumps erros on memset and
tried a hint on chaning line 356 of linux-syscalls.c to:

"memset(&replace, 0, sizeof(replace));"

Dunno what this makes but it enables systrace to complete compiling.
Sadfully systrace is starting but keeps on hanging around (though
actually creating a ~/.systrace dir).

Any ideas?

ccm.


----- End forwarded message -----

-- 
Caspar Clemens Mierau
Rosenthaler Straße 40/41h
10178 Berlin

Tel.: 0171-1408435


More information about the systrace mailing list