Opened at 2008-04-06T04:56:15Z
Closed at 2008-04-06T07:51:04Z
#391 closed defect (duplicate)
bitlbee fails to compile with glib2-2.4.7-1 and glibc-2.3.4-2.25 on CentOS 4.4 final
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | BitlBee | Version: | 1.2 |
Keywords: | glib glibc G_GNUC_MALLOC | Cc: | |
IRC client+version: | Client-independent | Operating System: | Public server |
OS version/distro: | CentOS 4.4 Final |
Description
Error is as follows:
- Compiling user.c
make[1]: Entering directory `/home/tdc/bitlbee-1.2/lib'
- Compiling arc.c
In file included from arc.c:48: arc.h:33: error: syntax error before "struct" make[1]: * [arc.o] Error 1 make[1]: Leaving directory `/home/tdc/bitlbee-1.2/lib' make: * [lib] Error 2
The offending line from lib/arc.h
G_GNUC_MALLOC struct arc_state *arc_keymaker( unsigned char *key, int kl, int cycles ); The issue is G_GNUC_MALLOC is not defined. I searched the .h files packaged with glib and glibc and didn't find the definition of the macro G_GNUC_MALLOC.
I did find a bogus definition in bitlbee.h, but it seems to be ignored for some reason.
#ifndef G_GNUC_MALLOC /* Doesn't exist in GLib <=2.4 while everything else in BitlBee should
work with it, so let's fake this one. */
#define G_GNUC_MALLOC #endif
Taking the macro out of lib/arc.h, the program compiles and seems to function just fine.
Attachments (0)
Change History (1)
comment:1 Changed at 2008-04-06T07:51:04Z by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
#375, changeset:devel,375. :-)