Forum OpenACS Development: Re: unzip in AOLserver / TCL ?

Posted by Gustaf Neumann on
No, the background delivery thread is not a good idea, since this is here for fast streaming. It can handle easily 1000 streaming file deliveries, but as soon you have one blocking operations, all these block immediately.

Malte, have you tried:

If performance is not critical, one can unzip in tcl as well:

Posted by Malte Sussdorff on
Thanks a lot for these links, they are indeed helpful, I will try to go with mkZipLib. The main goal was to get it into photo-album so the unzipping of multiple photos does not happen in the exec. But now I could go even further and directly process the file with TCLmagick once it is extracted, which is great. If I am successful I will let you know.
Posted by Malte Sussdorff on
Hi Gustaf,

Okay, I have to admit that I failed to compile mkZipLib due to my lack of knowledge of C compilers.

Here is the command I used to compile mkZiplib10:

gcc -DUSE_TCL_STUBS=1 -I/usr/local/aolserver45/include -I/usr/local/src/aolserver45/tcl8.4.17/generic -I/usr/local/src/aolserver45/tcl8.4.17/unix -L/usr/local/src/aolserver45/tcl8.4.17/unix -ltclstub8.4 -ltcl8.4 -lz -o mkZiplib10.c zip.c unzip.c

It fails with /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crt1.o: In function `_start':../sysdeps/i386/elf/start.S:115: undefined reference to `main'

If I don't use TCL_STUBS it compiles, but I have no idea how I can load the resulting .so file. Although it is off topic, I hope you can give me a hand.