AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  compilation problem on aix

    Posted Wed January 27, 2010 11:34 AM

    Originally posted by: RUI


    Hi,

    I am on aix 5.3 and i am using gcc 4.2.4 a the moment.
    I am having problem building clucene only on aix where it says this, can't seem to get over it:

    Making all in .
    if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -D_THREAD_SAFE -g -O2 -MT StdHeader.lo -MD -MP -MF ".deps/StdHeader.Tpo" -c -o StdHeader.lo `test -f '../src/CLucene/StdHeader.cpp' || echo './'`../src/CLucene/StdHeader.cpp; then mv -f ".deps/StdHeader.Tpo" ".deps/StdHeader.Plo"; else rm -f ".deps/StdHeader.Tpo"; exit 1; fi
    g++ -DHAVE_CONFIG_H -I. -I. -I.. -D_THREAD_SAFE -g -O2 -MT StdHeader.lo -MD -MP -MF .deps/StdHeader.Tpo -c ../src/CLucene/StdHeader.cpp -DPIC -o .libs/StdHeader.o
    In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/include/c++/powerpc-ibm-aix5.3.0.0/bits/c++locale.h:49,
    from /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/include/c++/iosfwd:45,
    from /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/include/c++/bits/stl_algobase.h:70,
    from /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/include/c++/bits/char_traits.h:46,
    from /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/include/c++/string:47,
    from /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/include/c++/stdexcept:44,
    from ./CLucene/StdHeader.h:67,
    from ../src/CLucene/StdHeader.cpp:7:
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/include/c++/cstdio:110: error: '::fgetpos' has not been declared
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/include/c++/cstdio:112: error: '::fopen' has not been declared
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/include/c++/cstdio:117: error: '::freopen' has not been declared
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/include/c++/cstdio:120: error: '::fsetpos' has not been declared
    ../src/CLucene/StdHeader.cpp:23: warning: deprecated conversion from string constant to 'wchar_t*'
    ../src/CLucene/StdHeader.cpp:24: warning: deprecated conversion from string constant to 'char*'
    make: The error code from the last command is 1.
    Any help would be greatly appreciated.

    Regards,
    rui
    #AIX-Forum


  • 2.  Re: compilation problem on aix

    Posted Wed January 27, 2010 02:30 PM

    Originally posted by: shargus


    Found this link doing a Google search:

    gcc-bugs@gcc.gnu.org/msg262919.html">http://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg262919.html

    Looks like it may address your problem.
    #AIX-Forum


  • 3.  Re: compilation problem on aix

    Posted Wed January 27, 2010 02:34 PM

    Originally posted by: shargus


    Here's the whole thread. It appears to be an issue with GCC.

    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13682
    #AIX-Forum


  • 4.  Re: compilation problem on aix

    Posted Wed January 27, 2010 08:13 PM

    Originally posted by: RUI


    Dear shargus,

    I have commented out the following undefs in cstdio for my compiler and everything compiles fine - don't know the consequence of this though but everything is fine :)

    fgetpos
    fopen
    freopen'
    fsetpos'

    Cheers,
    rui
    #AIX-Forum