Bug 150429 - gaim build failure (glibc macro abuse)
gaim build failure (glibc macro abuse)
Product: Fedora
Classification: Fedora
Component: gaim (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Warren Togami
Depends On:
Blocks: 149984
  Show dependency treegraph
Reported: 2005-03-06 06:44 EST by Warren Togami
Modified: 2007-11-30 17:11 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-03-06 18:29:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Warren Togami 2005-03-06 06:44:45 EST
<warren> jakub,
Making all in novell
make[4]: Entering directory
if /bin/sh ../../../libtool --silent --mode=compile --tag=CC
i386-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../../..  -I../../../src 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     -O2 -Wall -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -m32 -march=i386 -mtune=pentium4 -Wall -g3 -MT nmrtf.lo
-MD -MP -MF ".deps/nmrtf.Tpo" -c -o nmrtf.lo nmrtf.c; \
then mv -f ".deps/nmrtf.Tpo" ".deps/nmrtf.Plo"; else rm -f ".deps/nmrtf.Tpo";
exit 1; fi
nmconn.c: In function 'nm_tcp_read':
nmconn.c:223: error: syntax error before '(' token
nmconn.c:223: error: '__nbytes_val' undeclared (first use in this function)
nmconn.c:223: error: (Each undeclared identifier is reported only once
nmconn.c:223: error: for each function it appears in.)
nmconn.c:223: warning: passing argument 1 of 'read' makes integer from pointer
without a cast
nmconn.c: At top level:
nmconn.c:223: error: syntax error before ')' token
make[4]: *** [nmconn.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory

This same thing built fine a few days ago, any idea what's up?
<jakub> warren: POSIX allows most of its functions to be defined also as
function like macros
<jakub> warren: the latest glibc defines read(fd, buf, len) as a macro
<jakub> warren: therefore, you need to either #undef read before you abuse read
for something else
<jakub> warren: or replace return (conn->ssl_conn->read(conn->ssl_conn->data,
buff, len));
<jakub> warren: with return (conn->ssl_conn->read)(conn->ssl_conn->data, buff, len);
Comment 1 Warren Togami 2005-03-06 16:16:08 EST
<jakub> warren: it is an upstream change that's going to stay. though only under
<jakub> warren: more code than just gaim is affected, e.g. binutils and make as well
Comment 2 Warren Togami 2005-03-06 18:27:34 EST
Will be fixed in the next rawhide build.  Paco-Paco checked in upstream too.

Note You need to log in before you can comment on or make changes to this bug.