Menu

#160 Compilation issue on Solaris 10 / SolarisStudio 12.3

v1.1.x
closed
5
2015-02-08
2013-02-08
No

I did these compilation steps:

./configure CFLAGS=-DUNICODE CPPFLAGS=-DUNICODE
make

Compilation failed with error:

/bin/bash ../libtool --tag=CXX   --mode=compile CC -DHAVE_CONFIG_H   -DINSIDE_LOG4CPLUS -I../include -I../include -DNDEBUG -DUNICODE -D_GNU_SOURCE=1 -D_REENTRANT -no-suppress  -g +w -features=zla -library=stlport4 -library=Crun -xldscope=hidden -mt -D_REENTRANT  -xthreadvar -c -o socket-unix.lo socket-unix.cxx
libtool: compile:  CC -DHAVE_CONFIG_H -DINSIDE_LOG4CPLUS -I../include -I../include -DNDEBUG -DUNICODE -D_GNU_SOURCE=1 -D_REENTRANT -g +w -features=zla -library=stlport4 -library=Crun -xldscope=hidden -mt -D_REENTRANT -xthreadvar -c socket-unix.cxx  -KPIC -DPIC -o .libs/socket-unix.o
"socket-unix.cxx", line 169: Error: The operation "const char* + std::wstring " is illegal.
"socket-unix.cxx", line 279: Warning (Anachronism): Formal argument accept_func of type int(*)(int,sockaddr*,void*) in call to::accept_wrap<sockaddr*, void>(int(*)(int,sockaddr*,void*), int, sockaddr*, unsigned*) is being passed extern "C" int(*)(int,sockaddr*,void*).
1 Error(s) and 1 Warning(s) detected.
make[1]: *** [socket-unix.lo] Error 1
make[1]: Leaving directory `/BUILD/SOFT/tools/log4cplus/1.1.0/src'
make: *** [all-recursive] Error 1

Discussion

  • Mikael Tintinger

    For your information 1.1.1rc3 version compilation is OK.

     
  • Václav Haisman

    Václav Haisman - 2013-02-08

    Thank you for the bug report. This is already fixed by revision 885 on 1.1.x branch.

     
  • Václav Haisman

    Václav Haisman - 2013-02-08
    • labels: --> solaris, fixed
    • status: open --> closed
    • assigned_to: Václav Zeman
     
  • Václav Haisman

    Václav Haisman - 2013-02-08
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,9 +1,13 @@
     I did these compilation steps:
    +
    +~~~~
     ./configure CFLAGS=-DUNICODE CPPFLAGS=-DUNICODE
     make
    +~~~~
    
     Compilation failed with error:
    
    +~~~~
     /bin/bash ../libtool --tag=CXX   --mode=compile CC -DHAVE_CONFIG_H   -DINSIDE_LOG4CPLUS -I../include -I../include -DNDEBUG -DUNICODE -D_GNU_SOURCE=1 -D_REENTRANT -no-suppress  -g +w -features=zla -library=stlport4 -library=Crun -xldscope=hidden -mt -D_REENTRANT  -xthreadvar -c -o socket-unix.lo socket-unix.cxx
     libtool: compile:  CC -DHAVE_CONFIG_H -DINSIDE_LOG4CPLUS -I../include -I../include -DNDEBUG -DUNICODE -D_GNU_SOURCE=1 -D_REENTRANT -g +w -features=zla -library=stlport4 -library=Crun -xldscope=hidden -mt -D_REENTRANT -xthreadvar -c socket-unix.cxx  -KPIC -DPIC -o .libs/socket-unix.o
     "socket-unix.cxx", line 169: Error: The operation "const char* + std::wstring " is illegal.
    @@ -12,3 +16,4 @@
     make[1]: *** [socket-unix.lo] Error 1
     make[1]: Leaving directory `/BUILD/SOFT/tools/log4cplus/1.1.0/src'
     make: *** [all-recursive] Error 1
    +~~~~
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.