This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Need Help Compiling Eggdrop 1.6.15 on HP 9000 Unix System

Old posts that have not been replied to for several years.
Locked
d
dietsche

Need Help Compiling Eggdrop 1.6.15 on HP 9000 Unix System

Post by dietsche »

Hi!
I've been having trouble getting the latest eggdrop to compile on a HP9000 s827 running HP-UX version 11. I've tried eggdrop 1.6.15, and because of problems compiling that, i've tried to compile 1.6.13, and 1.6.8 on this particular unix system ... but to no avail.

I have run a windrop for quite some time, and have compiled and successfully set up eggdrops under linux in the recent past (including version 1.6.15).

Since i would like to get 1.6.15 running, I'll describe exactly what I've tried so far: I downloaded the source, and had some trouble getting it to compile, so i tried to apply a patch which should have fixed my problems (available at: http://www.egghelp.org/files/patches/eg ... 2.patch.gz ) during the process of applying the patch, i could not get the HP9000 to patch the source code ( patch -p1 < eggdrop1.6.15+ntopfix2.patch ), so i unpacked the source code on my linux box, and applied the patch, repacked the source code, sent it to the HP 9000, and unpacked it there; then tried to compile:

./configure;make config;make

at this point, the compile will exit in error during the "make" phase. I believe the problem lies with the detection of socklen_t (the configure script says "no" when it checks) .
# make
(This may take a while. Go get some runts.)
gcc -pipe -g -O2 -I.. -I.. -DHAVE_CONFIG_H -c bg.c
In file included from compat/inet_aton.h:29,
from compat/compat.h:28,
from main.h:99,
from bg.c:27:
/usr/include/sys/socket.h:171: conflicting types for `socklen_t'
eggdrop.h:199: previous declaration of `socklen_t'
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
#

my solution to this problem was to edit src/eggdrop.h line 199, and to comment out the typedef int socklent_t statement for reference, /usr/include/sys/socket.h defines the type size as 'size_t' rather than 'int'. Now, the source in eggdrop.h looks like this:
#if !HAVE_SOCKLEN_T
//typedef int socklen_t; //this was the old line number 199
#define HAVE_SOCKLEN_T
#endif

next, i try to recompile the bot by executing 'make' again. This time, things went a bit better (the source compiles). But at the linking step the build process dies (here is the relevant information):
Linking eggdrop...

gcc -pipe -fPIC -shared -o ../eggdrop bg.o botcmd.o botmsg.o botnet.o ch
anprog.o cmds.o dcc.o dccutil.o dns.o flags.o language.o match.o main.o mem.o m
isc.o misc_file.o modules.o net.o rfc1459.o tcl.o tcldcc.o tclhash.o tclmisc.o
tcluser.o userent.o userrec.o users.o -L/usr/local/lib -ltcl8.4 -lm -ldld -lns
l md5/md5c.o compat/*.o `cat mod/mod.xlibs`
/usr/ccs/bin/ld: DP relative code in file bg.o - shared library must be position
independent. Use +z or +Z to recompile.
collect2: ld returned 1 exit status
*** Error exit code 1

honestly, i don't know much about programming on a unix/linux system. My experience is limited to Windows (c,c++,Visual Basic) and assembly language on M68k CPUs. If anyone knows how to solve this (i believe my problem has something to do with the "+z or +Z" flags... but where do they go?), their help would be greatly appreciated :)

if anyone is interested in the ouput from the configure and make processes, please visit: www.gregd.org/eggdrop . You'll find logs of the stuff i've done broken up into sections for easier reading. The tarball in that particular folder is a patched 1.6.15 as described above.

thanks!
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

This is being worked on in .16, however I'm still unsure of the problem. HP-UX's linker is weird. In the mean time, make static works.
Locked