[cvsnt] Can't run cvsnt init on solaris
Pierre Dehaen
pi at drever.be
Thu Sep 8 10:43:55 BST 2005
Hi,
It's now almost three days I'm trying to run cvsnt on Solaris 9, without success.
1/ I tried the compiled version cvsnt-2.5.02.2064-sol9-sparc64 from the
site:
- I checked the 64-bit support:
# isainfo -v
- I installed the pkg
- I added the service to /etc/services:
cvspserver 2401/tcp # cvs password server
- I added the daemon to /etc/inetd.conf:
cvspserver stream tcp nowait root /usr/local/bin/cvsnt \
cvsnt -f authserver
- # pkill -HUP inetd
- I copied and updated /etc/PServer.example:
# cp /etc/PServer.example /etc/PServer
# vi /etc/PServer
Repository0=/export/home1/cvs
Repository0Name=/cvs
Repository0Description=My Repository
Repository0Default=1
Repository0Publish=1
[other lines are left commented out]
- I checked the libraries:
# ldd /usr/local/bin/sparcv9/cvslockd
# ldd /usr/local/bin/sparcv9/cvsnt
...and decided to add the following before execution:
# LD_LIBRARY_PATH=/usr/lib/fontconfig/sparcv9
# LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/sparcv9
# export LD_LIBRARY_PATH
- Note that, anyway, it is pointing to old versions of
libraries, so I tried:
# cd /usr/local/lib/sparcv9
# ln -s libmdnsclient-2.5.02.2064.so \
libmdnsclient-2.5.02.2040.so
# ln -s libcvstools-2.5.02.2064.so \
libcvstools-2.5.02.2040.so
- I started the LockServer in debug mode:
# cvslockd -d
- The /var/adm/messages says:
...CVS Lock service initialised successfully
- I checked the ports:
# pfiles 554
554: /usr/local/bin/cvslockd
Current rlimit: 256 file descriptors
[...snip...]
4: S_IFSOCK mode:0666 dev:270,0 ino:26712 uid:0 gid:0 size:0
O_RDWR
sockname: AF_INET 127.0.0.1 port: 2402
- I telneted to the LockServer (I don't see the welcome message
and it hangs whatever I type):
# telnet localhost 2402
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
fdsq
fdq
^D
^C
^Z
Hangup
- I tried to start the cvslockd in debug mode:
# /usr/local/bin/sparcv9/cvslockd -d
Initialising socket...
Starting lock server on port 2402/tcp...
Socket bind failed: errno 126 on socket 3 (AF 26) - closing
socket
[this msg comes from the fact I don't have a IPv6 interface
initialized, I later did it and the 'bind failed' disappeared
but the hanging problem did not]
- And finally the following hangs:
# cvsnt -t -d /export/home1/cvs init
11:30:38: -> Tracelevel set to 1. PID is 2230
11:30:38: -> Session ID is 8b6432004be3f08
11:30:38: -> Session time is Thu Sep 8 09:30:38 2005
11:30:38: -> main loop with CVSROOT=/export/home1/cvs
^Z[2] + Stopped (SIGTSTP) cvsnt -t -d /export/home1/cvs init
# bg
[2] cvsnt -t -d /export/home1/cvs init&
# kill -TERM %2;kill -HUP %2
cvsnt [init aborted]: received termination signal
[2] + Done(1) cvsnt -t -d /export/home1/cvs init
# kill -TERM %1
[1] + Terminated cvslockd -d
#
[Note that I have to kill -TERM and kill -HUP the init process
to be able to stop it, Ctrl-C it in the foreground does not
work]
2/ I also tried to recompile cvsnt (after several unsuccessful
attempts to simply "./configure && make" I found the solaris
subdirectory) with gcc-3.4.2 from sunfreeware:
- gunzip & untar & cd
- Copy some files (this time I'm on a 32-bit system):
# cd solaris
# cp build_solaris32 postinstall make_install ..
# cd ..
- Run the script:
# ./build_solaris32
[it works very well]
- Install the package and follow the above procedure (but there
is no problem with the libraries nor LD_LIBRARY_PATH here)
- but the problem is the same
3/ I trussed the processes:
- The only thing that I see in the truss of cvslockd at the
moment I try to init is:
[...]
1159: poll(0xFFBFF920, 1, 1000) = 0
1159: poll(0xFFBFF920, 1, 1000) = 0
1159: poll(0xFFBFF920, 1, 1000) = 1
1159: accept(5, 0xFFBFF9E0, 0xFFBFF9DC, 1) = 6
1159: poll(0xFFBFF920, 1, 1000) (sleeping...)
1159: poll(0xFFBFF920, 1, 1000) = 0
1159: poll(0xFFBFF920, 1, 1000) = 0
[...]
- and this is the truss of the cvs init:
[...]
1169: open64("/export/home1/cvs/CVSROOT/config", O_RDONLY)
Err#2 ENOENT
1169: open("/etc/netconfig", O_RDONLY|O_LARGEFILE) = 4
1169: fcntl(4, F_DUPFD, 0x00000100) Err#22
EINVAL
1169: read(4, " #\n # T h e " N e t".., 1024) = 1024
1169: read(4, " t i c l t s s".., 1024) = 168
1169: read(4, 0x001DC0D8, 1024) = 0
1169: lseek(4, 0, SEEK_SET) = 0
1169: read(4, " #\n # T h e " N e t".., 1024) = 1024
1169: read(4, " t i c l t s s".., 1024) = 168
1169: read(4, 0x001DC0D8, 1024) = 0
1169: close(4) = 0
1169: open("/dev/udp", O_RDONLY) = 4
1169: ioctl(4, 0xC00C6982, 0xFFBFEE44) = 0
1169: close(4) = 0
1169: brk(0x001DC7E0) = 0
1169: brk(0x001DE7E0) = 0
1169: so_socket(PF_INET, SOCK_STREAM, IPPROTO_IP, "", 4) = 4
1169: connect(4, 0x001C4AA8, 16, 4) = 0
1169: setsockopt(4, tcp, TCP_NODELAY, 0xFFBFF214, 4, 1) = 0
1169: recv(4, 0xFFBFF378, 1024, 0) (sleeping...)
[it hangs here]
I'm stuck now. Can anyone give me some hints ?
TIA
Pierre
More information about the cvsnt
mailing list