PDA

View Full Version : Compiling Source Code Under OS X?




unsaltedrhino
Apr 12, 2007, 09:56 AM
Hi all,

I'm trying to compile and install the following source;

http://fwlogwatch.inside-security.de/

Now, I understand that OS X is built on FreeBSD (right?!) which the above is known to run on but I cannot figure out how to do it (only just started to delve into the Unix underpinnings and swamped already)! There isn't a configure script with the source, so I tried navigating to the extracted source folder in the Terminal and typing;

make && sudo make install

This didn't work but then I noticed in the Makefile that it is set up for Linux, and for FreeBSD you have to uncomment the appropriate lines. So I did this and tried to make again, but this resulted in the following;

flex -B -t cisco_ios.l > cisco_ios.c
gcc -DHAVE_ZLIB -DHAVE_GETTEXT -pipe -O2 -Wall -I/usr/local/include -c -o cisco_ios.o cisco_ios.c
In file included from cisco_ios.l:14:
main.h:20:21: error: libintl.h: No such file or directory
make: *** [cisco_ios.o] Error 1
rm cisco_ios.c

Anyone know what I might be doing wrong or does anyone have an idiot proof method to help me install this piece of software??

Thanks in advance!
-d



robbieduncan
Apr 12, 2007, 10:04 AM
It would appear that you don't have a required library so the code won't compile. OSX has a BSD userland but it is not really built on BSD. It does not have the same libraries installed by default or the same library linking system.

unsaltedrhino
Apr 12, 2007, 10:25 AM
Hmmm right.. Would a FreeBSD package (http://www.freebsd.org/ports/security.html#fwlogwatch-1.1) be any easier?

robbieduncan
Apr 12, 2007, 10:56 AM
Hmmm right.. Would a FreeBSD package (http://www.freebsd.org/ports/security.html#fwlogwatch-1.1) be any easier?

OSX is not FreeBSD. It might work but it probably would not.