Re: Conflict between curses.h

From: Chafik,Basim (basim.chafik_at_PLX.COM)
Date: 01/27/05

  • Next message: faisalq . (faisalq): "Transeferring file and executing commands"
    Date:         Thu, 27 Jan 2005 12:59:31 -0800
    To: aix-l@Princeton.EDU
    
    

    change the LIBPATH (and/or LD_LIBRARY_PATH) environment variable to point to
    the gcc curses.h path before the /usr/incluse/curses.h path

    Basim Chafik
    Senior Systems Analyst
    IBM Certified Advanced Technical Expert (CATE)
    1.800.688.4895
    basim.chafik@plx.com
    plexus (Division of BancTec)

    -----Original Message-----
    From: Yard, John [mailto:jyard@AIS.UCLA.EDU]
    Sent: Thursday, January 27, 2005 3:40 PM
    To: aix-l@Princeton.EDU
    Subject: Conflict between curses.h

    I am compiling a product ( lftp ) using gcc
    and I an getting a compilation error than
    is a conflict between the AIX curses.h
    /usr/include/curses.h and the gcc curses.h
    - I am using the toolbox gcc - in /opt/freeware.

    I am sure this is very simple, but what do I need to do to
    have gcc use it's curses.h ?

    Thks,

    John Yard
    UCLA

    Making all in src
            if /bin/sh ../libtool --silent --tag=CXX --mode=compile
    /usr/bin/g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -O2
    -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti
    -fno-implement-inlines -Winline -MT lftp_tinfo.lo -MD -MP -MF
    ".deps/lftp_tinfo.Tpo" -c -o lftp_tinfo.lo lftp_tinfo.cc; then mv -f
    ".deps/lftp_tinfo.Tpo" ".deps/lftp_tinfo.Plo"; else rm -f
    ".deps/lftp_tinfo.Tpo"; exit 1; fi
    In file included from lftp_tinfo.cc:27:
    /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/curses.h:
    1996: error: declaration
       of C function `int mvwprintw(WINDOW*, int, int, ...)' conflicts with
    /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/curses.h:
    382: error: previous
       declaration `int mvwprintw(WINDOW*, int, int, char*, ...)' here
    /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/curses.h:
    1997: error: declaration
       of C function `int mvwscanw(WINDOW*, int, int, ...)' conflicts with
    /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/curses.h:
    383: error: previous
       declaration `int mvwscanw(WINDOW*, int, int, char*, ...)' here
    /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/curses.h:
    1999: error: declaration
       of C function `int overwrite(WINDOW*, WINDOW*)' conflicts with
    /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/curses.h:
    1274: error: previous
       declaration `int overwrite(const WINDOW*, WINDOW*)' here
    /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/curses.h:
    2002: error: declaration
       of C function `int waddstr(WINDOW*, char*)' conflicts with
    /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/curses.h:
    1280: error: previous
       declaration `int waddstr(WINDOW*, const char*)' here
    /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/curses.h:
    2012: error: declaration
       of C function `int wprintw(WINDOW*, ...)' conflicts with
    /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/curses.h:
    385: error: previous
       declaration `int wprintw(WINDOW*, char*, ...)' here
    /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/curses.h:
    2014: error: declaration
       of C function `int wscanw(WINDOW*, ...)' conflicts with
    /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/curses.h:
    385: error: previous
       declaration `int wscanw(WINDOW*, char*, ...)' here
    make: 1254-004 The error code from the last command is 1.

    Stop.
    make: 1254-004 The error code from the last command is 1.


  • Next message: faisalq . (faisalq): "Transeferring file and executing commands"

    Relevant Pages

    • compiling kernel
      ... scripts/kconfig/qconf.h:51: error: `e' was not declared in this scope ... scripts/kconfig/qconf.h:73: error: `int updateList' redeclared as different ... scripts/kconfig/qconf.h:8: error: forward declaration of `class ConfigList' ... ConfigLineEdit' ...
      (alt.os.linux.suse)
    • DBI install problems
      ... before "bool" ... to `int' in declaration of `Perl_Gv_AMupdate' ... definition has no type or storage class ...
      (perl.dbi.users)
    • make Buildworld fails...why?
      ... type defaults to `int' in declaration of `_nc_tracing' ... data definition has no type or storage class ...
      (freebsd-questions)
    • Re: gcc prototype oddity
      ... [correctly produces an error on gcc, but said error has weird contents] ... > 'int promotion' assumption will no longer be ... specifier shall be given in the declaration specifiers in each ... > implementation of the C99 spec in the error handling ...
      (comp.lang.c)
    • Compilation problem
      ... "PRIntn" ... no type or storage class ... `int' in declaration of `_PR_MD_GETFILEINFO' ...
      (comp.unix.bsd.freebsd.misc)