- 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
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
12-03-2013 05:51 AM - last edited on 12-04-2013 06:22 PM by Maiko-I
12-03-2013 05:51 AM - last edited on 12-04-2013 06:22 PM by Maiko-I
When i try to compile latest bacula(5.0.12)
on hpux-11.31 i get
==>Entering directory /usr/local/src/bacula/bacula-5.2.13/src/lib
Compiling attr.c
attr.c: In function 'ATTR* new_attr(JCR*)':
attr.c:50: error: 'getuid' was not declared in this scope
someone had succes compiling bacula?
Thanks
P.S. This thread has been moved from HP-UX > General to HP-UX > languages. - Hp Forum Moderator
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2013 12:58 AM
12-04-2013 12:58 AM
Re: Bacula: try to compile on HP-UX 11-31
Has <unistd.h> been included in the source?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2014 05:55 AM
01-15-2014 05:55 AM
Re: Bacula: try to compile on HP-UX 11-31
Yes
config.log:| # include <unistd.h>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2014 09:10 AM
01-15-2014 09:10 AM
Re: Bacula: try to compile on HP-UX 11-31
>config.log:| # include <unistd.h>
Has it been included in attr.c?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2014 10:32 AM
01-22-2014 10:32 AM
Re: Bacula: try to compile on HP-UX 11-31
No it wasn't,now is working.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2014 10:45 AM
01-22-2014 10:45 AM
Re: Bacula: try to compile on HP-UX 11-31
With correct include dir compile fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2014 12:07 PM
01-22-2014 12:07 PM
Re: Bacula: try to compile on HP-UX 11-31
>now is working. Thanks
If the answers were helpful, please click on the Kudos stars.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2015 02:49 PM
10-01-2015 02:49 PM
Re: Bacula: try to compile on hpux11-31
New error
Compiling btime.c btime.c: In function 'char* bstrftime(char*, int, int64_t)': btime.c:52: error: 'localtime_r' was not declared in this scope btime.c: In function 'char* bstrftimes(char*, int, int64_t)': btime.c:64: error: 'localtime_r' was not declared in this scope btime.c: In function 'char* bstrftime_dn(char*, int, int64_t)': btime.c:76: error: 'localtime_r' was not declared in this scope btime.c: In function 'char* bstrftime_ny(char*, int, int64_t)': btime.c:88: error: 'localtime_r' was not declared in this scope btime.c: In function 'char* bstrftime_nc(char*, int, int64_t)': btime.c:102: error: 'localtime_r' was not declared in this scope btime.c: In function 'char* bstrutime(char*, int, int64_t)': btime.c:121: error: 'localtime_r' was not declared in this scope btime.c: In function 'int tm_woy(time_t)': btime.c:250: error: 'localtime_r' was not declared in this scope btime.c: In function 'void get_current_time(date_time*)': btime.c:275: error: 'gmtime_r' was not declared in this scope *** Codice di uscita errore 1
On bacula 7.2.0
i use this configure
CPPFLAGS='-I/usr/include' ./configure --enable-client-only \ --prefix=/opt/bacula \ --sysconfdir=/etc/opt/bacula \ --localstatedir=/var/opt/bacula \ --mandir=/opt/bacula/man \ --docdir=/opt/bacula/docs
If use configure without CPPFLAGS give same error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2015 10:34 PM
10-01-2015 10:34 PM
Re: Bacula: try to compile on HP-UX 11.31
>error: 'localtime_r' was not declared in this scope
To get the _r versions of these functions you probably have to compile with cc -mt.
For gcc that probably maps to: -D_POSIX_C_SOURCE=199506L
http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/HTML/options.htm#opt-mt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2015 08:30 AM
10-02-2015 08:30 AM
Re: Bacula: try to compile on HP-UX 11.31
Same error.