#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


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. 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);


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)

bitlbee.memset.patch (855 bytes) - added by bitlbee@… at 2007-01-08T20:37:55Z.
Patch of current dev ver

Download all attachments as: .zip

Change History (2)

Changed at 2007-01-08T20:37:55Z by bitlbee@…

Attachment: bitlbee.memset.patch added

Patch of current dev ver

comment:1 Changed at 2007-12-04T23:26:29Z by wilmer

I think Jelmer's getaddrinfo() change will have the same effect.

(Bah, fucking spammers ate some backlog here.)

Modify Ticket

as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.