Discussion:
Error building Tcl9 on minimalistic Debian
(too old to reply)
Uwe Schmitz
2024-12-05 14:31:46 UTC
Permalink
Folks,

I try to build Tcl9 from sources on a minmalistic Debian installation.
At least it has no zip installed. It seems that the build process
then uses minizip which is part of the release.
I saw that minizip is build and used succesfully at least once.

But later on I get this error (german lang/localisation):
---------------------------------------------------------------
<snip>
creating libthread.vfs/thread_library (prepare compression)
creating libthread3.0.0.zip from libthread.vfs/thread_library
cd libthread.vfs && /home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/unix/pkgs8/thread3.0.0/minizip -o -r ../libthread3.0.0.zip *
/bin/bash: Zeile 5: /home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/unix/pkgs8/thread3.0.0/minizip: Datei oder Verzeichnis nicht gefunden
make[1]: *** [Makefile:233: libthread3.0.0.zip] Fehler 127
make[1]: Verzeichnis »/home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/unix/pkgs8/thread3.0.0« wird verlassen
make: *** [Makefile:2070: packages] Fehler 2
---------------------------------------------------------------

It seems that the thread package uses minizip in the wrong place.
Can anyone confirm this or does anyone know how to patch?
(beside installing zip...)

Many thanks in advance
Uwe
Ashok
2024-12-07 08:00:09 UTC
Permalink
This is a commonly reported issue. Afaik, there is no current
alternative to installing zip. It's possible specifying
"--disable-zipfs" as part of the configure step might work but not
tested it myself. (It would install the Tcl scripts as separate files
similar to 8.6 instead of appending them to the shared library.)

/Ashok
Post by Uwe Schmitz
Folks,
I try to build Tcl9 from sources on a minmalistic Debian installation.
At least it has no zip installed. It seems that the build process
then uses minizip which is part of the release.
I saw that minizip is build and used succesfully at least once.
---------------------------------------------------------------
<snip>
creating libthread.vfs/thread_library (prepare compression)
creating libthread3.0.0.zip from libthread.vfs/thread_library
cd libthread.vfs && /home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/unix/
pkgs8/thread3.0.0/minizip -o -r ../libthread3.0.0.zip *
/bin/bash: Zeile 5: /home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/unix/
pkgs8/thread3.0.0/minizip: Datei oder Verzeichnis nicht gefunden
make[1]: *** [Makefile:233: libthread3.0.0.zip] Fehler 127
make[1]: Verzeichnis »/home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/
unix/pkgs8/thread3.0.0« wird verlassen
make: *** [Makefile:2070: packages] Fehler 2
---------------------------------------------------------------
It seems that the thread package uses minizip in the wrong place.
Can anyone confirm this or does anyone know how to patch?
(beside installing zip...)
Many thanks in advance
Uwe
Uwe Schmitz
2024-12-09 11:05:58 UTC
Permalink
I believe that this is a build configuration error. The minizip tool is
build succesfully before and can be found in the unix folder.
/bin/bash: Zeile 5: /home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/unix/ pkgs8/thread3.0.0/minizip: Datei oder Verzeichnis nicht gefunden
there is an extra blank between .../tcl9.0.0/unix an the rest. Simply
append minizip and it should be ok.

Uwe
This is a commonly reported issue. Afaik, there is no current alternative to installing zip. It's possible specifying "--disable-zipfs" as part of the configure step might work but not tested it myself. (It would install the Tcl scripts as separate files similar to 8.6 instead of appending them to the shared library.)
/Ashok
Folks,
I try to build Tcl9 from sources on a minmalistic Debian installation.
At least it has no zip installed. It seems that the build process
then uses minizip which is part of the release.
I saw that minizip is build and used succesfully at least once.
---------------------------------------------------------------
<snip>
creating libthread.vfs/thread_library (prepare compression)
creating libthread3.0.0.zip from libthread.vfs/thread_library
cd libthread.vfs && /home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/unix/ pkgs8/thread3.0.0/minizip -o -r ../libthread3.0.0.zip *
/bin/bash: Zeile 5: /home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/unix/ pkgs8/thread3.0.0/minizip: Datei oder Verzeichnis nicht gefunden
make[1]: *** [Makefile:233: libthread3.0.0.zip] Fehler 127
make[1]: Verzeichnis »/home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/ unix/pkgs8/thread3.0.0« wird verlassen
make: *** [Makefile:2070: packages] Fehler 2
---------------------------------------------------------------
It seems that the thread package uses minizip in the wrong place.
Can anyone confirm this or does anyone know how to patch?
(beside installing zip...)
Many thanks in advance
Uwe
Uwe Schmitz
2024-12-09 16:56:31 UTC
Permalink
When I change the ZIP_PROG line in pkgs/thread/configure:

