[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Problem with tempnam ... grrr....
> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of Jan Banan
> Thanks, now "make" comes much longer.. it now performs 804 lines
> instead of
> 34 before :) But it should get to 1335 lines to totally succeed (according
> to RH71 and RH73 build). This is how "make" failes now, any idea?
Lots of ideas:
shoot your stupid /bin/ld that doesn't do what you tell it to and get one
that does.
delete RH72 and only use RH73
use your RH71 binaries on your RH72 system
switch to SuSE Linux
use OpenLDAP 2.1, which no longer uses those obsolete functions
patch your ldapsearch.c so it no longer uses the offending function:
diff -u -r1.37.2.26 ldapsearch.c
--- ldapsearch.c 6 Jun 2002 02:16:03 -0000 1.37.2.26
+++ ldapsearch.c 13 Sep 2002 04:34:15 -0000
@@ -1075,12 +1075,8 @@
tmpdir, a );
tmpfp = NULL;
- if ( mktemp( tmpfname ) == NULL ) {
- perror( tmpfname );
- continue;
- }
+ tmpfd = mkstemp( tmpfname );
- tmpfd = open( tmpfname,
O_WRONLY|O_CREAT|O_EXCL, 0600 );
if ( tmpfd == -1 ) {
perror( tmpfname );
continue;
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support