Comment 8 for bug 7709

Revision history for this message
In , Martin Michlmayr (tbm) wrote : Re: Bug#269366: screen: ftbfs [sparc] no tgetent - no screen

* Thomas Dickey <email address hidden> [2004-09-01 08:20]:
> just for the record, libncursesw also provides tgetent (the cited
> log doesn't show enough detail to say whether it is related).

It looks like some build dependency is missing. When I build the
package in a normal system, it works and I get:

configure: checking select return value...
- select can't count
configure: checking for tgetent...
configure: checking libcurses...
- you use the terminfo database
configure: checking ospeed...

However, in a minimal chroot with only the build dependencies listed
by screen, I get:

configure: checking select return value...
- select can't count
configure: checking for tgetent...
configure: checking libcurses...
configure: checking libtermcap...
configure: checking libtermlib...
configure: checking libncurses...
configure: error: !!! no tgetent - no screen
make: *** [configure-stamp] Error 1

The full log is:

Automatic build of screen_4.0.2-4 on deprecation by sbuild/i386 1.169
Build started at 20041002-1110
******************************************************************************
Checking available source versions...
Fetching source files...
Reading Package Lists...
Building Dependency Tree...
Need to get 857kB of source archives.
Get:1 ftp://ftp-uxsup.csx.cam.ac.uk unstable/main screen 4.0.2-4 (dsc) [620B]
Get:2 ftp://ftp-uxsup.csx.cam.ac.uk unstable/main screen 4.0.2-4 (tar) [841kB]
Get:3 ftp://ftp-uxsup.csx.cam.ac.uk unstable/main screen 4.0.2-4 (diff) [15.7kB]
Fetched 857kB in 0s (3919kB/s)
Download complete and in download only mode
** Using build dependencies supplied by package:
Build-Depends: libncursesw5-dev, texinfo, libpam0g-dev, base-passwd (>= 2.0.3.4), debhelper (>> 4.1.17)
Checking for already installed source dependencies...
libncursesw5-dev: missing
texinfo: missing
libpam0g-dev: missing
base-passwd: already installed (in sufficient version 3.5.8 >= 2.0.3.4)
debhelper: missing
Checking for source dependency conflicts...
  /usr/bin/sudo /usr/bin/apt-get --purge $CHROOT_OPTIONS -q -y install libncursesw5-dev texinfo libpam0g-dev debhelper
Reading Package Lists...
Building Dependency Tree...
The following extra packages will be installed:
  debconf-utils file gettext gettext-base html2text intltool-debian libmagic1
  libncursesw5 po-debconf
Suggested packages:
  dh-make cvs libncurses5-dev tetex-bin
The following NEW packages will be installed:
  debconf-utils debhelper file gettext gettext-base html2text intltool-debian
  libmagic1 libncursesw5 libncursesw5-dev libpam0g-dev po-debconf texinfo
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/4110kB of archives.
After unpacking 13.0MB of additional disk space will be used.
Selecting previously deselected package libmagic1.
(Reading database ... 8073 files and directories currently installed.)
Unpacking libmagic1 (from .../libmagic1_4.10-3_i386.deb) ...
Selecting previously deselected package file.
Unpacking file (from .../archives/file_4.10-3_i386.deb) ...
Selecting previously deselected package gettext-base.
Unpacking gettext-base (from .../gettext-base_0.14.1-5_i386.deb) ...
Selecting previously deselected package libncursesw5.
Unpacking libncursesw5 (from .../libncursesw5_5.4-4_i386.deb) ...
Selecting previously deselected package texinfo.
Unpacking texinfo (from .../texinfo_4.7-2.2_i386.deb) ...
Selecting previously deselected package debconf-utils.
Unpacking debconf-utils (from .../debconf-utils_1.4.37_all.deb) ...
Selecting previously deselected package html2text.
Unpacking html2text (from .../html2text_1.3.2a-1_i386.deb) ...
Selecting previously deselected package gettext.
Unpacking gettext (from .../gettext_0.14.1-5_i386.deb) ...
Selecting previously deselected package intltool-debian.
Unpacking intltool-debian (from .../intltool-debian_0.30+20040213_all.deb) ...
Selecting previously deselected package po-debconf.
Unpacking po-debconf (from .../po-debconf_0.8.13_all.deb) ...
Selecting previously deselected package debhelper.
Unpacking debhelper (from .../debhelper_4.2.20_all.deb) ...
Selecting previously deselected package libncursesw5-dev.
Unpacking libncursesw5-dev (from .../libncursesw5-dev_5.4-4_i386.deb) ...
Selecting previously deselected package libpam0g-dev.
Unpacking libpam0g-dev (from .../libpam0g-dev_0.76-22_i386.deb) ...
Setting up libmagic1 (4.10-3) ...

Setting up file (4.10-3) ...
Setting up gettext-base (0.14.1-5) ...

Setting up libncursesw5 (5.4-4) ...

Setting up texinfo (4.7-2.2) ...

Setting up debconf-utils (1.4.37) ...

Setting up html2text (1.3.2a-1) ...

Setting up gettext (0.14.1-5) ...

Setting up intltool-debian (0.30+20040213) ...
Setting up po-debconf (0.8.13) ...
Setting up debhelper (4.2.20) ...
Setting up libncursesw5-dev (5.4-4) ...
Setting up libpam0g-dev (0.76-22) ...

Checking correctness of source dependencies...
------------------------------------------------------------------------------
dpkg-source: extracting screen in screen-4.0.2
dpkg-buildpackage: source package is screen
dpkg-buildpackage: source version is 4.0.2-4
dpkg-buildpackage: host architecture is i386
 /usr/bin/fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f configure-stamp build-stamp
# clean up after the build process
/usr/bin/make clean
make[1]: Entering directory `/build/tbm/screen-4.0.2'
make[1]: *** No rule to make target `clean'. Stop.
make[1]: Leaving directory `/build/tbm/screen-4.0.2'
make: [clean] Error 2 (ignored)
rm -rf config.status
dh_clean
 debian/rules build
dh_testdir
./configure --prefix=/usr \
     --infodir='$(prefix)/share/info' \
     --mandir='$(prefix)/share/man' \
     --with-socket-dir=/var/run/screen \
     --enable-pam \
     --with-pty-mode=0620 \
     --with-pty-group=5 \
     --enable-rxvt_osc \
     --with-sys-screenrc=/etc/screenrc
this is screen version 4.0.2
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking for library containing strerror... none required
checking for gawk... no
checking for mawk... mawk
checking for a BSD-compatible install... /usr/bin/install -c
configure: checking for buggy tools...
- sh is 'GNU bash, version 3.00.13(1)-release (i386-pc-linux-gnu)'.
- sed is 'GNU sed version 4.1.2'.
checking if a system-wide socket dir should be used... yes
checking for the socket dir... "/var/run/screen"
configure: checking for MIPS...
configure: checking for Ultrix...
configure: checking for butterfly...
configure: checking for POSIX.1...
- you have a POSIX system
configure: checking for System V...
configure: checking for sequent/ptx...
configure: checking SVR4...
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
configure: checking for Solaris 2.x...
configure: checking BSD job jontrol...
- you have jobcontrol
configure: checking setreuid...
configure: checking seteuid...
configure: checking select...
configure: checking fifos...
- your fifos are usable
configure: checking for broken fifo implementation...
- your implementation is ok
configure: checking sockets...
- your sockets are usable
configure: checking socket implementation...
- you are normal
- both sockets and fifos usable. let's take fifos.
configure: checking select return value...
- select can't count
configure: checking for tgetent...
configure: checking libcurses...
configure: checking libtermcap...
configure: checking libtermlib...
configure: checking libncurses...
configure: error: !!! no tgetent - no screen
make: *** [configure-stamp] Error 1
******************************************************************************
Build finished at 20041002-1110
FAILED [dpkg-buildpackage died]
------------------------------------------------------------------------------
  /usr/bin/sudo dpkg --root=/home/tbm/build/chroot-unstable --purge po-debconf intltool-debian libncursesw5-dev libmagic1 gettext file libpam0g-dev html2text gettext-base debhelper debconf-utils texinfo libncursesw5
(Reading database ... 8786 files and directories currently installed.)
Removing libncursesw5-dev ...
Removing libpam0g-dev ...
Removing debhelper ...
Removing debconf-utils ...
Removing texinfo ...
Removing libncursesw5 ...
Purging configuration files for libncursesw5 ...
Removing po-debconf ...
Removing intltool-debian ...
Removing gettext ...
Removing file ...
Purging configuration files for file ...
Removing html2text ...
Purging configuration files for html2text ...
Removing gettext-base ...
Removing libmagic1 ...
Purging configuration files for libmagic1 ...
******************************************************************************
Finished at 20041002-1110
Build needed 00:00:05, 2984k disk space

--
Martin Michlmayr
http://www.cyrius.com/