Compiling error on Ubuntu Linux

Thanks for quick answer, Jason!

I am running it on my laptop Compaq Evo N800v, Pentium 4M

This is what I got searching for glibc (it should be OK, shouldn't it?):
apt-cache search glibc
libdb1-compat - The Berkeley database routines [glibc 2.0/2.1 compatibility]
libc6 - GNU C Library: Shared libraries and Timezone data
linux-kernel-headers - Linux Kernel Headers for development
glibc-doc - GNU C Library: Documentation
libc6-pic - GNU C Library: PIC archive library
libnss-db - DB Name Service Module
manpages-dev - Manual pages about using GNU/Linux for development
abicheck - binary compatibility checking tool
devhelp-book-glibc - GNU C Library (glibc) book for the DevHelp system
ja-trans - Japanese gettext message files
kmtrace - a KDE memory leak tracer
libg++2.8.1.3-glibc2.2 - The GNU C++ extension library - runtime version
libgetopt-java - GNU getopt - Java port
libnss-ldap - NSS module for using LDAP as a naming service
libnss-mdns - NSS module for Multicast DNS name resolution
libnss-pgsql1 - name service switch module using PostgreSQL
libstdc++2.10-glibc2.2 - The GNU stdc++ library
libuclibc-dev - A small implementation of the C library
libuclibc0 - A small implementation of the C library
linuxinfo - Displays extended system information
manpages-pl-dev - Polish man pages for developers
perdition-dev - Development libraries and headers for perdition
perdition-ldap - Library to allow perdition to access LDAP based popmaps
perdition-mysql - Library to allow perdition to access MySQL based popmaps
perdition-odbc - Library to allow perdition to access ODBC based popmaps
perdition-postgresql - Library to allow perdition to access PostgreSQL based popmaps
python-utmp - python module for working with utmp
winbind - service to resolve user and group information from Windows NT servers

I set my LD_LIBRARYPATH to :/usr/lib:/lib:/usr/local/lib
(Should it be LD_LIBRARYPATH or LD_LIBRARY_PATH? To be sure i set both)

I have also attached the config.log

I hope you have som spare time to look at this (maybe you don't have such time, like me...:) )

Best regards
Vidar

Vidar,

 If you could check in your config.log and
see what the cause of this error is, that would
be great. Usually this can be tracked back to
a problem with your LD_LIBRARYPATH or your
installed glibc.

Cheers,
jason

(PS, are you running this on a 64 bit machine?)

Vidar Evenrud Seeberg wrote:

> Hello!
> 
> Bro seems like a splendid IDS (after reading Paxson's '99 paper and
> Sommers '03 paper, READMEs etc.). Now I am trying to install it .
> However, when trying to compile Bro 1.0 and also (0.9a11) on my Ubuntu
> Breezy Linux box I get the error message
> 
> "checking size of long long... configure: error: cannot compute sizeof
> (long long), 77 "
> 
> This happens both when i run ./configure and ./configure --disable-localpcap
> I am going to do some work using Bro in my Master's Thesis so I hope I
> can make it work.
> 
> Best regards
> Vidar E. Seeberg,
> MSc student Information Security
> Gjøvik University College, Norway
> 
> _______________________________________________
> Bro mailing list
> [bro@bro-ids.org](mailto:bro@bro-ids.org)
> [http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro](http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro)
  

[config.log|attachment](upload://sqKlR1ZaVDnmaCHotWVqNAfSAJ1.log) (45.4 KB)

Vidar,

I wonder if it is because the particular version of GCC does not handle 'long long'. Could you check which version it is (gcc --version)?

Thanks,
Ruoming

Hello Jason!

Thank you very much. I appreciate your help very much. No problem with
delay.

g++ and libterm did the trick for ./configure. Some additions for your
record, though (if others ask the same question):
The termcap is obsolete in Ubuntu Breezy. I installed the termcap-compat
package. I then had to "cd /usr/lib" and "ln -s /lib/libtermcap.so.2
libtermcap.so" to make "./configure" work. I also exported /usr/lib to
$LD_LIBRARYPATH

But now to some make-problems. This is what I get when "make":
...
In file included from /usr/include/netinet/ether.h:26,
                 from ef.l:13:
../../linux-include/netinet/if_ether.h:41: error: redefinition of
'struct ether_ addr'
../../linux-include/netinet/if_ether.h:48: error: redefinition of
'struct ether_ header'
In file included from ef.l:16:
../../linux-include/netinet/if_ether.h:41: error: redefinition of
'struct ether_ addr'
../../linux-include/netinet/if_ether.h:48: error: redefinition of
'struct ether_ header'
../../linux-include/netinet/if_ether.h:77: error: redefinition of
'struct ether_ arp'
make[4]: *** [ef.o] Error 1
...

Any ideas?

Best regards
Vidar

Jason Lee (DSD staff) wrote: