Opened at 2007-01-02T11:32:49Z
Last modified at 2008-04-01T03:09:10Z
#230 closed defect (fixed)
Compiling and bind():ing on AIX 5.1
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | BitlBee | Version: | 1.0.3 |
Keywords: | aix | Cc: | bitlbee@… |
IRC client+version: | Client-independent | Operating System: | Other |
OS version/distro: | AIX 5.1 |
Description
First off, let me explain the priority; i selected major since the changes will take about ~5 min to fix, since I've solved them already.
I've just compiled bitlbee on AIX 5.1. My first problem was related to linking the binary, but it was solved by adding the -brtl flag to the linker, so i would like to suggest this is added in the distribution. I'm not familiar with automake/autoconf so i just edited the Makefile and added -Wl,-brtl in the "$(OUTFILE): $(objects) $(subdirs)"-section.
After this, i couldn't bind() to an specific interface. 0.0.0.0 worked out fine with no trouble, but i wanted to bind() to localhost. I solved this in bitlbee.c by adding the line:
memset(&(listen_addr.sin_zero), '\0', 8);
after:
listen_addr.sin_addr.s_addr = inet_addr( global.conf->iface );
..and things work great.
Just add these things and AIXers will be happy :)
Attachments (1)
Change History (2)
Changed at 2007-01-08T20:37:55Z by
Attachment: | bitlbee.memset.patch added |
---|
comment:1 Changed at 2007-12-04T23:26:29Z by
I think Jelmer's getaddrinfo() change will have the same effect.
(Bah, fucking spammers ate some backlog here.)
Patch of current dev ver