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 343909 - gtkprintoperation.c: mkdtemp is not common
gtkprintoperation.c: mkdtemp is not common
Status: RESOLVED DUPLICATE of bug 118563
Product: gtk+
Classification: Platform
Component: Printing
2.9.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-06-05 13:04 UTC by Kazuki Iwamoto
Modified: 2006-06-05 18:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
use macro 'HAVE_MKDTEMP' (1.18 KB, patch)
2006-06-05 13:07 UTC, Kazuki Iwamoto
none Details | Review

Description Kazuki Iwamoto 2006-06-05 13:04:56 UTC
Please describe the problem:
'mkdtemp' is available since glibc 2.1.91.
This function is not common.
It is dependent on specific environment.

Steps to reproduce:
1. compile with old C-runtime library

Actual results:
Following message is displayed. (Visual C++ 6.0)
gtk\gtk\gtkprintoperation.c(481) : error C4013: 'mkdtemp' undefined; assuming extern returning int
gtk\gtk\gtkprintoperation.c(481) : error C4047: '=' : 'gchar *' differs in levels of indirection from 'int'

Expected results:
If 'mkdtemp' is exist, macro 'HAVE_MKDTEMP' should be defined.
For example,
#ifdef HAVE_MKDTEMP
  tmp_dir = mkdtemp(dir_template);
#else
  /* ??? */
#endif

Or, add a new API 'g_mkdtemp' to gfileutils.[ch] and use it.

Does this happen every time?


Other information:
Comment 1 Kazuki Iwamoto 2006-06-05 13:07:16 UTC
Created attachment 66771 [details] [review]
use macro 'HAVE_MKDTEMP'
Comment 2 Matthias Clasen 2006-06-05 14:29:35 UTC
I think this should rather be fixed by adding g_mkdtemp to glib. I believe there
is even a bug open about it.
Comment 3 Elijah Newren 2006-06-05 18:03:04 UTC
(In reply to comment #2)
> I think this should rather be fixed by adding g_mkdtemp to glib. I believe
> there is even a bug open about it.

Yep, looks like bug 118563.



*** This bug has been marked as a duplicate of 118563 ***