Skip to content

Build fails with gcc-4.6, glibc-2.13, boost-1.46.1 #325

@ghost

Description

Sorry for my english. Building of bitcoin fails with gcc-4.6, glibc-2.13, boost-1.46.1 and wxWidgets-2.9.1:


g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -DUSE_UPNP=1 -DBOOST_FILESYSTEM_DEPRECATED -I/include/  -I/usr/lib/wx/include/gtk2-unicode-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -DGUI -o obj/util.o util.cpp
util.cpp: In function 'void GetDataDir(char*)':
util.cpp:715:9: error: 'create_directory' is not a member of 'boost::filesystem'
make: *** [obj/util.o] Error 1

and


g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -DUSE_UPNP=1 -DBOOST_FILESYSTEM_DEPRECATED -I/include/  -I/usr/lib/wx/include/gtk2-unicode-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -DGUI -o obj/net.o net.cpp
net.cpp: In function 'void ThreadMapPort2(void*)':
net.cpp:1067:63: error: too few arguments to function 'UPNPDev* upnpDiscover(int, const char*, const char*, int, int, int*)'
/usr/include/miniupnpc/miniupnpc.h:53:1: note: declared here
net.cpp:1081:58: error: too few arguments to function 'int UPNP_AddPortMapping(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)'
/usr/include/miniupnpc/upnpcommands.h:117:1: note: declared here
make: *** [obj/net.o] Error 1

Now sorry for my patch, but with this bitcoin can be compiled: http://pastebin.com/GQ6urzzS
I use ccache and /include/ for boost headers(see changes in makefile.unix), but this may not be necessary to other.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions