# Compile Errors in Linux

**URL:** https://community.zeek.org/t/compile-errors-in-linux/17
**Category:** Zeek
**Created:** [September 14, 1998, 10:38pm UTC](https://community.zeek.org/t/compile-errors-in-linux/17 "1998-09-14T22:38:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jordan](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jordan](https://community.zeek.org/u/jordan)
#### Post date: [September 14, 1998, 10:38pm UTC](https://community.zeek.org/t/compile-errors-in-linux/17/1 "1998-09-14T22:38:26Z")

</div>

From olav.kolbu@usit.uio.no Mon Sep 14 15:34:16 1998

&nbsp;&nbsp;\_All\_ the members of the tcphdr and udphdr structs have  
&nbsp;&nbsp;different names under Linux compared to what's expected in the  
&nbsp;&nbsp;source.

Hey, you get what you pay for! 🙂

/jordan

---

<div class="post-metadata">

### Author: ![cmiller](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@cmiller](https://community.zeek.org/u/cmiller)
#### Post date: [September 14, 1998, 10:46pm UTC](https://community.zeek.org/t/compile-errors-in-linux/17/2 "1998-09-14T22:46:11Z")

</div>

Hey, you get what you pay for! 🙂

And you paid how much for BRO? 🙂

At any rate, linux conventions should at least (or most, considering),  
be #ifdef'd in. I'll help; it's way too popular to ignore..

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- chad

---

<div class="post-metadata">

### Author: ![Markus\_Friedl](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@Markus\_Friedl](https://community.zeek.org/u/Markus_Friedl)
#### Post date: [September 15, 1998, 6:13am UTC](https://community.zeek.org/t/compile-errors-in-linux/17/3 "1998-09-15T06:13:19Z")

</div>

a better idea is: get a new version of the linux libc.  
at least version 5.4.46 has standard tcp/ip structures  
like BSD (struct tcphdr, struct ip).  
you may have to define \_\_BSD\_SOURCE for 'struct ip'.

-markus

---

<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/compile-errors-in-linux/17/4 "2022-05-06T15:36:02Z")

</div>


