- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Bacula: try to compile on hpux11-31
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2016 06:07 AM
03-15-2016 06:07 AM
Re: Bacula: try to compile on HP-UX 11-31
Ok thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2016 10:28 AM
03-15-2016 10:28 AM
Re: Bacula: try to compile on HP-UX 11-31
I have removed reference to system call in /usr/include/sys/fcntl.h
But bacula don't compile give errors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2016 05:00 PM - edited 03-19-2016 07:33 PM
03-18-2016 05:00 PM - edited 03-19-2016 07:33 PM
Re: Bacula: try to compile on HP-UX 11-31 <fcntl.h> not C++ified
>I have removed reference to system call in /usr/include/sys/fcntl.h
You don't remove it, you move it down to the right place, so it's in the extern "C" block.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2016 09:35 AM
03-19-2016 09:35 AM
Re: Bacula: try to compile on HP-UX 11-31
I cannot found the "external C block" on fnctl.h,can you post an example please?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2016 07:32 PM
03-19-2016 07:32 PM
Re: Bacula: try to compile on HP-UX 11-31 <fcntl.h> not C++ified
>I cannot find the "external C block" on fnctl.h
If you use C++, you should know what an extern "C" block is.
This block doesn't belong here (or the prototype doesn't):
#if (defined(_INCLUDE_XOPEN_SOURCE_600) || defined(_INCLUDE_HPUX_SOURCE))
extern int posix_fadvise __((int, off_t, off_t, int));
#if (defined(_INCLUDE_HPUX_SOURCE))
extern int posix_fadvise64 __((int, off_t, off_t, int));
#endif
/*
* posix_fadvise() hints for POSIX IEEE Std 1003.1
*/
#define POSIX_FADV_NORMAL 1 /* Application has no advice */
#define POSIX_FADV_SEQUENTIAL 2 /* Sequentially accessed data */
#define POSIX_FADV_RANDOM 3 /* Data accessed is randomly */
#define POSIX_FADV_WILLNEED 4 /* Data will be accessed in future */
#define POSIX_FADV_DONTNEED 5 /* Data will not be accessed again */
#define POSIX_FADV_NOREUSE 6 /* Data will be accessed once only */
#endif /* defined(_INCLUDE_XOPEN_SOURCE_600) || defined(_INCLUDE_HPUX_SOURCE) */
It belongs where the comment says:
/* Function prototypes */
# ifndef _KERNEL
# ifdef __cplusplus
extern "C" { <<<< extern "C" block start
# endif /* __cplusplus */
<< move to here
There is another thing wrong but that's shouldn't be important.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2016 12:19 PM - edited 03-28-2016 12:21 PM
03-28-2016 12:19 PM - edited 03-28-2016 12:21 PM
Re: Bacula: try to compile on HP-UX 11-31 <fcntl.h> not C++ified
Thanks never used c o c++
I'm a junior sysadm,know some bash,many things of linux,hpux,aix,etc..
even systemV,but lines of C++ or C get me in panic,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2016 01:57 PM - edited 03-28-2016 01:58 PM
03-28-2016 01:57 PM - edited 03-28-2016 01:58 PM
Re: Bacula: try to compile on HP-UX 11-31 <fcntl.h> not C++ified
Works fine with new fcntl.h
Thanks
- « Previous
-
- 1
- 2
- Next »