#73 slibtoolize - AM_PROG_LEX - mv: cannot move 'tmp-xmlif.c' to '../lex.yyxmlif/xmlif.c': No such file or directory
Closed 6 months ago by orbea. Opened 8 months ago by orbea.

OS: Gentoo
slibtool: e40c34a
xmlto: 0.0.28

When using slibtoolize to autoreconf xmlto it fails.

make[1]: Entering directory '/var/tmp/portage/app-text/xmlto-0.0.28-r11/work/xmlto-0.0.28'
/bin/sh ./ylwrap xmlif/xmlif.l .c xmlif/xmlif.c -- flex  
updating lex.yyxmlif/xmlif.c
mv: cannot move 'tmp-xmlif.c' to '../lex.yyxmlif/xmlif.c': No such file or directory
x86_64-pc-linux-musl-gcc -DHAVE_CONFIG_H -I.     -O2 -pipe -Werror=implicit-function-declaration -Werror=implicit-int -c -o xmlif/xmlif.o xmlif/xmlif.c
xmlif/xmlif.l:46:8: error: type defaults to 'int' in declaration of 'ifsense' [-Werror=implicit-int]
   46 | static int nselections;         /* number of selections */
      |        ^~~~~~~
xmlif/xmlif.l:243:1: error: return type defaults to 'int' [-Werror=implicit-int]
  243 | int main(int argc, char *argv[])
      | ^~~~
