Bacula: try to compile on hpux11-31 (477 Views)
Reply
Valued Contributor
Posts: 71
Registered: ‎11-25-2013
Message 1 of 7 (477 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
Posts: 25,612
Registered: ‎03-06-2006
Message 2 of 7 (454 Views)

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

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

Valued Contributor
Posts: 71
Registered: ‎11-25-2013
Message 3 of 7 (425 Views)

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

Yes

 

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

 

Acclaimed Contributor
Posts: 25,612
Registered: ‎03-06-2006
Message 4 of 7 (422 Views)

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

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

 

Has it been included in attr.c?

Valued Contributor
Posts: 71
Registered: ‎11-25-2013
Message 5 of 7 (414 Views)

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

No it wasn't,now is working.

Thanks

 

 

Valued Contributor
Posts: 71
Registered: ‎11-25-2013
Message 6 of 7 (412 Views)

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

My mistake..includedir was wrong.
With correct include dir compile fine
Acclaimed Contributor
Posts: 25,612
Registered: ‎03-06-2006
Message 7 of 7 (406 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.