Skip to content
Merged
3 changes: 3 additions & 0 deletions aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,9 @@ AC_DEFUN([EGG_CHECK_MODULE_SUPPORT],
EGG_DARWIN_BUNDLE
EGG_APPEND_VAR(MODULE_XLIBS, $BUNDLE)
;;
Haiku)
WEIRD_OS="no"
;;
*)
if test -r /mach; then
# At this point, we're guessing this is NeXT Step. We support rld, so
Expand Down
1 change: 1 addition & 0 deletions doc/BUG-REPORT
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ DO NOT SEND HTML E-MAIL TO THE LISTS.
( ) Dell SVR4
( ) DragonFly BSD
( ) FreeBSD/TrueOS
( ) Haiku
( ) HP-UX
( ) IRIX
( ) Linux
Expand Down
50 changes: 30 additions & 20 deletions doc/COMPILE-GUIDE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Eggdrop Compile Guide and FAQ
Last revised: September 4, 2018
Last revised: September 20, 2018
_____________________________________________________________________

Eggdrop Compile Guide and FAQ
Expand All @@ -25,7 +25,8 @@ Last revised: September 4, 2018
F. IRIX
G. Solaris / SunOS
H. Cygwin / Windows
I. Tcl Detection and Installation
I. Haiku
J. Tcl Detection and Installation

Frequently Asked Questions:
1. I get a lot of warnings.
Expand Down Expand Up @@ -301,31 +302,40 @@ Last revised: September 4, 2018
cp /bin/cygz.dll 'C:/eggdrop' (if you selected compress.mod)


I. Tcl Detection and Installation
If ./configure does not correctly detect the location of your Tcl
library and header file, or if you experience errors related to Tcl
during linking, perform these steps:
I. Haiku
If you compile Tcl from source and it breaks with a thread error
(and --disable-threads doesn't help), you can workaround this by
removing the 'pkgs/thread<VERSION>' directory.

1. Depending on what shell your using:
Note that on Haiku, the LIBRARY_PATH environment variable must be used
instead of LD_LIBRARY_PATH.

bash/ksh:
export LD_LIBRARY_PATH=<path to DIRECTORY containing Tcl library>:${LD_LIBRARY_PATH}

csh/tcsh/tclsh:
setenv LD_LIBRARY_PATH <path to DIRECTORY containing Tcl library>:${LD_LIBRARY_PATH}
J. Tcl Detection and Installation
If ./configure does not correctly detect the location of your Tcl
library and header file, or if you experience errors related to Tcl
during linking, perform these steps:

1. Depending on what shell your using:

Note that some OS's use a different environment variable to tell
ld where to look for a library. See the notes for your specific OS
above (if applicable).
bash/ksh:
export LD_LIBRARY_PATH=<path to DIRECTORY containing Tcl library>:${LD_LIBRARY_PATH}

2. Run the following command from your Eggdrop compilation directory
(this is all one command):
csh/tcsh/tclsh:
setenv LD_LIBRARY_PATH <path to DIRECTORY containing Tcl library>:${LD_LIBRARY_PATH}

./configure --with-tclinc='<full path to tcl.h>'
--with-tcllib='<full path to Tcl library>'
Note that some OS's use a different environment variable to tell
ld where to look for a library. See the notes for your specific OS
above (if applicable).

2. Run the following command from your Eggdrop compilation directory
(this is all one command):

./configure --with-tclinc='<full path to tcl.h>'
--with-tcllib='<full path to Tcl library>'

3. Continue compiling the bot as outlined in Section A., starting
with 'make config'.
3. Continue compiling the bot as outlined in Section A., starting
with 'make config'.

If you do not have Tcl installed on your system, you can compile it in
your /home directory. Download Tcl from Tcl's SourceForge project page
Expand Down
5 changes: 4 additions & 1 deletion src/mod/compress.mod/compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@

#include <string.h>
#include <errno.h>
#include <zlib.h>

#include "src/mod/module.h"

#include <zlib.h> /* after src/mod/module.h because it could collide with
crypto.h free_func */

#include "share.mod/share.h"

#ifdef HAVE_MMAP
Expand Down
2 changes: 1 addition & 1 deletion src/mod/dns.mod/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dns_reslib_avail="false"

AC_HEADER_RESOLV

for lib in '' -lresolv -lbind -lsocket
for lib in '' -lresolv -lbind -lsocket -lnetwork
do
LIBS="$lib"
AC_LINK_IFELSE([AC_LANG_PROGRAM([
Expand Down
6 changes: 3 additions & 3 deletions src/mod/share.mod/share.c
Original file line number Diff line number Diff line change
Expand Up @@ -1461,14 +1461,14 @@ static void shareout_but EGG_VARARGS_DEF(struct chanset_t *, arg1)
*/
static void new_tbuf(char *bot)
{
tandbuf **old = &tbuf, *new;
tandbuf *new;

new = nmalloc(sizeof(tandbuf));
strncpyz(new->bot, bot, sizeof new->bot);
new->q = NULL;
new->timer = now;
new->next = *old;
*old = new;
new->next = tbuf;
tbuf = new;
putlog(LOG_BOTS, "*", "Creating resync buffer for %s", bot);
}

Expand Down