[prev in list] [next in list] [prev in thread] [next in thread] 

List:       samba-vms
Subject:    RE: Error compiling samba-2_0_3 on OpenVMS.
From:       Eckart Meyer <Eckart.Meyer () gmx ! de>
Date:       2000-10-26 10:46:19
[Download RAW message or body]

> Raffaele Riccardi wrote:
> "Eckart Meyer" <Eckart.Meyer@gmx.de> wrote:
> > "Raffaele Riccardi" <riccardi@ipaf.mt.asi.it> wrote:
> > > > Whiel compiling samba 2-0.3 on an Alpha running OpenVMS
> > > > V6.2-1H2 and UCX for
> > > > OpenVMS Alpha Version V4.2, I get the following error:
> > > >
> > > > $ CC [.LIB]SIGNAL.c /OBJ=[.LIB]SIGNAL.OBJ_Alpha
> > > >
> > > > while (sys_waitpid((pid_t)-1,(int *)NULL, WNOHANG) > 0)
> > > > .................................................^
> > > > %CC-E-UNDECLARED, In this statement, "WNOHANG" is not declared.
> > > >     at line number 31 in file
> > > >     SAMBA_ROOT:[NEW_SAMBA.SAMBA-2_0_3.SOURCE.LIB]SIGNAL.C;1
> > >
> > > You forgot to tell the most important information: which 
> > > DEC-C Compiler version do you have? Obviously the header
> > > files of your version do not define WNOHANG. If you know
> > > the value, #define it yourself in [.vms]incl.h.
> > 
> > Yes, you're right.
> > 
> > It's the DEC C V5.7-004 on OpenVMS Alpha V6.2-1H2
> 
> Unfortunately, the section in WAIT.H that defines WNOHANG is
> conditionalized with
> 
> 	#if __CRTL_VER >= 70000000
> 
> There is the possibility to use the VMS V7 C RTL with VMS V6.2;
> it's documented in SYS$LIBRARY:DECC$CRTL.README.

Samba for VMS V2.0.3 does not use the shipped VMS C-RTL's but uses the
backport library which then was used to build the Samba-C-RTL. This was done to
make the binary distributions work on any OpenVMS system since VMS 5.5-2
(VAX) or 6.0 (Alpha). (BTW: The Samba C-RTL itself was built referencing other
shared images like LIB$RTL from those old systems).

To build the Samba C-RTL, I used the backport library from DEC-C V6.0
which (as far as I remember - can't check this now) has a C-RTL Version > 7.0
(i.e. __CRTL_VER *is* >= 70000000). You should upgrade to DEC-C V6.0 or higher
(or at least get a DEC$CRTL.EXE (?) from DEC-C V6.0 - this shared image
tells the compiler about the C-RTL version (__CRTL_VER) ).

Eckart


-- 
---
Eckart Meyer
iT-Ingenieurteam (www.it-ingenieurteam.de)
Braunschweig, Germany

Sent through GMX FreeMail - http://www.gmx.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic