[ #1134 ] doesn't compile with recent gcc

Bug #249637 reported by Daniele Napolitano on 2008-07-17
2
Affects Status Importance Assigned to Milestone
Ircp Tray
Status tracked in Trunk
Trunk
High
Daniele Napolitano

Bug Description

[IMPORTED] http://gro.clinux.org/tracker/index.php?func=detail&aid=1134&group_id=704&atid=1986

None of the 0.7.x versions of ircp-tray compile with gcc3.3, gcc3.4, gcc4.1, gcc4.2 or gcc-4.3 (haven't tried the 0.6 branch and older gcc; and nightly CVS tarball is generated badly - filenames have an ,v appended to their name).
Error when compiling 0.7.2.1 with gcc-4.3:

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -DG_LOG_DOMAIN=\"Ircp-Tray\" -DLOCALE_DIR=\""/usr/local/share/locale"\" -DDATADIR=\""/usr/local/share"\" -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DGNOME_ICONDIR=\""/usr/local/share/pixmaps"\" -g -O2 -MT app.o -MD -MP -MF ".deps/app.Tpo" -c -o app.o app.c; \
then mv -f ".deps/app.Tpo" ".deps/app.Po"; else rm -f ".deps/app.Tpo"; exit 1; fi
app.c:138: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
app.c: In function ‘trayicon_init’:
app.c:241: error: ‘TrayToolTips’ undeclared (first use in this function)
app.c:241: error: (Each undeclared identifier is reported only once
app.c:241: error: for each function it appears in.)
app.c: In function ‘trayicon_set_text’:
app.c:251: warning: incompatible implicit declaration of built-in function ‘strlen’
app.c: In function ‘config_get_lastsavedir’:
app.c:367: warning: incompatible implicit declaration of built-in function ‘malloc’
app.c:367: warning: incompatible implicit declaration of built-in function ‘strlen’
app.c:370: warning: assignment from incompatible pointer type
app.c:372: warning: passing argument 1 of ‘g_key_file_load_from_file’ from incompatible pointer type
app.c:374: warning: passing argument 1 of ‘g_key_file_get_string’ from incompatible pointer type
app.c:375: warning: passing argument 1 of ‘g_key_file_free’ from incompatible pointer type
app.c:376: warning: incompatible implicit declaration of built-in function ‘free’
app.c: In function ‘config_set_lastsavedir’:
app.c:389: warning: incompatible implicit declaration of built-in function ‘malloc’
app.c:389: warning: incompatible implicit declaration of built-in function ‘strlen’
app.c:392: warning: assignment from incompatible pointer type
app.c:394: warning: passing argument 1 of ‘g_key_file_load_from_file’ from incompatible pointer type
app.c:395: warning: passing argument 1 of ‘g_key_file_set_string’ from incompatible pointer type
app.c:396: warning: passing argument 1 of ‘g_key_file_to_data’ from incompatible pointer type
app.c:402: warning: incompatible implicit declaration of built-in function ‘free’
app.c:404: warning: passing argument 1 of ‘g_key_file_free’ from incompatible pointer type
app.c: In function ‘log_file’:
app.c:419: warning: incompatible implicit declaration of built-in function ‘malloc’
app.c:419: warning: incompatible implicit declaration of built-in function ‘strlen’
app.c:426: warning: incompatible implicit declaration of built-in function ‘free’
app.c: In function ‘discoverer_do’:
app.c:452: warning: incompatible implicit declaration of built-in function ‘strncpy’
app.c:458: error: ‘TrayToolTips’ undeclared (first use in this function)
app.c:463: warning: incompatible implicit declaration of built-in function ‘strlen’
app.c:476: warning: incompatible implicit declaration of built-in function ‘free’
app.c: In function ‘discoverer_is_in_range’:
app.c:499: warning: incompatible implicit declaration of built-in function ‘strlen’
app.c: In function ‘show_log_file’:
app.c:650: warning: incompatible implicit declaration of built-in function ‘malloc’
app.c:650: warning: incompatible implicit declaration of built-in function ‘strlen’
app.c:657: warning: incompatible implicit declaration of built-in function ‘strcpy’
app.c:666: warning: incompatible implicit declaration of built-in function ‘free’
make[2]: *** [app.o] Error 1

description: updated
Changed in ircp-tray:
assignee: nobody → dnax88
importance: Undecided → High
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers