nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] the build fails with --disable-color --disable-nanorc


From: Benno Schulenberg
Subject: [Nano-devel] the build fails with --disable-color --disable-nanorc
Date: Tue, 10 Sep 2013 23:16:02 +0200

Hi,

Building nano from SVN fails for me when I configure it thus:

  ./configure --disable-color --disable-nanorc ; make clean ; make

[...]
gcc  -g -O2   -o nano browser.o chars.o color.o cut.o files.o global.o help.o 
move.o nano.o prompt.o rcfile.o search.o text.o utils.o winio.o  -L/usr/lib 
-lncursesw
files.o: In function `close_buffer':
/home/ben/Repositories/NANO/src/files.c:486: undefined reference to 
`update_poshistory'
files.o: In function `do_insertfile':
/home/ben/Repositories/NANO/src/files.c:1205: undefined reference to 
`check_poshistory'
nano.o: In function `main':
/home/ben/Repositories/NANO/src/nano.c:2655: undefined reference to 
`check_poshistory'
/home/ben/Repositories/NANO/src/nano.c:2701: undefined reference to 
`check_poshistory'
collect2: ld returned 1 exit status
make[2]: *** [nano] Error 1
make[2]: Leaving directory `/home/ben/Repositories/NANO/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ben/Repositories/NANO'
make: *** [all] Error 2

With just either one of those disablers, the build succeeds.


The build also fails with --enable-tiny:

  ./configure --enable-tiny ; make clean ; make

[...]
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" 
-DSYSCONFDIR=\"/usr/local/etc\"  -I/usr/include/ncursesw   -g -O2 -MT cut.o -MD 
-MP -MF .deps/cut.Tpo -c -o cut.o cut.c
cut.c: In function 'do_cut_text':
cut.c:212: error: 'copy_text' undeclared (first use in this function)
cut.c:212: error: (Each undeclared identifier is reported only once
cut.c:212: error: for each function it appears in.)
make[2]: *** [cut.o] Error 1
make[2]: Leaving directory `/home/ben/Repositories/NANO/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ben/Repositories/NANO'
make: *** [all] Error 2


When building with just about everything disabled, the build fails too,
but I get this warning along the way:

nano.c: In function 'do_toggle':
nano.c:1406: warning: assignment discards qualifiers from pointer target type

And the final messages are:
[...]
gcc  -g -O2   -o nano browser.o chars.o color.o cut.o files.o global.o help.o 
move.o nano.o prompt.o rcfile.o search.o text.o utils.o winio.o  -lncurses
nano.o: In function `main':
/home/ben/Repositories/NANO/src/nano.c:2701: undefined reference to 
`check_poshistory'
collect2: ld returned 1 exit status
make[2]: *** [nano] Error 1
make[2]: Leaving directory `/home/ben/Repositories/NANO/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ben/Repositories/NANO'
make: *** [all] Error 2

Benno

-- 
http://www.fastmail.fm - Choose from over 50 domains or use your own




reply via email to

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