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 239169 - "__FUNCTION__" undefined
"__FUNCTION__" undefined
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Contacts
pre-1.5 (obsolete)
Other All
: Normal normal
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
Depends on:
Blocks: 239034
 
 
Reported: 2003-03-06 07:28 UTC by Patton Gao
Modified: 2003-03-11 03:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Patton Gao 2003-03-06 07:28:11 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.
Comment 1 Jeffrey Stedfast 2003-03-06 14:40:38 UTC
that's not the correct solution
Comment 2 Ettore Perazzoli 2003-03-06 16:56:07 UTC
And your reply isn't helpful.  :-)

GLib has G_GNUC_FUNCTION and G_GNUC_PRETTY_FUNCTION we should be using
those.
Comment 3 Ettore Perazzoli 2003-03-06 17:32:04 UTC
I fixed all of these on CVS.
Comment 4 Patton Gao 2003-03-07 01:25:38 UTC
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?
Comment 5 Henry Jia 2003-03-11 03:17:11 UTC
Patton, how are things going now?
Comment 6 Patton Gao 2003-03-11 03:34:59 UTC
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.