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 168998 - funlockfile/flockfile/getc_unlocked problems on Solaris, Tru64 UNIX
funlockfile/flockfile/getc_unlocked problems on Solaris, Tru64 UNIX
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: build
2.4.x
Other Solaris
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2005-03-02 16:46 UTC by The Written Word
Modified: 2005-08-01 11:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to resolve issue regardless of OS, C++ compiler (3.50 KB, patch)
2005-03-02 16:48 UTC, The Written Word
none Details | Review

Description The Written Word 2005-03-02 16:46:32 UTC
Version details: 2.4.11
Distribution/Version: 9/SPARC

funlockfile, flockfile, and getc_unlocked are not handled correctly because they
are not exposed for the vendor C++ compilers on Solaris and Tru64 UNIX.
Comment 1 The Written Word 2005-03-02 16:48:05 UTC
Created attachment 38161 [details] [review]
Patch to resolve issue regardless of OS, C++ compiler

Fix by testing for functions _using_ C++ compiler and, if function is available
but prototype is not, test for that as well.
Comment 2 Murray Cumming 2005-03-03 11:39:34 UTC
Great. Committed. It's good to have this fixed properly.

Please remember to patch the ChangeLog in future.
Comment 3 The Written Word 2005-07-29 17:19:49 UTC
I just checked CVS And config.h.in has not been regenerated so the configure.in
AC_DEFINE's aren't working.
Comment 4 Murray Cumming 2005-07-30 13:45:18 UTC
What change would you expect i config.h.in? I don't think it's meant to be a
generated file.
Comment 5 The Written Word 2005-07-30 14:12:34 UTC
Huh? config.h.in is generated by autoheader. Anyway, if you want to maintain
config.h.in manually, you need to add:
  #undef NEED_FLOCKFILE_PROTO
  #undef NEED_FUNLOCKFILE_PROTO
  #undef NEED_GETC_UNLOCKED_PROTO
and rename GETC_UNLOCKED to HAVE_GETC_UNLOCKED.

We just run autoheader.
Comment 6 Murray Cumming 2005-08-01 11:00:41 UTC
Thanks. Done in cvs. I don't think autoheader is meant to be used as part of a
build, just when first making the build files.