Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

freewrap make error. cannot find zip.h

798 views
Skip to first unread message

Hans

unread,
Jun 15, 2013, 4:43:01 AM6/15/13
to
Hi, I'm trying to build freewrap. I suppose I already read the freewrapDocs.pdf very carefully, and I made all steps successfully except the last step. Can anybody give me an idea?

I built the zip232 and copy the zip file to "unix" directory, I even tried to copy the zip.h file to unix directory or /usr/include directory, it always complain.

Thanks in advance!


root@lin150:/home/user1/Downloads/freewrap/build/unix# make -f makefile.linux
gcc -DSTATIC_BUILD=1 -pipe -ggdb -fPIC -DSTATIC_BUILD -I/usr/X11R6/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DWITHOUT_BLT=1 -DWITHOUT_IMG=1 -DWITHOUT_SQLITE -DWITHOUT_TKHTML -DWITHOUT_TKTABLE=1 -DWITHOUT_WINICO=1 -I/share/home/Pdrive/tcl_src/zip-2.3 -DUNIX -DASMV -DASM_CRC -DNO_STRCHR -DNO_STRRCHR -DCRYPT -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -o zipmain.o -c ./../generic/zipmain.c
./../generic/zipmain.c:31:17: fatal error: zip.h: No such file or directory
compilation terminated.
make: *** [zipmain.o] Error 1
root@lin150:/home/user1/Downloads/freewrap/build/unix# ls
makefile.linux null.zip zip zip.h
root@lin150:/home/user1/Downloads/freewrap/build/unix#

paskali

unread,
Jun 15, 2013, 8:21:04 AM6/15/13
to
Hans <han...@gmail.com> wrote:

> Hi, I'm trying to build freewrap. I suppose I already read the
freewrapDocs.pdf very carefully, and I made all steps successfully except
the last step. Can anybody give me an idea?
>
> I built the zip232 and copy the zip file to "unix" directory, I even
tried to copy the zip.h file to unix directory or /usr/include directory,
it always complain.
>
> Thanks in advance!
>
>
> root@lin150:/home/user1/Downloads/freewrap/build/unix# make -f
makefile.linux
> gcc -DSTATIC_BUILD=1 -pipe -ggdb -fPIC -DSTATIC_BUILD
-I/usr/X11R6/include -I/usr/local/include -I/usr/local/include
-I/usr/local/include -DWITHOUT_BLT=1 -DWITHOUT_IMG=1 -DWITHOUT_SQLITE
-DWITHOUT_TKHTML -DWITHOUT_TKTABLE=1 -DWITHOUT_WINICO=1
-I/share/home/Pdrive/tcl_src/zip-2.3 -DUNIX -DASMV -DASM_CRC -DNO_STRCHR
-DNO_STRRCHR -DCRYPT -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -o zipmain.o -c
/../generic/zipmain.c
> ../../generic/zipmain.c:31:17: fatal error: zip.h: No such file or
directory
> compilation terminated.
> make: *** [zipmain.o] Error 1
> root@lin150:/home/user1/Downloads/freewrap/build/unix# ls
> makefile.linux null.zip zip zip.h
> root@lin150:/home/user1/Downloads/freewrap/build/unix#
>

May be this is stupid but check for reader permission of "zip.h".
In the case, type "chmod +r ./zip.h" or "chmod a+r ./zip.h"

--
Pasquale Frega
http://www.webuse.net/pm.php?u=2970

Posted using www.webuse.net

Hans

unread,
Jun 15, 2013, 1:47:51 PM6/15/13
to

>
>
> May be this is stupid but check for reader permission of "zip.h".
>
> In the case, type "chmod +r ./zip.h" or "chmod a+r ./zip.h"
>
>
>
> --
>
> Pasquale Frega
>
> http://www.webuse.net/pm.php?u=2970
>
>
>
> Posted using www.webuse.net

Thanks for response. Still does not work.

