[ap-utils] Re: ap-utils 1.3.1

Roman Festchook ap-utils@kiev.iorta.com
Sun, 23 Mar 2003 16:26:57 +0200


On Нед 23 Бер 2003 09:52, you wrote:
> I have a few error with this utils,
> becouse it`s doesn`t build :(
>
> i use PLD, and when i`m building from spec`s have this error:
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.74387
> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.69705
> + umask 022
> + cd /home/users/builder/rpm/BUILD
> + cd ap-utils-1.3.1
> + ./configure LDFLAGS=-s CFLAGS=-O2 -march=i686 CXXFLAGS=-O2 -march=i686
> FFLAGS=-O2 -march=i686 CPPFLAGS= CC=i686-pld-linux-gcc CXX=i$
> configure: warning: LDFLAGS=-s: invalid host type
> configure: warning: CFLAGS=-O2 -march=i686: invalid host type
> configure: error: can only configure for one host and one target at a time
> error: Bad exit status from /var/tmp/rpm-tmp.69705 (%build)
>
> it`s spec file:
> <cut>
> %prep
> %setup -q
>
> %build
> %configure
> %{__make}
> <cut>
no comments - its just not my:)

> and when i build by ./configure && make this:
>
> ap-config.c:34: warning: type defaults to `int' in declaration of
> `main_sub'
> ap-config.c:34: warning: data definition has no type or storage class
> ap-config.c: In function `main':
> ap-config.c:167: `WINDOW' undeclared (first use in this function)
> ap-config.c:167: (Each undeclared identifier is reported only once
> ap-config.c:167: for each function it appears in.)
> ap-config.c:167: `win_for_title' undeclared (first use in this function)
> ap-config.c:176: warning: implicit declaration of function `initscr'
> ap-config.c:177: warning: implicit declaration of function `has_colors'
> ap-config.c:178: warning: implicit declaration of function `start_color'
> ap-config.c:179: warning: implicit declaration of function `init_pair'
> ap-config.c:179: `COLOR_BLACK' undeclared (first use in this function)
> ap-config.c:179: `COLOR_CYAN' undeclared (first use in this function)
> ap-config.c:180: `COLOR_YELLOW' undeclared (first use in this function)
> ap-config.c:180: `COLOR_BLUE' undeclared (first use in this function)
> ap-config.c:183: warning: implicit declaration of function `noraw'
> ap-config.c:184: warning: implicit declaration of function `cbreak'
> ap-config.c:185: warning: implicit declaration of function `noecho'
> ap-config.c:186: warning: implicit declaration of function `scrollok'
> ap-config.c:186: `stdscr' undeclared (first use in this function)
> ap-config.c:186: `TRUE' undeclared (first use in this function)
> ap-config.c:187: warning: implicit declaration of function `idlok'
> ap-config.c:188: warning: implicit declaration of function `keypad'
> ap-config.c:189: warning: implicit declaration of function `refresh'
> ap-config.c:192: warning: implicit declaration of function `newwin'
> ap-config.c:192: `COLS' undeclared (first use in this function)
> ap-config.c:192: `LINES' undeclared (first use in this function)
> ap-config.c:192: warning: assignment makes pointer from integer without a
> cast
> ap-config.c:193: warning: implicit declaration of function `wattrset'
> ap-config.c:193: warning: implicit declaration of function `COLOR_PAIR'
> ap-config.c:200: warning: implicit declaration of function `waddch'
> ap-config.c:201: warning: implicit declaration of function `sprintf'
> ap-config.c:203: warning: implicit declaration of function `mvwaddstr'
> ap-config.c:204: warning: implicit declaration of function `wrefresh'
> ap-config.c:207: warning: assignment makes pointer from integer without a
> cast
> ap-config.c:208: warning: implicit declaration of function `derwin'
> ap-config.c:208: warning: assignment makes pointer from integer without a
> cast
> ap-config.c:209: warning: implicit declaration of function `set_menu_win'
> ap-config.c:210: warning: implicit declaration of function `set_menu_sub'
> ap-config.c:211: warning: implicit declaration of function `attrset'
> ap-config.c:214: `ACS_BSSB' undeclared (first use in this function)
> ap-config.c:216: `ACS_BSBS' undeclared (first use in this function)
> ap-config.c:217: `ACS_BSSS' undeclared (first use in this function)
> ap-config.c:219: `ACS_SBSB' undeclared (first use in this function)
> ap-config.c:220: warning: implicit declaration of function `mvwaddch'
> ap-config.c:222: `ACS_SSBB' undeclared (first use in this function)
> ap-config.c:225: `ACS_SSBS' undeclared (first use in this function)
> ap-config.c:229: warning: assignment makes pointer from integer without a
> cast
> ap-config.c:233: `ACS_BBSS' undeclared (first use in this function)
> ap-config.c:238: `ACS_SBBS' undeclared (first use in this function)
> ap-config.c:239: warning: assignment makes pointer from integer without a
> cast
> ap-config.c:240: warning: implicit declaration of function `wclear'
> make[2]: *** [ap-config.o] Error 1
> make[2]: Leaving directory
> `/home/users/builder/rpm/BUILD/ap-utils-1.3.1/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/users/builder/rpm/BUILD/ap-utils-1.3.1'
Seems you dont have ncurses headers installed (package like ncurses-devel).

-- 
Roman Festchook
Network Engineer
RF2-UANIC FRA11-RIPE