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 92890 - gtk exports fnmatch() on non-gnu libc/linker
gtk exports fnmatch() on non-gnu libc/linker
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
1.2.x
Other Mac OS
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 80435
 
 
Reported: 2002-09-09 20:21 UTC by jacob berkman
Modified: 2011-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
make fnmatch() static (2.21 KB, patch)
2002-09-09 20:22 UTC, jacob berkman
none Details | Review

Description jacob berkman 2002-09-09 20:21:40 UTC
the included copy of fnmatch() will get exported by gtk+ on some systems. 
this can especially be a problem if you link against gnome-vfs 1, which
also exports fnmatch() and your linker doesn't allow more than 1 function
with the same name (mac os x at least).

the attached patch makes fnmatch() a static function.
Comment 1 jacob berkman 2002-09-09 20:22:17 UTC
Created attachment 10988 [details] [review]
make fnmatch() static
Comment 2 Owen Taylor 2002-09-24 08:53:00 UTC
Since you mention gnome vfs1, do you consider this a GTK+-1.2.11
bug? (at this point, I really doubt we'll ever do a 1.2.11)
Comment 3 jacob berkman 2002-09-24 14:14:43 UTC
i consider it both a gtk 1.2 and 2.x bug, although i only ran into the
problem with 1.2.
Comment 4 Owen Taylor 2002-10-22 19:08:12 UTC
Fixed on HEAD and gtk-2-0

Tue Oct 22 15:03:41 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/fnmatch.h: When compiling our on fnmatch.c,
        #define fnmatch _gtk_fnmatch (#92890, Jacob Berkman)

I'm not going to bother assinging it to 1.2.11 milestone;
it is looking more and more likely that that will never
happen.