Re: Bacula: try to compile on HP-UX 11-31 (228 Views)
Reply
Advisor
uxbeginner22
Posts: 36
Registered: ‎11-25-2013
Message 1 of 7 (251 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,877
Registered: ‎03-06-2006
Message 2 of 7 (228 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 (199 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,877
Registered: ‎03-06-2006
Message 4 of 7 (196 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 (188 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 (186 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,877
Registered: ‎03-06-2006
Message 7 of 7 (180 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