[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: HPUX : E000002 - libapr

From: Bailey, Mark <mark.bailey_at_ee.co.uk>
Date: Wed, 21 Jan 2015 15:14:52 +0000

Thanks Philip,

Your solution worked fine.

It reverted to using mktemp on the HPUX platform so we changed the libapr source as suggested which indeed fixed the issue and used the internal mkstemp......

The fix was as below if anybody else comes access this issue on HPUX.....

file_io/unix/mktemp.c

Insert the following lines (comment as you please !)

/*
* Force the use of internal temporary filename creation.
* Do not use mktemp() of mkstemp() due to restriction of
* 26 filenames on HP-UX
*/
#undef HAVE_MKSTEMP

before line 56, which is currently...

#ifndef HAVE_MKSTEMP

You should end up with a section like this

#include "apr_portable.h" /* for apr_os_file_put() */
#include "apr_arch_inherit.h"

#undef HAVE_MKSTEMP
#ifndef HAVE_MKSTEMP

#if defined(SVR4) || defined(WIN32) || defined(NETWARE)
#ifdef SVR4
#if HAVE_INTTYPES_H

Thanks, Mark....

Visit the repository server here for Subversion help and support ;
https://repository.eead.eeint.co.uk:19443/blog/

-----Original Message-----
From: Philip Martin [mailto:philip.martin_at_wandisco.com]
Sent: 10 December 2014 15:32
To: Bailey, Mark
Cc: users_at_subversion.apache.org
Subject: Re: HPUX : E000002 - libapr

Stefan Sperling <stsp_at_elego.de> writes:

> Have you asked HP about this? From this problem description it looks
> as if their mktemp was seriously broken.

APR uses mkstemp() rather than mktemp() but that probably makes no difference. APR also has custom code that can be used when mkstemp() is not available so rebuilding APR to to use that would be a workaround.

--
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
NOTICE AND DISCLAIMER
This e-mail (including any attachments) is intended for the above-named person(s).  If you are not the intended recipient, notify the sender immediately, delete this email from your system and do not disclose or use for any purpose.  
 
We may monitor all incoming and outgoing emails in line with current legislation. We have taken steps to ensure that this email and attachments are free from any virus, but it remains your responsibility to ensure that viruses do not adversely affect you. 
EE Limited
Registered in England and Wales
Company Registered Number: 02382161
Registered Office Address: Trident Place, Mosquito Way, Hatfield, Hertfordshire, AL10 9BW.
Received on 2015-01-21 16:16:48 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.