Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#11 opensolaris compile issues

Undecided
closed
nobody
None
5
2013-03-24
2010-04-10
Anonymous
No

I'm trying to compile aria2 on opensolaris but it appears i'm getting some bad errors about constants....has anyone solved this? what am i doing wrong?

g++ -DHAVE_CONFIG_H -I. -I.. -Wall -I../lib -I../intl -I../intl -I/usr/local/in
clude -I/opt/csw/include/libxml2 -I/usr/include -I/usr/include -DLOCALEDIR=\"/u
sr/local/share/locale\" -DCA_BUNDLE=\"\" -DHAVE_CONFIG_H -D_REENTRANT -g -O2 -
MT SocketCore.o -MD -MP -MF .deps/SocketCore.Tpo -c -o SocketCore.o SocketCore.c
c
In file included from a2netcompat.h:86,
from SocketCore.h:60,
from SocketCore.cc:35:
getaddrinfo.h:190:1: warning: "EAI_NODATA" redefined
In file included from a2netcompat.h:62,
from SocketCore.h:60,
from SocketCore.cc:35:
/usr/include/netdb.h:145:1: warning: this is the location of the previous defini
tion
In file included from LogFactory.h:42,
from SocketCore.cc:57:
Logger.h: In member function bool aria2::Logger::levelEnabled(aria2::Logger::LE VEL) const': Logger.h:77: error: passingconst std::ofstream' as this' argument ofbool st
d::basic_ofstream<_CharT, _Traits>::is_open() [with _CharT = char, _Traits = std
::char_traits<char>]
' discards qualifiers

Discussion

  • tujikawa
    tujikawa
    2010-04-11

     
    Attachments
  • tujikawa
    tujikawa
    2010-04-11

    Apply attached patch and run in aria2 archive,

    LIBS="-lsocket" ./configure

    and make.

     
  • tujikawa
    tujikawa
    2013-03-24

    The latest release has the fix.

     
  • tujikawa
    tujikawa
    2013-03-24

    • status: open --> closed
    • milestone: --> Undecided