[Patch] gio-standalone build fail on solaris because of __PRETTY_FUNCTION__

Halton Huo <[email protected]>
Newsgroups gmane.comp.gnome.vfs.general
Message-ID <1194424127.1171.55.camel@judo>
Hi Alexl,

When I try to build gio-standalone trunk code on Solaris with suncc, I
get build fail with following message:

/ws/onnv-tools-prc/SUNWspro/SS11/bin/cc -DHAVE_CONFIG_H -I. -I.. -I..
-I.. -DGIO_MODULE_DIR=\"/export/home/halton/work/dist/lib/gio/modules\"
-D_REENTRANT -D_PTHREADS -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -DG_LOG_DOMAIN=\"GIO\"
-DG_DISABLE_DEPRECATED -DDBUS_API_SUBJECT_TO_CHANGE
-D_POSIX_PTHREAD_SEMANTICS -c test-streams.c
"test-streams.c", line 74: undefined symbol: __PRETTY_FUNCTION__
"test-streams.c", line 74: warning: improper pointer/integer
combination: arg #3
"test-streams.c", line 80: undefined symbol: __PRETTY_FUNCTION__
"test-streams.c", line 80: warning: improper pointer/integer
combination: arg #3
...

Use G_GNUC_PRETTY_FUNCTION instead will fix this error, patch is
attached.

Halton.

_______________________________________________
gnome-vfs-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list
gio-04-pretty-func.diff (text/x-patch, 555 B)
Index: trunk/gio/test-streams.c
===================================================================
--- trunk/gio/test-streams.c	(revision 722)
+++ trunk/gio/test-streams.c	(working copy)
@@ -38,7 +38,7 @@
      if G_LIKELY(expr) { } else 			      	        \
         test_assert_warning (__FILE__,    	          \
                              __LINE__,	              \
-                             __PRETTY_FUNCTION__,	    \
+                             G_GNUC_PRETTY_FUNCTION,	    \
 	                           #expr);		  }G_STMT_END
 
 static void
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.