Compiling Source Code Under OS X?

Discussion in 'Mac Programming' started by unsaltedrhino, Apr 12, 2007.

  1. unsaltedrhino macrumors member

    unsaltedrhino

    Joined:
    May 3, 2006
    Location:
    Madrid, Spain
    #1
    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;

    Code:
    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;

    Code:
    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
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    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.
     
  3. unsaltedrhino thread starter macrumors member

    unsaltedrhino

    Joined:
    May 3, 2006
    Location:
    Madrid, Spain
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4

Share This Page