After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 618051 - gio/tests/socket-server|client.c fail to compile under AIX/VisualAge C compiler
gio/tests/socket-server|client.c fail to compile under AIX/VisualAge C compiler
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other AIX
: Normal blocker
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-05-07 19:57 UTC by Andrew Paprocki
Modified: 2010-05-07 23:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
remove broken useless initialization in socket-client/socket-server (1.05 KB, patch)
2010-05-07 23:09 UTC, Dan Winship
committed Details | Review

Description Andrew Paprocki 2010-05-07 19:57:51 UTC
Both socket-server.c and socket-client.c fail to compile with a slew of confusing errors because IBM VisualAge C compiler does not allow this:

      gchar buffer[4096] = { };

To fix this bug, simply change that line to:

      gchar buffer[4096] = {0};

... in both files and they will compile fine.
Comment 1 Andrew Paprocki 2010-05-07 22:01:39 UTC
I also discovered this fails to build on HP-UX using acc:

"socket-server.c", line 208: error #2029: expected an expression
        gchar buffer[4096] = { };
                               ^

1 error detected in the compilation of "socket-server.c".
gmake[4]: *** [socket-server.o] Error 2
"socket-client.c", line 206: error #2029: expected an expression
        gchar buffer[4096] = { };
                               ^

1 error detected in the compilation of "socket-client.c".
Comment 2 Dan Winship 2010-05-07 23:09:32 UTC
The following fix has been pushed:
af263a3 remove broken useless initialization in socket-client/socket-server
Comment 3 Dan Winship 2010-05-07 23:09:34 UTC
Created attachment 160547 [details] [review]
remove broken useless initialization in socket-client/socket-server