Bacula-users

[Bacula-users] Problems compiling on HPUX, with fix

2010-05-27 04:39:39
Subject: [Bacula-users] Problems compiling on HPUX, with fix
From: "Meyer, Mark" <Mark.Meyer AT akquinet DOT de>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Thu, 27 May 2010 10:20:35 +0200

Hi,

we tried compiling bacula on our HP-UX machine (HP-UX akqhthpa B.11.31 U ia64) using (gcc version 4.2.3) and had problems with both 3.0.3 and the recent 5er source.

 

After running configure, remove in src/bacula.h

 

#if HAVE_UNISTD_H

#  ifdef HAVE_HPUX_OS

/* remove this line preventing include of POSIX1C_SOURCE */

#  endif

#include <unistd.h>

#endif

 

And add an extern “c” to the include of fcntl.h

 

extern "C" {

#include <fcntl.h>

}

 

After these changes bacula compiles and links fine. The first fix seems to be an ugly fix by bacula while the second just seems to be an error in gcc/hpux headers.

 

Regards, Mark

 

akquinet outsourcing gem. GmbH
Paul-Stritter-Weg 5
D-22297 Hamburg

 

Fon:        +49 (0)40-881 73-402
Fax:        +49 (0)40-881 73-199
Mobil:      +49 (0) 175-2987071
E-Mail:    mmeyer AT akquinet DOT de

 www.akquinet.de

 

-

akquinet outsourcing gGmbH, Hamburg

Geschäftsführung: Hartmut Clausen, Jens Ehlers, Klaus-Dieter Gerken

Amtsgericht Hamburg HRB 91384

USt.-Id. Nr.: DE 239 299 699

 

------------------------------------------------------------------------------

_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Bacula-users] Problems compiling on HPUX, with fix, Meyer, Mark <=