Re: Bacula: try to compile on HP-UX 11-31 (497 Views)
Reply
Trusted Contributor
Posts: 93
Registered: ‎11-25-2013
Message 1 of 7 (520 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

Highlighted
Acclaimed Contributor
Posts: 26,012
Registered: ‎03-06-2006
Message 2 of 7 (497 Views)

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

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

Trusted Contributor
Posts: 93
Registered: ‎11-25-2013
Message 3 of 7 (468 Views)

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

Yes

 

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

 

Acclaimed Contributor
Posts: 26,012
Registered: ‎03-06-2006
Message 4 of 7 (465 Views)

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

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

 

Has it been included in attr.c?

Trusted Contributor
Posts: 93
Registered: ‎11-25-2013
Message 5 of 7 (457 Views)

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

No it wasn't,now is working.

Thanks

 

 

Trusted Contributor
Posts: 93
Registered: ‎11-25-2013
Message 6 of 7 (455 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: 26,012
Registered: ‎03-06-2006
Message 7 of 7 (449 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.