GNOME Bugzilla – Bug 239169
"__FUNCTION__" undefined
Last modified: 2003-03-11 03:34:59 UTC
Compiler reported "__FUNCTION__" undefined error when building evolution. The file list is as follows: ~/evolution/widgets/misc/e-dropdown-button.c ~/evolution/addressbook/backend/ebook/evolution-ldif-importer.c ~/evolution/addressbook/backend/ebook/evolution-vcard-importer.c ~/evolution/addressbook/backend/ebook/load-gnomecard-addressbook.c ~/evolution/addressbook/backend/ebook/load-pine-addressbook.c ~/evolution/addressbook/backend/ebook/test-client.c ~/evolution/addressbook/gui/widgets/e-addressbook-table-adapter.c ~/evolution/addressbook/gui/widgets/gal-view-minicard.c ~/evolution/addressbook/gui/widgets/e-minicard.c ~/evolution/addressbook/gui/widgets/test-minicard-view.c ~/evolution/my-evolution/e-summary-calendar.c ~/evolution/my-evolution/e-summary-rdf.c ~/evolution/my-evolution/e-summary-tasks.c ~/evolution/my-evolution/e-summary-weather.c I found the head file /usr/include/libgnomeprint-2.2/libgnomeprint/private/gpa-utils.h defined the macro. It is just #define __FUNCTION__ "" . Add this define in the head of the files above, the compilation will pass.
that's not the correct solution
And your reply isn't helpful. :-) GLib has G_GNUC_FUNCTION and G_GNUC_PRETTY_FUNCTION we should be using those.
I fixed all of these on CVS.
Why there are other files including '__FUNCTION__' could pass the compiling by Forte? Did we miss a head file to include in the last version?
Patton, how are things going now?
All of them have been fixed in the trunk of yesterday.At least compiler didn't report error when building. But the same bug still exists in gal trunk.