cc1: some warnings being treated as errors
make[1]: *** [Makefile:767: xmlif/xmlif.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-text/xmlto-0.0.28-r11/work/xmlto-0.0.28'
make: *** [Makefile:598: all] Error 2

The project doesn't call LT_INIT and it doesn't seem to use libtool at all, but they do use AM_PROG_LEX which is defined in /usr/share/slibtool/slibtool.m4.

 * Package:    app-text/xmlto-0.0.28-r11:0
 * Repository: gentoo
 * Maintainer: sam@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_musl kernel_linux text
 * FEATURES:   ccache network-sandbox preserve-libs sandbox userpriv usersandbox

>>> Unpacking source...
>>> Unpacking xmlto-0.0.28.tar.bz2 to /var/tmp/portage/app-text/xmlto-0.0.28-r11/work
>>> Source unpacked in /var/tmp/portage/app-text/xmlto-0.0.28-r11/work
>>> Preparing source in /var/tmp/portage/app-text/xmlto-0.0.28-r11/work/xmlto-0.0.28 ...
 * Applying xmlto-0.0.22-format_fo_passivetex_check.patch ...
patching file format/fo/dvi
Hunk #1 succeeded at 11 with fuzz 2.
patching file format/fo/pdf
Hunk #1 succeeded at 13 with fuzz 2.
patching file format/fo/ps
Hunk #1 succeeded at 8 with fuzz 2.
 [ ok ]
 * Applying xmlto-0.0.28-allow-links.patch ...
 [ ok ]
 * Applying xmlto-0.0.28-dont-hardcode-paths.patch ...
 [ ok ]
 * Applying xmlto-0.0.28-fix-warnings.patch ...
patching file xmlif/xmlif.l
patching file xmlif/xmlif.l
patching file xmlif/xmlif.l
patching file xmlif/xmlif.l
 [ ok ]
 * Running eautoreconf in '/var/tmp/portage/app-text/xmlto-0.0.28-r11/work/xmlto-0.0.28' ...
 * Running 'aclocal -I /usr/share/slibtool --system-acdir=/var/tmp/portage/app-text/xmlto-0.0.28-r11/temp/aclocal' ...
 [ ok ]
 * Moving configure.in to configure.ac (bug #426262)
 * Running 'autoconf -I /usr/share/slibtool --force' ...
 [ ok ]
 * Running 'autoheader -I /usr/share/slibtool' ...
 [ ok ]
 * Running 'automake --add-missing --copy --force-missing' ...
 [ ok ]
 * Running elibtoolize in: xmlto-0.0.28/
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-text/xmlto-0.0.28-r11/work/xmlto-0.0.28 ...
 * econf: updating xmlto-0.0.28/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating xmlto-0.0.28/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-musl --host=x86_64-pc-linux-musl --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/xmlto-0.0.28-r11 --htmldir=/usr/share/doc/xmlto-0.0.28-r11/html --libdir=/usr/lib BASH=/bin/bash
configure: loading site script /usr/share/config.site
configure: loading site script /usr/share/config.site.d/80crossdev.conf
checking for a BSD-compatible install... /usr/lib/portage/python3.11/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... mawk
checking whether make LIBTOOL=rdlibtool sets $(MAKE)... yes
checking whether make LIBTOOL=rdlibtool supports nested variables... yes
checking for x86_64-pc-linux-musl-gcc... x86_64-pc-linux-musl-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether x86_64-pc-linux-musl-gcc accepts -g... yes
checking for x86_64-pc-linux-musl-gcc option to enable C11 features... none needed
checking whether x86_64-pc-linux-musl-gcc understands -c and -o together... yes
checking whether make LIBTOOL=rdlibtool supports the include directive... yes (GNU style)
checking dependency style of x86_64-pc-linux-musl-gcc... none
checking for flex... flex
checking for mktemp... mktemp
checking for find... find 
checking for bash... /bin/bash
checking for getopt... getopt
checking for long options support in getopt... yes
checking for paperconf... paperconf
checking for locale... locale
checking for xmllint... /usr/bin/xmllint
checking for xsltproc... /usr/bin/xsltproc
checking for dblatex... dblatex
checking for fop... fop
checking for xmltex... xmltex
checking for pdfxmltex... pdfxmltex
checking for default backend... DEFAULT
checking for lynx... lynx
checking for links... /usr/bin/links
checking for w3m... w3m
checking for tail... /usr/bin/tail
checking for grep... /bin/grep
checking for sed... /bin/sed
checking for cp... /bin/cp
checking for zip... /usr/bin/zip
checking for default web browser... w3m
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xmlto
config.status: creating xmlto.spec
config.status: creating slibtool.cfg
config.status: creating config.h
config.status: executing depfiles commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-text/xmlto-0.0.28-r11/work/xmlto-0.0.28 ...
make LIBTOOL=rdlibtool -j4 
make LIBTOOL=rdlibtool  all-am
make[1]: Entering directory '/var/tmp/portage/app-text/xmlto-0.0.28-r11/work/xmlto-0.0.28'
/bin/sh ./ylwrap xmlif/xmlif.l .c xmlif/xmlif.c -- flex  
updating lex.yyxmlif/xmlif.c
mv: cannot move 'tmp-xmlif.c' to '../lex.yyxmlif/xmlif.c': No such file or directory
x86_64-pc-linux-musl-gcc -DHAVE_CONFIG_H -I.     -O2 -pipe -Werror=implicit-function-declaration -Werror=implicit-int -c -o xmlif/xmlif.o xmlif/xmlif.c
xmlif/xmlif.l:46:8: error: type defaults to 'int' in declaration of 'ifsense' [-Werror=implicit-int]
   46 | static int nselections;         /* number of selections */
      |        ^~~~~~~
xmlif/xmlif.l:243:1: error: return type defaults to 'int' [-Werror=implicit-int]
  243 | int main(int argc, char *argv[])
      | ^~~~
cc1: some warnings being treated as errors
make[1]: *** [Makefile:767: xmlif/xmlif.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-text/xmlto-0.0.28-r11/work/xmlto-0.0.28'
make: *** [Makefile:598: all] Error 2
 * ERROR: app-text/xmlto-0.0.28-r11::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-text/xmlto-0.0.28-r11::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/xmlto-0.0.28-r11::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/xmlto-0.0.28-r11/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/xmlto-0.0.28-r11/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/xmlto-0.0.28-r11/work/xmlto-0.0.28'
 * S: '/var/tmp/portage/app-text/xmlto-0.0.28-r11/work/xmlto-0.0.28'

Metadata Update from @orbea:
- Issue status updated to: Closed (was: Open)

6 months ago

Login to comment on this ticket.

Metadata