On Thursday 26 May 2005 15:31, mokumura wrote:
>  I find the option:
>
>  #define HAVE_OLD_SOCKOPT 1

Congratulations. I forgot about that option.  It should have been 
automatically set, but oh well ...

>
>  On config.h and bnet.c is ok to compile, but on jcr.c other errors:
>
> g++   -c   -I. -I..  -g -O2 -Wall  jcr.c
> jcr.c: In function `struct JCR * new_jcr(int, void (*)(JCR *))':
> jcr.c:214: assignment to `void (*)()' from `void (*)(int)'
> make: *** [jcr.o] Error 1

This is a lot more problematic as it seems you have old style signals 
(non-POSIX) that I have never attempted to support.  

On alternative for solving this is to pull signal.h into src/lib, and modify 
the include in it in src/bacula.h to pull in signal.h from src/lib.  Then 
modify signal.h to have the correct POSIX prototypes.  This may not be so 
easy, and you may have to write some conversion subroutines.  

The other alternative would be to modify all the Bacula signal handlers.  The 
argument to the handler is used, so this may not be easy either.

>
>  I try to compile bacula version 1.36.2
>
>  Thanks
>  Mauricio Okumura.
>
> Em (22:37:06), [EMAIL PROTECTED] escreveu:
> >You didn't mention what version you are trying to build, but as far as I
>
> can
>
> >tell by assuming 1.36.3, your system does not have POSIX compliant
> >functions,
> >so you are out of luck unless you can get such a library (and header
> > files) somewhere -- for setsockopt -- for modify the code to work with
> > your
>
> system.
>
> >Quite possibly, there will be other functions with similar problems ...
> >
> >On Wednesday 25 May 2005 20:08, mokumura wrote:
> >> I have an NEC UX/4800 like SVR4, on compile i have the errors:
> >>
> >> g++ -c -I. -I.. -g -O2 -Wall bnet.c
> >> bnet.c: In function `struct BSOCK * bnet_open(JCR *, const char *, char
>
> *,
>
> >> char *, int, int *)':
> >> bnet.c:712: ANSI C++ forbids implicit conversion from `void *' in
>
> argument
>
> >> passing
> >> bnet.c:737: ANSI C++ forbids implicit conversion from `void *' in
>
> argument
>
> >> passing
> >> bnet.c: In function `bool bnet_set_buffer_size(BSOCK *, unsigned int,
> >> int)': bnet.c:858: ANSI C++ forbids implicit conversion from `void *' in
> >> argument passing
> >> bnet.c:882: ANSI C++ forbids implicit conversion from `void *' in
>
> argument
>
> >> passing
> >> make: *** [bnet.o] Error 1
> >>
> >> I try to build client for bacula, my enviroment are gcc 2.95.3, but some
> >> library are too old.
> >> Are there a way to bypass this error ?
> >>
> >> Thanks
> >> Mauricio Okumura
> >
> >--
> >Best regards,
> >
> >Kern
> >
> > (">
> > /\
> > V_V
> >
> >----------

-- 
Best regards,

Kern

  (">
  /\
  V_V


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to