This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Socket++ & Cygwin -- need help


Carlos Bousono wrote:
> 
> Hi,
> 
> I'm trying to compile socket++-1.11ln under cygwin (I updated cygwin
> sometime in March with the automatic tool) and I get errors while compiling.
> 
> I posted this message last week, but I have received no responses so far. I
> would appreciate any hint on what I can do.
> 

Looking at the error report, I'd start with the easier ones
like the "undefined" that would seem to reflect missing headers
or perhaps mangled references, but just start with solving
things like "SIOCGPGRP". Given the way a kazillion compilers
work on n number of boxes , getting rid of the obvious might
make the question easier to answer.

> 
> P.S. Socket++ can be downloaded from http://users.utu.fi/lanurm/socket++/
> 
> $ env CCC=g++ ./configure --prefix="/usr/local/socket++"
> creating cache ./config.cache
> checking whether make sets ${MAKE}... yes
> checking for gcc... gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking for g++... g++
> checking whether the C++ compiler (g++  ) works... yes
> checking whether the C++ compiler (g++  ) is a cross-compiler... no
> checking whether we are using GNU C++... yes
> checking whether g++ accepts -g... yes
> checking whether g++ version is >= 2.7.2... yes
> checking for ranlib... ranlib
> checking for makedepend... :
> checking how to run the C preprocessor... gcc -E
> checking how to run the C++ preprocessor... g++ -E
> checking for AIX... no
> checking for t_accept in -lnsl... no
> checking for socket in -lsocket... no
> checking for string.h... yes
> checking for memory.h... yes
> checking for _G_config.h... yes
> checking for sys/wait.h that is POSIX.1 compatible... yes
> checking for ANSI C header files... yes
> checking for pid_t... yes
> checking return type of signal handlers... void
> checking for vfork.h... no
> checking for working vfork... yes
> checking for select... yes
> checking for sys_siglist... sys_siglist
> checking for sys_errlist... sys_errlist
> checking for sys_errlist prototype... yes
> checking for signal handler arg type... ...
> checking if extern "C" wrappers are needed... no
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating test/Makefile
> creating config.h
> 
> $ make
> g++ -c  -g -fexceptions -fno-rtti -Wall -I. sockstream.C -o sockstream.o
> In file included from sockstream.C:45:
> sockstream.h:102: `MSG_MAXIOVLEN' was not declared in this scope
> sockstream.h:102: enumerator value for `msg_maxiovlen' not integer constant
> In file included from /usr/include/unistd.h:6,
>                  from sockstream.C:51:
> /usr/include/sys/unistd.h:142: declaration of C function `int
> gethostname(char *
> , unsigned int)' conflicts with
> local.h:88: previous declaration `int gethostname(char *, int)' here
> sockstream.C: In method `bool sockerr::benign() const':
> sockstream.C:167: duplicate case value `11'
> sockstream.C:165: previously used here
> sockstream.C: In method `int sockbuf::pgrp() const':
> sockstream.C:809: `SIOCGPGRP' undeclared (first use this function)
> sockstream.C:809: (Each undeclared identifier is reported only once
> sockstream.C:809: for each function it appears in.)
> sockstream.C: In method `int sockbuf::pgrp(int) const':
> sockstream.C:819: `SIOCSPGRP' undeclared (first use this function)
> sockstream.C: In method `void sockbuf::closeonexec(bool = true) const':
> sockstream.C:829: `FIOCLEX' undeclared (first use this function)
> sockstream.C:832: `FIONCLEX' undeclared (first use this function)
> make: *** [sockstream.o] Error 1
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/

-- 
--=<> Dr. Clue (A.K.A. Ian A. Storms) <>=--
--=<[]>=- http://www.drclue.net
--=<[]>=- C++ HTML JavaScript DHTML CGI TCP/IP SQL JAVA VRML NSAPI 
--=<[]>=- http://www.drclue.net/F1.cgi/HTML/HTML.html	(My famous
HTML/CGI guide.)
--=<[]>=- http://www.drclue.net/beta			(My X-BROWSER DHTML library.)



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]