Pierre Abbat phma at
Fri Mar 11 15:23:09 PST 2011

I'm trying to compile Bitcoin and I get the following (after configuring 
wxWidgets correctly and installing a few packages):

# gmake -f ./makefile.unix
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/local/include/wx-2.9" -I"/usr/pkg/include" -I"/usr/pkg/include/db5" -I"/usr/local/lib/wx/include/gtk2-unicode-static-2.9" -DGUI -o 
obj/net.o net.cpp
net.cpp: In function 'bool ConnectSocket(const CAddress&, SOCKET&)':
net.cpp:70: error: 'SO_NOSIGPIPE' was not declared in this scope
net.cpp: In function 'bool BindListenPort(std::string&)':
net.cpp:1254: error: 'SO_NOSIGPIPE' was not declared in this scope
gmake: *** [obj/net.o] Error 1

I look at net.cpp and find this:

#ifdef BSD
    int set = 1;
    setsockopt(hSocket, SOL_SOCKET, SO_NOSIGPIPE, (void*)&set, sizeof(int));

#ifdef BSD
    // Different way of disabling SIGPIPE on BSD
    setsockopt(hListenSocket, SOL_SOCKET, SO_NOSIGPIPE, (void*)&nOne, 

Is something else missing from an include file, or is there no SO_NOSIGPIPE on 


I believe in Yellow when I'm in Sweden and in Black when I'm in Wales.

More information about the Users mailing list