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: [email protected]
www.akquinet.de<http://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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users