Bacula: try to compile on hpux11-31 (455 Views)
Reply
Frequent Advisor
uxbeginner22
Posts: 69
Registered: ‎11-25-2013
Message 1 of 7 (455 Views)
Accepted Solution

Bacula: try to compile on hpux11-31

[ Edited ]

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

Acclaimed Contributor
Dennis Handly
Posts: 25,427
Registered: ‎03-06-2006
Message 2 of 7 (432 Views)

Re: Bacula: try to compile on HP-UX 11-31

Has <unistd.h> been included in the source?

Frequent Advisor
uxbeginner22
Posts: 69
Registered: ‎11-25-2013
Message 3 of 7 (403 Views)

Re: Bacula: try to compile on HP-UX 11-31

Yes

 

config.log:| # include <unistd.h>

 

Acclaimed Contributor
Dennis Handly
Posts: 25,427
Registered: ‎03-06-2006
Message 4 of 7 (400 Views)

Re: Bacula: try to compile on HP-UX 11-31

>config.log:| # include <unistd.h>

 

Has it been included in attr.c?

Frequent Advisor
uxbeginner22
Posts: 69
Registered: ‎11-25-2013
Message 5 of 7 (392 Views)

Re: Bacula: try to compile on HP-UX 11-31

No it wasn't,now is working.

Thanks

 

 

Frequent Advisor
uxbeginner22
Posts: 69
Registered: ‎11-25-2013
Message 6 of 7 (390 Views)

Re: Bacula: try to compile on HP-UX 11-31

My mistake..includedir was wrong.
With correct include dir compile fine
Acclaimed Contributor
Dennis Handly
Posts: 25,427
Registered: ‎03-06-2006
Message 7 of 7 (384 Views)

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.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.