Randy Polson wrote: > > Hello- > A while ago Michael Boyles had difficulty with compilation on a sun > machine. I have a similar difficulty with the same error. I used dbx to > trace dxexec and found the line 331 of src/exec/libdx/mem.c > "id = shmem(... " > returns an error. Where is shmem so I can try and trace this further? > > Thanks, > Randy > > compiler -cc, c++ > > uname -a: > > System = SunOS > Node = darkstar > Release = 5.7 > KernelID = Generic_106541-14 > Machine = sun4u > BusType = <unknown> > Serial = <unknown> > Users = <unknown> > OEM# = 0 > Origin# = 1 > NumCPU = 2 > > Michael Boyles wrote: > > > I downloaded the binary that was compiled for Sun Solaris 2.6. But, I > > am running Solaris 8 and am having problems getting the server to > > start. The error message is as follows: > > > > " Starting DX executive > > > > ... cannot get shared memory segment / failed on segment 1 of 1 needed > > segments / last call to shmget returned errno 22 cannot initialize DX > > library. " > >
It seems that the amount of shared memory is limited on your system (this is a kernel parameter, i think). Try setting DXSHMEM to -1 (export DXSHMEM=-1, with zsh) before starting dx. If that helps you could use dx this way (there is a speed penalty) or raise the maximum amount of shared memory. Cheers, Paul -- Paul Andre http://sites.netscape.net/paulandrefr
