You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Bailey, Mark" <ma...@ee.co.uk> on 2015/01/21 16:14:52 UTC

RE: HPUX : E000002 - libapr

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@wandisco.com] 
Sent: 10 December 2014 15:32
To: Bailey, Mark
Cc: users@subversion.apache.org
Subject: Re: HPUX : E000002 - libapr

Stefan Sperling <st...@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.

Re: HPUX : E000002 - libapr

Posted by Stefan Sperling <st...@elego.de>.
On Wed, Jan 21, 2015 at 03:14:52PM +0000, Bailey, Mark wrote:
> 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
> 

Can you please let the APR project know about this? See http://apr.apache.org
 
If possible, please send them a patch to fix the issue for good.
If APR's configure script detects HPUX it should ensure that HAVE_MKSTEMP is not defined.

Thanks.