# It is not an error if an installed version of Zip can't be located.
# We can use the locally distributed minizip instead
ZIP_PROG="./minizip${EXEEXT_FOR_BUILD}"
ZIP_PROG_OPTIONS="-o -r"

to
ZIP_PROG="../../minizip${EXEEXT_FOR_BUILD}"

the build runs succesful to the end.

Nevertheless I don't think it's the right place. Usually the
configure script is build by autotools. May be a build expert
can have a look at this.

Ah, and the blank in the path ist not there. Seems to result from
copy/paste. Sorry for that.
Post by Uwe Schmitz
I believe that this is a build configuration error. The minizip tool is
build succesfully before and can be found in the unix folder.
/bin/bash: Zeile 5: /home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/unix/ pkgs8/thread3.0.0/minizip: Datei oder Verzeichnis nicht gefunden
there is an extra blank between .../tcl9.0.0/unix an the rest. Simply
append minizip and it should be ok.
Uwe
This is a commonly reported issue. Afaik, there is no current alternative to installing zip. It's possible specifying "--disable-zipfs" as part of the configure step might work but not tested it myself. (It would install the Tcl scripts as separate files similar to 8.6 instead of appending them to the shared library.)
/Ashok
Folks,
I try to build Tcl9 from sources on a minmalistic Debian installation.
At least it has no zip installed. It seems that the build process
then uses minizip which is part of the release.
I saw that minizip is build and used succesfully at least once.
---------------------------------------------------------------
<snip>
creating libthread.vfs/thread_library (prepare compression)
creating libthread3.0.0.zip from libthread.vfs/thread_library
cd libthread.vfs && /home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/unix/ pkgs8/thread3.0.0/minizip -o -r ../libthread3.0.0.zip *
/bin/bash: Zeile 5: /home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/unix/ pkgs8/thread3.0.0/minizip: Datei oder Verzeichnis nicht gefunden
make[1]: *** [Makefile:233: libthread3.0.0.zip] Fehler 127
make[1]: Verzeichnis »/home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/ unix/pkgs8/thread3.0.0« wird verlassen
make: *** [Makefile:2070: packages] Fehler 2
---------------------------------------------------------------
It seems that the thread package uses minizip in the wrong place.
Can anyone confirm this or does anyone know how to patch?
(beside installing zip...)
Many thanks in advance
Uwe
Ashok
2024-12-10 06:10:09 UTC
Permalink
This issue is fixed in the upcoming Tcl 9.0.1 and Thread 3.0.1. You may
build from the repository heads if you need it immediately.
Post by Uwe Schmitz
Folks,
I try to build Tcl9 from sources on a minmalistic Debian installation.
At least it has no zip installed. It seems that the build process
then uses minizip which is part of the release.
I saw that minizip is build and used succesfully at least once.
---------------------------------------------------------------
<snip>
creating libthread.vfs/thread_library (prepare compression)
creating libthread3.0.0.zip from libthread.vfs/thread_library
cd libthread.vfs && /home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/unix/
pkgs8/thread3.0.0/minizip -o -r ../libthread3.0.0.zip *
/bin/bash: Zeile 5: /home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/unix/
pkgs8/thread3.0.0/minizip: Datei oder Verzeichnis nicht gefunden
make[1]: *** [Makefile:233: libthread3.0.0.zip] Fehler 127
make[1]: Verzeichnis »/home/schmitzu/ent/buildt9/toolsBuild/tcl9.0.0/
unix/pkgs8/thread3.0.0« wird verlassen
make: *** [Makefile:2070: packages] Fehler 2
---------------------------------------------------------------
It seems that the thread package uses minizip in the wrong place.
Can anyone confirm this or does anyone know how to patch?
(beside installing zip...)
Many thanks in advance
Uwe
Uwe Schmitz
2024-12-10 08:50:23 UTC
Permalink
Many Thanks!

Loading...