Re: Bacula: try to compile on HP-UX 11-31 (295 Views)
Reply
Advisor
uxbeginner22
Posts: 36
Registered: ‎11-25-2013
Message 1 of 7 (318 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

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,978
Registered: ‎03-06-2006
Message 2 of 7 (295 Views)

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

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

Please use plain text.
Advisor
uxbeginner22
Posts: 36
Registered: ‎11-25-2013
Message 3 of 7 (266 Views)

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

Yes

 

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

 

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,978
Registered: ‎03-06-2006
Message 4 of 7 (263 Views)

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

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

 

Has it been included in attr.c?

Please use plain text.
Advisor
uxbeginner22
Posts: 36
Registered: ‎11-25-2013
Message 5 of 7 (255 Views)

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

No it wasn't,now is working.

Thanks

 

 

Please use plain text.
Advisor
uxbeginner22
Posts: 36
Registered: ‎11-25-2013
Message 6 of 7 (253 Views)

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

My mistake..includedir was wrong.
With correct include dir compile fine
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,978
Registered: ‎03-06-2006
Message 7 of 7 (247 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.

Please use plain text.
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