problem with configure check for mkstemps()

Matthias Welwarsky matze at
Thu Oct 3 15:59:10 BST 2002

On Thursday 03 October 2002 15:40, Matthias Welwarsky wrote:
> Hi,
> seems that currently the check for mkstemps() is not working. On my machine
> (SuSE 7.2) it fails to detect the existence of the function in libiberty.a,
> since there's also no prototype in stdlib.h.
> Is it wise to run the compile check with "-pedantic-errors"? That way it of
> course will not compile if the prototype is missing.

Ok, I've looked into it a little deeper: It's not the CXXFLAGS, it's simply 
the check not knowing about the existence of libiberty, and g++ does not seem 
to link it by default (gcc does?).

Any suggestions how to deal with this? I'm thinking of simply adding a 
AC_CHECK_LIB(iberty,mkstemps) to KDE_CHECK_MISC, what do you think?


diff -u -3 -p -r2.286
---     2002/10/03 13:42:38     2.286
+++     2002/10/03 14:56:14
@@ -726,6 +726,7 @@ support])
    AC_CHECK_LIB(ucb, killpg, [LIBUCB="-lucb"]) dnl for Solaris2.4
+   AC_CHECK_LIB(iberty,mkstemps) dnl ???

    case $host in  dnl this *is* LynxOS specific
    *-*-lynxos* )

Matthias Welwarsky
Fachschaft Informatik FH Darmstadt
Email: matze at

"all software sucks equally, but some software is more equal"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <>

More information about the kde-core-devel mailing list