two compile pb on 09a4

Hi,

On freebsd v4.10R :

$ ./configure
=> change bison to byacc in src/Makefile
$ make
...
  ./bifcl const.bif
  g++ -I. -I.. -Ilibedit -O -I/var/tmp/libpcap-0.8.3 -c main.cc
  In file included from main.cc:68:
  setsignal.h:26: syntax error before `,'
  main.cc:235: syntax error before `('
  *** Error code 1

on linux kernel v2.4.26 :
$ ./configure
$ make
  ...
  bison -y -d -t -v builtin-func.y
  flex -obif_lex.cc builtin-func.l
  g++ -o bif_lex.o -c bif_lex.cc
  g++ -o bif_parse.o -c bif_parse.cc
  g++ -I. -I.. -Ilibedit -O -I../linux-include -o bif_arg.o -c bif_arg.cc
  bif_arg.cc:3: config.h: No such file or directory
  make[1]: *** [bif_arg.o] Error 1
  make[1]: Leaving directory `/usr/src/bro/bro-pub-0.9a4/src'
  make: *** [all] Error 2

on 09a3, I found config.h, but not found on 09a4.

on linux and freebsd,
$ make distclean
not work ...

No pb before this release.

Regards

Rmkml@Wanadoo.fr

Hi,

Hi,

On freebsd v4.10R :

\./configure => change bison to byacc in src/Makefile make
...
  ./bifcl const.bif
  g++ -I. -I.. -Ilibedit -O -I/var/tmp/libpcap-0.8.3 -c main.cc
  In file included from main.cc:68:
  setsignal.h:26: syntax error before `,'
  main.cc:235: syntax error before `('
  *** Error code 1

I'm confused after your two earlier postings what you're trying to
achieve. In any case, never edit the Makefile, instead see what the
configure script reports and try to fix the problem from there. Changes
to Makefiles (as opposed to Makefile.ins) will get overwritten as soon
as you run the configure script again.

on linux kernel v2.4.26 :
\./configure make
  ...
  bison -y -d -t -v builtin-func.y
  flex -obif_lex.cc builtin-func.l
  g++ -o bif_lex.o -c bif_lex.cc
  g++ -o bif_parse.o -c bif_parse.cc
  g++ -I. -I.. -Ilibedit -O -I../linux-include -o bif_arg.o -c bif_arg.cc
  bif_arg.cc:3: config.h: No such file or directory
  make[1]: *** [bif_arg.o] Error 1
  make[1]: Leaving directory `/usr/src/bro/bro-pub-0.9a4/src'
  make: *** [all] Error 2

on 09a3, I found config.h, but not found on 09a4.

I think something went wrong when you ran configure, and you did not get
a config.h file in the end. What are the last lines printed when you run
configure? They should look roughly like this:

config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating aux/cf-1.1/Makefile
config.status: creating doc/Makefile
config.status: creating doc/ref-manual/Makefile
config.status: creating doc/quick-start/Makefile
config.status: creating doc/user-manual/Makefile
config.status: creating aux/adtrace/Makefile
config.status: creating policy/Makefile
config.status: creating policy/sigs/Makefile
config.status: creating scripts/Makefile
config.status: creating scripts/bro_config
config.status: creating scripts/bro.rc
config.status: creating scripts/localnetMAC.pl
config.status: creating scripts/s2b/Makefile
config.status: creating aux/bdcat/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands

on linux and freebsd,
$ make distclean
not work ...

When something does not work, please *always* include detailed
descriptions of *how* it did not work. We can't help you otherwise.

Cheers,
Christian.