root@lin150:/home/user1/Downloads/freewrap/build/unix# chmod a+r ./zip.h
root@lin150:/home/user1/Downloads/freewrap/build/unix# make -f makefile.linux
gcc -DSTATIC_BUILD=1 -pipe -ggdb -fPIC -DSTATIC_BUILD -I/usr/X11R6/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DWITHOUT_BLT=1 -DWITHOUT_IMG=1 -DWITHOUT_SQLITE -DWITHOUT_TKHTML -DWITHOUT_TKTABLE=1 -DWITHOUT_WINICO=1 -I/share/home/Pdrive/tcl_src/zip-2.3 -DUNIX -DASMV -DASM_CRC -DNO_STRCHR -DNO_STRRCHR -DCRYPT -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -o zipmain.o -c ./../generic/zipmain.c
./../generic/zipmain.c:31:17: fatal error: zip.h: No such file or directory
compilation terminated.
make: *** [zipmain.o] Error 1
root@lin150:/home/user1/Downloads/freewrap/build/unix# ls -tl
total 164
-rw-r--r-- 1 root root 22301 Jun 14 17:00 zip.h
-rw-r--r-- 1 root root 22 Jun 14 16:55 null.zip
-rwxr-xr-x 1 root root 123013 Jun 14 16:52 zip
-rwxr--r-- 1 user1 user1 8961 Jan 17 2009 makefile.linux
root@lin150:/home/user1/Downloads/freewrap/build/unix#

paskali

unread,
Jun 15, 2013, 3:24:32 PM6/15/13
to
Hans <han...@gmail.com> wrote:

>
> >
> >
> > May be this is stupid but check for reader permission of "zip.h".
> >
> > In the case, type "chmod +r ./zip.h" or "chmod a+r ./zip.h"
> >
> >
> >
> > --
> >
> > Pasquale Frega
> >
> > http://www.webuse.net/pm.php?u=2970
> >
> >
> >
> > Posted using www.webuse.net
>
> Thanks for response. Still does not work.
>
> root@lin150:/home/user1/Downloads/freewrap/build/unix# chmod a+r ./zip.h
> root@lin150:/home/user1/Downloads/freewrap/build/unix# make -f
makefile.linux
> gcc -DSTATIC_BUILD=1 -pipe -ggdb -fPIC -DSTATIC_BUILD -I/usr/X11R6/include
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-DWITHOUT_BLT=1 -DWITHOUT_IMG=1 -DWITHOUT_SQLITE -DWITHOUT_TKHTML
-DWITHOUT_TKTABLE=1 -DWITHOUT_WINICO=1 -I/share/home/Pdrive/tcl_src/zip-2.3
-DUNIX -DASMV -DASM_CRC -DNO_STRCHR -DNO_STRRCHR -DCRYPT -DHAVE_DIRENT_H
-DHAVE_TERMIOS_H -o zipmain.o -c ./../generic/zipmain.c
> ../../generic/zipmain.c:31:17: fatal error: zip.h: No such file or
directory
> compilation terminated.
> make: *** [zipmain.o] Error 1
> root@lin150:/home/user1/Downloads/freewrap/build/unix# ls -tl
> total 164
> -rw-r--r-- 1 root root 22301 Jun 14 17:00 zip.h
> -rw-r--r-- 1 root root 22 Jun 14 16:55 null.zip
> -rwxr-xr-x 1 root root 123013 Jun 14 16:52 zip
> -rwxr--r-- 1 user1 user1 8961 Jan 17 2009 makefile.linux
> root@lin150:/home/user1/Downloads/freewrap/build/unix#

find on codes for zip.h and check their #include.
It should be #include <zip.h> but may be prefered #include "zip.h" if
that file is in the same directory of code.

Hans

unread,
Jun 16, 2013, 1:27:02 AM6/16/13
to

>
>
> find on codes for zip.h and check their #include.
>
> It should be #include <zip.h> but may be prefered #include "zip.h" if
>
> that file is in the same directory of code.
>
>
I tried to put zip.h in /usr/include directory, then this error changed to another error: cannot find tailor.h . then I have to put tailor.h into /usr/include directory too, then error change to another file cannot find.

I did not keep try it, I suppose I made something wrong, it should not need me to move so many files manually.

paskali

unread,
Jun 16, 2013, 6:37:43 AM6/16/13
to
May be you have to set the enviroment variables, where the compiler look to find
the includes. I do not use so often gcc, so i do not know so well it.

Type set and make a look, type "set | less" or "set | more".

Read gcc docs, too.

Make a look at the code, too.

For the rest, i do not know.

