0

I am trying to compile ncurses-5.7 from source and after running ./configure I get the following error:

configure: error: Your compiler does not appear to recognize prototypes.
You have the following choices:
        a. adjust your compiler options
        b. get an up-to-date compiler
        c. use a wrapper such as unproto

how can I fix this error?

j0k
  • 22,600
  • 28
  • 79
  • 90
Ibrahim
  • 1,247
  • 3
  • 13
  • 21

2 Answers2

0

As configure output suggests, you should either install an HPUX version of gcc or use unproto as a wrapper

Hasturkun
  • 35,395
  • 6
  • 71
  • 104
  • gcc was installed on the system. export CC=gcc doesn't work, so I checked the configure and there is following line which cause this issue. export CC="cc". so after commenting that line the configure script run successfully. – Ibrahim Sep 16 '10 at 15:50
0

Commenting the following line in configure file worked.

export CC="cc"

Got the answer from Here.

Ibrahim
  • 1,247
  • 3
  • 13
  • 21
  • If that was your problem, you should have run ./configure CC=gcc – Hasturkun Sep 16 '10 at 16:16
  • I did but the configure is setting the variable again based on if [ "`uname -s`" = "HP-UX" ] condition, therefore I have commented out that line so it cannot reset the variable again. – Ibrahim Sep 16 '10 at 16:20