compile Linux DC++ 1.1.0 with Openindiana 151a7

Asked by mlampe

Hello,

I am trying to compile Linux DC++ 1.1.0 under openindiana 151a7 (Patched to October, 10, 2012).
I solved the dependencys (packages, libraries,... to compile this).
But I get a Problem when wulforutil.cc should be compiled.

The following are the error messages i get:

g++ -o build/release/gui/WulforUtil.o -c -I/usr/g++/include -O3 -fomit-frame-pointer -R/usr/lib -I/usr/g++/include -DHAVE_IFADDRS_H -DHAVE_LIBNOTIFY -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -DICONV_CONST=const -D_DATADIR='"/home/mlampe/linuxdcppfinal/share"' -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D_PTHREADS -DPACKAGE='"linuxdcpp"' -I. -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 linux/WulforUtil.cc
linux/WulforUtil.cc: In static member function 'static void WulforUtil::registerIcons()':
linux/WulforUtil.cc:461:2: error: reference to 'map' is ambiguous
/usr/include/net/if.h:97:9: error: candidates are: struct map
/usr/gcc/4.6/lib/gcc/i386-pc-solaris2.11/4.6.3/../../../../include/c++/4.6.3/bits/stl_map.h:88:11: error: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
linux/WulforUtil.cc:461:12: error: expected primary-expression before ',' token
linux/WulforUtil.cc:461:20: error: expected primary-expression before '>' token
linux/WulforUtil.cc:461:22: error: 'icons' was not declared in this scope
linux/WulforUtil.cc:491:7: error: reference to 'map' is ambiguous
/usr/include/net/if.h:97:9: error: candidates are: struct map
/usr/gcc/4.6/lib/gcc/i386-pc-solaris2.11/4.6.3/../../../../include/c++/4.6.3/bits/stl_map.h:88:11: error: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
linux/WulforUtil.cc:491:17: error: expected primary-expression before ',' token
linux/WulforUtil.cc:491:25: error: expected primary-expression before '>' token
linux/WulforUtil.cc:491:26: error: '::const_iterator' has not been declared
linux/WulforUtil.cc:491:43: error: expected ';' before 'i'
linux/WulforUtil.cc:491:62: error: 'i' was not declared in this scope
scons: *** [build/release/gui/WulforUtil.o] Error 1
scons: building terminated because of errors.

Is there anybody who can help me so solve this problem, please?

thanking you in advance
mlampe

Question information

Language:
English Edit question
Status:
Solved
For:
LinuxDC++ Edit question
Assignee:
No assignee Edit question
Solved by:
Razzloss
Solved:
Last query:
Last reply:
Revision history for this message
Best Razzloss (razzloss) said :
#1

Crap that's still in there? I thought I fixed it already. Anyway should compile, if you change the references from map to std::map in lines 461 and 491.

So line 461 should be
std::map<string, string> icons;
and 491
for (std::map<string, string>::const_iterator i = icons.begin(); i != icons.end(); ++i)

--RZ

Revision history for this message
mlampe (hohesd) said :
#2

Thank you very much for the super fast, very well working solution for my problem.

kind regards
mlampe

Revision history for this message
mlampe (hohesd) said :
#3

Thanks Razzloss, that solved my question.