lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev Problem with ncurses


From: Pierre
Subject: lynx-dev Problem with ncurses
Date: Fri, 6 Dec 2002 18:21:26 +0100

Hi,

I try to configure lynx2.8.5dev.11 on my GNU/Linux system and I got this :

[...]
checking if we can link to ssl library... yes
checking for screen type... ncurses
checking for ncurses header in include-path... curses.h
checking for ncurses version... 5.3.20021012
checking for Gpm_Open in -lgpm... yes
checking for initscr in -lgpm... yes
checking for initscr... no
checking for initscr in -lncurses... no
checking for -lncurses in /usr/local/lib... no
checking for -lncurses in /usr/lib... no
configure: error: Cannot link ncurses library



Looking at config.log the problem is :

[...]
configure:5410: checking for screen type
configure:6200: checking for ncurses header in include-path
configure:6228: gcc -s -c -O3 -march=i686 -I/usr/local/BerkeleyDB.4.1/include -D_GNU_SOURCE -DLINUX conftest.c 1>&5
configure:6419: checking for ncurses version
configure:6478: gcc -s -o conftest -O3 -march=i686 -I/usr/local/BerkeleyDB.4.1/include -D_GNU_SOURCE -DLINUX -L/usr/local/BerkeleyDB.4.1/lib -lpthread conftest.c -lssl -lcrypto -lssl 1>&5
configure:6509: checking for Gpm_Open in -lgpm
configure:6528: gcc -s -o conftest -O3 -march=i686 -I/usr/local/BerkeleyDB.4.1/include -D_GNU_SOURCE -DLINUX -L/usr/local/BerkeleyDB.4.1/lib -lpthread conftest.c -lgpm -lssl -lcrypto -lssl 1>&5
configure:6544: checking for initscr in -lgpm
configure:6563: gcc -s -o conftest -O3 -march=i686 -I/usr/local/BerkeleyDB.4.1/include -D_GNU_SOURCE -DLINUX -L/usr/local/BerkeleyDB.4.1/lib -lpthread conftest.c -lgpm -lssl -lcrypto -lssl 1>&5
configure:6647: checking for initscr
configure:6675: gcc -s -o conftest -O3 -march=i686 -I/usr/local/BerkeleyDB.4.1/include -D_GNU_SOURCE -DLINUX -L/usr/local/BerkeleyDB.4.1/lib -lpthread conftest.c -lssl -lcrypto -lssl 1>&5
/tmp/ccSI2ONd.o: In function `main':
/tmp/ccSI2ONd.o(.text+0xa): undefined reference to `initscr'
collect2: ld returned 1 exit status
configure: failed program was:
#line 6652 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char initscr(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char initscr();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_initscr) || defined (__stub___initscr)
choke me
#else
initscr();
#endif

; return 0; }
configure:6695: checking for initscr in -lncurses
configure:6705: gcc -s -o conftest -O3 -march=i686 -I/usr/local/BerkeleyDB.4.1/include -D_GNU_SOURCE -DLINUX -L/usr/local/BerkeleyDB.4.1/lib -lpthread conftest.c -lncurses -lssl -lcrypto -lssl 1>&5
/usr/lib/libncurses.so: undefined reference to `gpm_fd'
/usr/lib/libncurses.so: undefined reference to `Gpm_Open'
/usr/lib/libncurses.so: undefined reference to `Gpm_GetEvent'
collect2: ld returned 1 exit status
configure: failed program was:
#line 6698 "configure"
#include "confdefs.h"
#include <curses.h>
int main() {
initscr()
; return 0; }
configure:6766: checking for -lncurses in /usr/local/lib
configure:6776: gcc -s -o conftest -O3 -march=i686 -I/usr/local/BerkeleyDB.4.1/include -D_GNU_SOURCE -DLINUX -L/usr/local/BerkeleyDB.4.1/lib -lpthread conftest.c -L/usr/local/lib -lncurses -lssl -lcrypto -lssl 1>&5
/usr/lib/libncurses.so: undefined reference to `gpm_fd'
/usr/lib/libncurses.so: undefined reference to `Gpm_Open'
/usr/lib/libncurses.so: undefined reference to `Gpm_GetEvent'
collect2: ld returned 1 exit status
configure: failed program was:
#line 6769 "configure"
#include "confdefs.h"
#include <curses.h>
int main() {
initscr()
; return 0; }
configure:6766: checking for -lncurses in /usr/lib
configure:6776: gcc -s -o conftest -O3 -march=i686 -I/usr/local/BerkeleyDB.4.1/include -D_GNU_SOURCE -DLINUX -L/usr/local/BerkeleyDB.4.1/lib -lpthread conftest.c -L/usr/lib -lncurses -lssl -lcrypto -lssl 1>&5
/usr/lib/libncurses.so: undefined reference to `gpm_fd'
/usr/lib/libncurses.so: undefined reference to `Gpm_Open'
/usr/lib/libncurses.so: undefined reference to `Gpm_GetEvent'
collect2: ld returned 1 exit status
configure: failed program was:
#line 6769 "configure"
#include "confdefs.h"
#include <curses.h>
int main() {
initscr()
; return 0; }



I have ncurses 5.3 that is compiled with gpm support, so I think that adding -lgpm
to the compilation lines should fix it.


Best regards,

Pierre.

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]