# Question about installing bro

**URL:** <https://community.zeek.org/t/question-about-installing-bro/215>\
**Category:** Zeek\
**Created:** [February 22, 2002, 9:26pm UTC](https://community.zeek.org/t/question-about-installing-bro/215 "2002-02-22T21:26:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gong\_xin](https://avatars.discourse-cdn.com/v4/letter/g/7feea3/32.png) [@gong\_xin](https://community.zeek.org/u/gong_xin)\
**Post date:** [February 22, 2002, 9:26pm UTC](https://community.zeek.org/t/question-about-installing-bro/215/1 "2002-02-22T21:26:28Z")

</div>

hi: I am new to bro. After downloading the source  
code, I try to install it on my linux machine. First I  
run configure command. The output is as following:

[root@jqxin bro-pub-0.7a90]# configure  
loading cache ./config.cache  
checking host system type... i686-pc-linux-gnu  
checking target system type... i686-pc-linux-gnu  
checking build system type... i686-pc-linux-gnu  
checking Linux kernel version... (cached) 2  
checking for gcc... (cached) gcc  
checking whether the C compiler (gcc ) works... yes  
checking whether the C compiler (gcc ) is a  
cross-compiler... no  
checking whether we are using GNU C... (cached) yes  
checking whether gcc accepts -g... (cached) yes  
checking for bison... (cached) bison -y  
checking for c++... (cached) c++  
checking whether the C++ compiler (c++ ) works... yes  
checking whether the C++ compiler (c++ ) is a  
cross-compiler... no  
checking whether we are using GNU C++... (cached) yes  
checking whether c++ accepts -g... (cached) yes  
checking for flex... (cached) flex  
checking for yywrap in -lfl... (cached) yes  
checking for a BSD compatible install... (cached)  
/usr/bin/install -c  
checking whether make sets ${MAKE}... (cached) yes  
checking for gzip... (cached) gzip  
checking how to run the C preprocessor... (cached) gcc  
-E  
checking for ANSI C header files... (cached) yes  
checking return type of signal handlers... (cached)  
void  
checking for sigset... (cached) yes  
checking whether time.h and sys/time.h may both be  
included... (cached) yes  
checking for memory.h... (cached) yes  
checking if syslog returns int... (cached) no  
checking if we should declare socket and friends...  
(cached) no  
checking if we should declare gettimeofday... (cached)  
yes  
checking for gethostbyname... (cached) yes  
checking for socket... (cached) yes  
checking for putmsg in -lstr... (cached) no  
checking for local pcap library... not found  
checking for pcap\_open\_live in -lpcap... yes  
checking for 8-bit clean memcmp... (cached) no  
checking for strftime... (cached) yes  
checking for strerror... (cached) yes  
creating ./config.status  
creating Makefile  
creating aux/hf/Makefile  
sed: can't read ./aux/hf/Makefile.in: No such file or  
directory  
creating aux/cf/Makefile  
creating config.h  
config.h is unchanged

It seems fine. But when it comes to make. The output  
is as following:

[root@jqxin bro-pub-0.7a90]# make  
c++ -I. -O -Ilinux-include -c Func.cc  
Func.cc: In function `void do\_fmt (const char \*&, Val  
\*, ODesc \*)':  
Func.cc:247: `localtime' undeclared (first use this  
function)  
Func.cc:247: (Each undeclared identifier is reported  
only once for each  
function it appears in.)  
Func.cc:247: `strftime' undeclared (first use this  
function)  
make: \*\*\* [Func.o] Error 1

So I do not know how to tackle this problem. Would you  
please give me some hint? Thanks very much for your  
kind help.

yours,  
Xin

---

<div class="post-metadata">

**Author:** ![Wei\_Li](https://avatars.discourse-cdn.com/v4/letter/w/c5a1d2/32.png) [@Wei\_Li](https://community.zeek.org/u/Wei_Li)\
**Post date:** [February 22, 2002, 10:28pm UTC](https://community.zeek.org/t/question-about-installing-bro/215/2 "2002-02-22T22:28:35Z")

</div>

Same problem comes again... It's because of the library functions time.h is  
using. You can either change the line

#include \<sys/time.h\>

in Func.cc to

#include \<time.h\>

or add this line directly. Then everything is done.

Good luck,  
-Wei Li

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:36pm UTC](https://community.zeek.org/t/question-about-installing-bro/215/3 "2022-05-06T15:36:26Z")

</div>

Closed on May 6, 2022, 3:36pm UTC


