compiling bav in 64bit linux

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

leemorrison
Posts: 3
Joined: Wed May 23, 2012 7:55 pm

compiling bav in 64bit linux

Post by leemorrison »

Hi - I need to compile bav to work in my 64 bit environment.

libsa has been installed

I found copies of sendmail.h, mfapi.h, and milter.h and put them in /home/openemm/src/c/lib/libmilter

I am now getting errors:
[openemm@p6zone2 bav]$ make
gcc -I../lib -I/usr/src/sa-1.2.6/include -pthread -c -o bav.o bav.c
In file included from bav.c:29:
../lib/libmilter/mfapi.h:147: error: expected declaration specifiers or ‘...’ before ‘SOCKADDR’
bav.c:208: error: expected declaration specifiers or ‘...’ before ‘SOCKADDR’
bav.c: In function ‘handle_connect’:
bav.c:214: error: ‘hostaddr’ undeclared (first use in this function)
bav.c:214: error: (Each undeclared identifier is reported only once
bav.c:214: error: for each function it appears in.)
bav.c: At top level:
bav.c:331: error: ‘SMFIF_ADDHDRS’ undeclared here (not in a function)
bav.c:331: error: ‘SMFIF_CHGHDRS’ undeclared here (not in a function)
make: *** [bav.o] Error 1

Can you provide instructions on how to compile bav in a 64 bit environment? Cent OS 6.2. Any hints regarding what .h files need to be included would be appreciated

Thanks in advance...
maschoff
Site Admin
Posts: 2608
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: compiling bav in 64bit linux

Post by maschoff »

The source code tarball of OpenEMM contains an Ant build script to compile OpenEMM. This should be a good starting point to check how individual files of OpenEMM are compiled.
OpenEMM Maintainer
Post Reply