#46 NetBSD: `SO_NOSIGPIPE' undeclared

open
None
5
2008-01-23
2008-01-22
Chris Brookes
No

Hi,

I'm working with SVN586 on NetBSD 3.0

After following instructions and trying to compile I get a fail with:

/home/fuppes/fuppes/src
bash-2.05b$ make
make all-am
/bin/ksh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I/usr/pkg/include/libxml2 -I/usr/pkg/include -I/usr/pkg/include -g -O2 -MT HTTPServer.lo -MD -MP -MF .deps/HTTPServer.Tpo -c -o HTTPServer.lo `test -f 'lib/HTTP/HTTPServer.cpp' || echo './'`lib/HTTP/HTTPServer.cpp
g++ -DHAVE_CONFIG_H -I. -I/usr/pkg/include/libxml2 -I/usr/pkg/include -I/usr/pkg/include -g -O2 -MT HTTPServer.lo -MD -MP -MF .deps/HTTPServer.Tpo -c lib/HTTP/HTTPServer.cpp -fPIC -DPIC -o .libs/HTTPServer.o
lib/HTTP/HTTPServer.cpp: In constructor `
CHTTPServer::CHTTPServer(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)':
lib/HTTP/HTTPServer.cpp:97: error: `SO_NOSIGPIPE' undeclared (first use this
function)
lib/HTTP/HTTPServer.cpp:97: error: (Each undeclared identifier is reported only
once for each function it appears in.)
*** Error code 1

Stop.
make: stopped in /home/fuppes/fuppes/src
*** Error code 1

Desperate to get it working I commented out line 56 #define USE_SO_NOSIGPIPE in lib/HTTP/HTTPServer.cpp, and the compile completed. The daemon launches and streams one file without issue and then explodes as the stream is finished, presumably because it's not handling the socket termination because of my change.

Any help appreciated.

Discussion

  • Ulrich Völkel
    Ulrich Völkel
    2008-01-23

    Logged In: YES
    user_id=1228080
    Originator: NO

    Hard to say what causes the error. I will set up a NetBSD and debug the stuff.
    Thanks for reporting.

     
  • Ulrich Völkel
    Ulrich Völkel
    2008-01-23

    • assigned_to: nobody --> u-voelkel
     
  • Ulrich Völkel
    Ulrich Völkel
    2008-03-02

    Logged In: YES
    user_id=1228080
    Originator: NO

    can you please try again with svn 601?

    - Uli