Good luck.

Regards

Pasquale

Uwe Klein

unread,
Jun 16, 2013, 7:25:31 AM6/16/13
to
Just had a look at that makefile.linux

as there is no configure script you have fix
the various pathes on your own.
( or do you have the same setup that was used in the src package ? )

uwe

gone2c...@gmail.com

unread,
Jun 16, 2013, 8:01:43 AM6/16/13
to
On Saturday, June 15, 2013 4:43:01 AM UTC-4, Hans wrote:
> Hi, I'm trying to build freewrap. I suppose I already read the freewrapDocs.pdf very carefully, and I made all steps successfully except the last step. Can anybody give me an idea?
>

You need to adapt the application's Makefile (makefile.linux) to your specific build environment. If you structure your source code directories to look like the following then you only need to change two lines in the Makefile.

/share
> pdisk1
> fwbuild
> tcl8.6
> linux64
> tcl8.6
> tk8.6
> zip-2.32
> zlib-1.2.7

Look for the following lines in the Makefile.

## You should only need to cusomize the following two lines.
INSTALL_BASE = /usr/local
BUILD_DIR = /share/pdisk1/fwbuild/tcl$(TCLVERSIONDOT)/linux64

Make sure that BUILD_DIR points to the top of the directory tree where you have placed the TCL/TK packages you are compiling to build freeWrap.


Dennis LaBelle (freeWrap author)

Hans

unread,
Jun 17, 2013, 2:58:01 PM6/17/13
to
Hi Dennis,

Thanks for response.
I must made something wrong, I checked my makefile.linux, I cannot find definition for "BUILD_DIR", there is not that word at all.

My current code structure is like this:
root@lin150:/home/user1/Downloads/fwbuild/build/unix# ls /home/user1/Downloads/ -tl
total 86956
drwxrwxrwx 23 user1 user1 4096 Jun 17 03:51 zip232
drwxr-xr-x 4 root root 4096 Jun 17 03:42 fwbuild
drwxrwxr-x 10 user1 user1 4096 Jun 14 16:21 Tktable2.10
drwxr-xr-x 12 user1 user1 4096 Jun 14 16:04 tk8.6.0
drwxr-xr-x 13 user1 user1 4096 Jun 14 09:50 tcl8.6.0

root@lin150:/home/user1/Downloads/fwbuild/build/unix# ls /home/user1/Downloads/fwbuild/
build docs
root@lin150:/home/user1/Downloads/fwbuild/build/unix# ls /home/user1/Downloads/fwbuild/build/
generic unix win
root@lin150:/home/user1/Downloads/fwbuild/build/unix# ls /home/user1/Downloads/fwbuild/build/unix/
makefile.linux null.zip zip zip.h

I download freewrap642 from sourceforge.

root@lin150:/home/user1/Downloads/fwbuild/build/unix# ls /home/user1/Downloads/freewrapsrc642.tar.gz -tl
-rw-rw-r-- 1 user1 user1 305339 Jun 17 03:38 /home/user1/Downloads/freewrapsrc642.tar.gz

Can you instruct me how to re-organize my files and do the compile? thanks a lot!!!

gone2c...@gmail.com

unread,
Jun 23, 2013, 7:09:34 AM6/23/13
to
On Saturday, June 15, 2013 4:43:01 AM UTC-4, Hans wrote:
Ah. You are using version 6.42. I previously gave you instructions for the latest release (6.6). However, your actions for version 6.42 will be similar.

There is a small section in the Makefile which defines the paths to various directories used in the build. It looks like this:

# Locations of various directories
INSTALL_BASE = /usr/local
INSTALL_LIB = /usr/local/lib
INSTALL_INCL = /usr/local/include
TCLDIR = /share/home/Pdrive/tcl_src/tcl$(TCLVERSIONDOT)/unix
TKDIR = /share/home/Pdrive/tcl_src/tk$(TCLVERSIONDOT)/unix
INSTALLDIR = /usr/local/lib
ZIPOBJDIR = /share/home/Pdrive/tcl_src/zip-2.3

You need to adjust these paths so that they reflect the ones that you are using in your build process. The ZIPOBJDIR parameter is the one which will point to the necessary zip.h file.

Dennis LaBelle
0 new messages