[cvsnt] build error on HP-UX

Richard Wirth r.wirth at wirthware.de
Fri Jun 25 16:47:27 BST 2004


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Hello MLangas,

Friday, June 25, 2004, 5:23:18 PM, you wrote:

Mdo> I'm trying to compile cvsnt on an HP-UX 11i server. (HPPA 2.0)

Mdo> I'm getting the following error in the lockservice subdir.

Mdo> $ make
Mdo> source='server.cpp' object='server.o' libtool=no \
Mdo> depfile='.deps/server.Po' tmpdepfile='.deps/server.TPo' \
Mdo> depmode=gcc3 /bin/sh ../depcomp \
Mdo> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src  -I../lib    -g -O2 -c -o 
Mdo> server.o `test -f 'server.cpp' || echo './'`server.cpp
Mdo> server.cpp: In function `void run_server(int, int, int)':
Mdo> server.cpp:193: error: invalid conversion from `socklen_t*' to `int*'
Mdo> server.cpp:193: error:   initializing argument 3 of `int accept(int, 
Mdo> void*, int*)'
Mdo> make: *** [server.o] Error 1

strange! You have socklen_t defined, but the prototype of accept is
not using this!

change line 168 form
 #ifdef WIN32
to
 #if defined(WIN32) | defined(__hpux__)

than this schould compile...


-- 
Best regards,
 Richard                            mailto:r.wirth at wirthware.de




More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook