Fixed compile problems and bumped to version 0.81.4

This commit is contained in:
Michiel Broek 2005-10-23 12:19:45 +00:00
parent a39ff494cf
commit 3f4c2aa548
6 changed files with 34 additions and 17 deletions

View File

@ -1,11 +1,14 @@
$Id$ $Id$
WARNING, NOT FULLY TESTED YET ON 64 BIT PLATFORMS! (but it's close).
v0.81.3 17-Oct-2005 v0.81.4 23-Oct-2005
v0.81.3 17-Oct-2005 - 23-Oct-2005
mbcico: mbcico:
Changed uLongf to unsigned long in hydra driver. Fixed compile errors when both zlib and bzlib development
packages are not installed on some distro's.
mbsetup: mbsetup:
SuSE compile fix. SuSE compile fix.

View File

@ -16,7 +16,7 @@ and host systems.
Internal mail format is JAM (c) messagebase. Internal mail format is JAM (c) messagebase.
Full tic file support, including extended Full tic file support, including extended
tic files. tic files.
OS: GNU/Linux, NetBSD and FreeBSD. OS: GNU/Linux and *BSD, 32/64 bit versions.
Originating sites 2:280/2802@fidonet and Originating sites 2:280/2802@fidonet and
http://www.mbse.dds.nl/ http://www.mbse.dds.nl/
Copyright by Michiel Broek. Copyright by Michiel Broek.

2
TODO
View File

@ -1,6 +1,6 @@
$Id$ $Id$
MBSE BBS V0.81.3 TODO list. MBSE BBS V0.81.4 TODO list.
--------------------------- ---------------------------
These are a list of things that must be implemented one way or These are a list of things that must be implemented one way or

2
configure vendored
View File

@ -1305,7 +1305,7 @@ SUBDIRS="lib mbcico mbfido mbmon mbsebbs mbutils mbnntp mbtask mbsetup unix lang
PACKAGE="mbsebbs" PACKAGE="mbsebbs"
MAJOR="0" MAJOR="0"
MINOR="81" MINOR="81"
REVISION="3" REVISION="4"
VERSION="$MAJOR.$MINOR.$REVISION" VERSION="$MAJOR.$MINOR.$REVISION"
COPYRIGHT="Copyright (C) 1997-2005 Michiel Broek, All Rights Reserved" COPYRIGHT="Copyright (C) 1997-2005 Michiel Broek, All Rights Reserved"
SHORTRIGHT="Copyright (C) 1997-2005 M. Broek" SHORTRIGHT="Copyright (C) 1997-2005 M. Broek"

View File

@ -13,7 +13,7 @@ dnl
PACKAGE="mbsebbs" PACKAGE="mbsebbs"
MAJOR="0" MAJOR="0"
MINOR="81" MINOR="81"
REVISION="3" REVISION="4"
VERSION="$MAJOR.$MINOR.$REVISION" VERSION="$MAJOR.$MINOR.$REVISION"
COPYRIGHT="Copyright (C) 1997-2005 Michiel Broek, All Rights Reserved" COPYRIGHT="Copyright (C) 1997-2005 Michiel Broek, All Rights Reserved"
SHORTRIGHT="Copyright (C) 1997-2005 M. Broek" SHORTRIGHT="Copyright (C) 1997-2005 M. Broek"

View File

@ -94,7 +94,9 @@ typedef enum {CompNone, CompGZ, CompBZ2, CompPLZ} CompType;
// static char *txstate[] = { (char *)"TxGNF", (char *)"TxTryR", (char *)"TxReadS", (char *)"TxWLA", (char *)"TxDone" }; // static char *txstate[] = { (char *)"TxGNF", (char *)"TxTryR", (char *)"TxReadS", (char *)"TxWLA", (char *)"TxDone" };
static char *rxstate[] = { (char *)"RxWaitF", (char *)"RxAccF", (char *)"RxReceD", static char *rxstate[] = { (char *)"RxWaitF", (char *)"RxAccF", (char *)"RxReceD",
(char *)"RxWriteD", (char *)"RxEOB", (char *)"RxDone" }; (char *)"RxWriteD", (char *)"RxEOB", (char *)"RxDone" };
#if defined(HAVE_ZLIB_H) || defined(HAVE_BZLIB_H)
static char *opstate[] = { (char *)"No", (char *)"Can", (char *)"Want", (char *)"Active" }; static char *opstate[] = { (char *)"No", (char *)"Can", (char *)"Want", (char *)"Active" };
#endif
static char *cpstate[] = { (char *)"No", (char *)"GZ", (char *)"BZ2", (char *)"PLZ" }; static char *cpstate[] = { (char *)"No", (char *)"GZ", (char *)"BZ2", (char *)"PLZ" };
@ -113,8 +115,6 @@ struct timeval rxtvstart; /* Receiver start time */
struct timeval rxtvend; /* Receiver end time */ struct timeval rxtvend; /* Receiver end time */
#if defined(HAVE_ZLIB_H) || defined(HAVE_BZLIB_H)
int compress_init(int type); int compress_init(int type);
int do_compress(int type, char *dst, int *dst_len, char *src, int *src_len, int finish, void *data); int do_compress(int type, char *dst, int *dst_len, char *src, int *src_len, int finish, void *data);
void compress_deinit(int type, void *data); void compress_deinit(int type, void *data);
@ -126,8 +126,6 @@ int decompress_abort(int type, void *data);
#define ZBLKSIZE 1024 /* read/write file buffer size */ #define ZBLKSIZE 1024 /* read/write file buffer size */
#endif
struct binkprec { struct binkprec {
int Role; /* 1=orig, 0=answer */ int Role; /* 1=orig, 0=answer */
@ -188,7 +186,7 @@ struct binkprec {
int buggyIrex; /* Buggy Irex detected */ int buggyIrex; /* Buggy Irex detected */
int txcpos; /* Transmitter compressed position */ int txcpos; /* Transmitter compressed position */
#if defined(HAVE_ZLIB_H) || defined(HAVE_BZLIB2_H) #if defined(HAVE_ZLIB_H) || defined(HAVE_BZLIB_H)
int EXTCMDwe; /* EXTCMD flag */ int EXTCMDwe; /* EXTCMD flag */
int EXTCMDthey; int EXTCMDthey;
#endif #endif
@ -272,7 +270,9 @@ int binkp(int role)
bp.remote_EOB = FALSE; bp.remote_EOB = FALSE;
bp.msgs_on_queue = 0; bp.msgs_on_queue = 0;
bp.cmpblksize = SND_BLKSIZE; bp.cmpblksize = SND_BLKSIZE;
#if defined(HAVE_ZLIB_H) || defined(HAVE_BZLIB_H)
bp.EXTCMDwe = bp.EXTCMDthey = No; /* Default */ bp.EXTCMDwe = bp.EXTCMDthey = No; /* Default */
#endif
#ifdef HAVE_ZLIB_H #ifdef HAVE_ZLIB_H
if (localoptions & NOPLZ) if (localoptions & NOPLZ)
bp.PLZthey = bp.PLZwe = No; bp.PLZthey = bp.PLZwe = No;
@ -1415,8 +1415,10 @@ TrType binkp_receiver(void)
TrType binkp_transmitter(void) TrType binkp_transmitter(void)
{ {
int rc = 0, eof = FALSE; int rc = 0, eof = FALSE, rc1 = 0;
int sz, rc1 = 0; #if defined(HAVE_ZLIB_H) || defined(HAVE_BZLIB_H)
int sz;
#endif
char *extra; char *extra;
char *nonhold_mail; char *nonhold_mail;
fa_list *eff_remote; fa_list *eff_remote;
@ -1987,9 +1989,11 @@ int binkp_banner(int originate)
*/ */
int binkp_send_comp_opts(void) int binkp_send_comp_opts(void)
{ {
int rc = 0, plz = FALSE, gz = FALSE, bz2 = FALSE; int rc = 0;
#if defined(HAVE_ZLIB_H) || defined(HAVE_BZLIB_H)
int plz = FALSE, gz = FALSE, bz2 = FALSE;
char *p = NULL; char *p = NULL;
#ifdef HAVE_ZLIB_H #ifdef HAVE_ZLIB_H
if ((bp.GZwe == Can) || (bp.GZthey == Can) || (bp.GZthey == Want)) { if ((bp.GZwe == Can) || (bp.GZthey == Can) || (bp.GZthey == Want)) {
gz = TRUE; gz = TRUE;
@ -2025,6 +2029,7 @@ int binkp_send_comp_opts(void)
rc = binkp_send_command(MM_NUL,"%s", p); rc = binkp_send_command(MM_NUL,"%s", p);
free(p); free(p);
} }
#endif
return rc; return rc;
} }
@ -2033,11 +2038,13 @@ int binkp_send_comp_opts(void)
void binkp_set_comp_state(void) void binkp_set_comp_state(void)
{ {
#if defined(HAVE_ZLIB_H) || defined(HAVE_BZLIB_H)
Syslog('b', "Binkp: EXTCMD they=%s we=%s", opstate[bp.EXTCMDthey], opstate[bp.EXTCMDwe]); Syslog('b', "Binkp: EXTCMD they=%s we=%s", opstate[bp.EXTCMDthey], opstate[bp.EXTCMDwe]);
if ((bp.EXTCMDthey == Want) && (bp.EXTCMDwe == Want)) { if ((bp.EXTCMDthey == Want) && (bp.EXTCMDwe == Want)) {
Syslog('+', "Binkp: EXTCMD is active"); Syslog('+', "Binkp: EXTCMD is active");
bp.EXTCMDthey = bp.EXTCMDwe = Active; bp.EXTCMDthey = bp.EXTCMDwe = Active;
} }
#endif
#ifdef HAVE_BZLIB_H #ifdef HAVE_BZLIB_H
Syslog('b', "Binkp: BZ2 they=%s we=%s", opstate[bp.BZ2they], opstate[bp.BZ2we]); Syslog('b', "Binkp: BZ2 they=%s we=%s", opstate[bp.BZ2they], opstate[bp.BZ2we]);
@ -2182,13 +2189,14 @@ void parse_m_nul(char *msg)
free(bp.MD_Challenge); free(bp.MD_Challenge);
bp.MD_Challenge = MD_getChallenge(q, NULL); bp.MD_Challenge = MD_getChallenge(q, NULL);
} }
#if defined(HAVE_ZLIB_H) || defined(HAVE_BZLIB_H)
} else if (strcmp(q, (char *)"EXTCMD") == 0) { } else if (strcmp(q, (char *)"EXTCMD") == 0) {
Syslog('b', "Binkp: remote wants EXTCMD mode"); Syslog('b', "Binkp: remote wants EXTCMD mode");
if (bp.EXTCMDthey == Can) { if (bp.EXTCMDthey == Can) {
bp.EXTCMDthey = Want; bp.EXTCMDthey = Want;
binkp_set_comp_state(); binkp_set_comp_state();
} }
#endif
#ifdef HAVE_BZLIB_H #ifdef HAVE_BZLIB_H
} else if (strcmp(q, (char *)"BZ2") == 0) { } else if (strcmp(q, (char *)"BZ2") == 0) {
Syslog('b', "Binkp: remote wants BZ2 mode"); Syslog('b', "Binkp: remote wants BZ2 mode");
@ -2814,7 +2822,9 @@ void binkp_clear_filelist(int rc)
int compress_init(int type) int compress_init(int type)
{ {
#if defined(HAVE_ZLIB_H) || defined(HAVE_BZLIB_H)
int lvl; int lvl;
#endif
switch (type) { switch (type) {
#ifdef HAVE_BZLIB_H #ifdef HAVE_BZLIB_H
@ -2850,7 +2860,9 @@ int compress_init(int type)
int do_compress(int type, char *dst, int *dst_len, char *src, int *src_len, int finish, void *data) int do_compress(int type, char *dst, int *dst_len, char *src, int *src_len, int finish, void *data)
{ {
#if defined(HAVE_ZLIB_H) || defined(HAVE_BZLIB_H)
int rc; int rc;
#endif
switch (type) { switch (type) {
#ifdef HAVE_BZLIB_H #ifdef HAVE_BZLIB_H
@ -2971,7 +2983,9 @@ int decompress_init(int type)
int do_decompress(int type, char *dst, int *dst_len, char *src, int *src_len, void *data) int do_decompress(int type, char *dst, int *dst_len, char *src, int *src_len, void *data)
{ {
#if defined(HAVE_ZLIB_H) || defined(HAVE_BZLIB_H)
int rc; int rc;
#endif
switch (type) { switch (type) {
#ifdef HAVE_BZLIB_H #ifdef HAVE_BZLIB_H