Op Do, 21 januari, 2010 14:15, schreef Simon Horton:
> Hello,
>
> I have fossil source code: fossil-src-20091220213451
>
> I have setup Ming and MSYS (http://www.mingw.org/wiki/msys). Attempting to
> compile gives me an error caused by a missing zlib.h. I am guessing this
> means I need to include source code for zlib. Can someone point me in the
> right direction to get fossil compiled from scratch? Here is the full
> output:
>
>
> $ make -f Makefile.w32
> gcc -g -O2 -o translate ./src/translate.c
> ./translate ./src/add.c >add_.c
> ./translate ./src/allrepo.c >allrepo_.c
> ./translate ./src/bag.c >bag_.c
> ./translate ./src/blob.c >blob_.c
> ./translate ./src/branch.c >branch_.c
> ./translate ./src/browse.c >browse_.c
> ./translate ./src/captcha.c >captcha_.c
> ./translate ./src/cgi.c >cgi_.c
> ./translate ./src/checkin.c >checkin_.c
> ./translate ./src/checkout.c >checkout_.c
> ./translate ./src/clearsign.c >clearsign_.c
> ./translate ./src/clone.c >clone_.c
> ./translate ./src/comformat.c >comformat_.c
> ./translate ./src/configure.c >configure_.c
> ./translate ./src/construct.c >construct_.c
> ./translate ./src/content.c >content_.c
> ./translate ./src/db.c >db_.c
> ./translate ./src/delta.c >delta_.c
> ./translate ./src/deltacmd.c >deltacmd_.c
> ./translate ./src/descendants.c >descendants_.c
> ./translate ./src/diff.c >diff_.c
> ./translate ./src/diffcmd.c >diffcmd_.c
> ./translate ./src/doc.c >doc_.c
> ./translate ./src/encode.c >encode_.c
> ./translate ./src/file.c >file_.c
> ./translate ./src/finfo.c >finfo_.c
> ./translate ./src/http.c >http_.c
> ./translate ./src/http_socket.c >http_socket_.c
> ./translate ./src/http_transport.c >http_transport_.c
> ./translate ./src/info.c >info_.c
> ./translate ./src/login.c >login_.c
> ./translate ./src/main.c >main_.c
> ./translate ./src/manifest.c >manifest_.c
> ./translate ./src/md5.c >md5_.c
> ./translate ./src/merge.c >merge_.c
> ./translate ./src/merge3.c >merge3_.c
> ./translate ./src/name.c >name_.c
> ./translate ./src/pivot.c >pivot_.c
> ./translate ./src/pqueue.c >pqueue_.c
> ./translate ./src/printf.c >printf_.c
> ./translate ./src/rebuild.c >rebuild_.c
> ./translate ./src/report.c >report_.c
> ./translate ./src/rss.c >rss_.c
> ./translate ./src/rstats.c >rstats_.c
> ./translate ./src/schema.c >schema_.c
> ./translate ./src/search.c >search_.c
> ./translate ./src/setup.c >setup_.c
> ./translate ./src/sha1.c >sha1_.c
> ./translate ./src/shun.c >shun_.c
> ./translate ./src/skins.c >skins_.c
> ./translate ./src/stat.c >stat_.c
> ./translate ./src/style.c >style_.c
> ./translate ./src/sync.c >sync_.c
> ./translate ./src/tag.c >tag_.c
> ./translate ./src/th_main.c >th_main_.c
> ./translate ./src/timeline.c >timeline_.c
> ./translate ./src/tkt.c >tkt_.c
> ./translate ./src/tktsetup.c >tktsetup_.c
> ./translate ./src/undo.c >undo_.c
> ./translate ./src/update.c >update_.c
> ./translate ./src/url.c >url_.c
> ./translate ./src/user.c >user_.c
> ./translate ./src/verify.c >verify_.c
> ./translate ./src/vfile.c >vfile_.c
> ./translate ./src/wiki.c >wiki_.c
> ./translate ./src/wikiformat.c >wikiformat_.c
> ./translate ./src/winhttp.c >winhttp_.c
> ./translate ./src/xfer.c >xfer_.c
> ./translate ./src/zip.c >zip_.c
> gcc -g -O2 -o mkindex ./src/mkindex.c
> ./mkindex add_.c allrepo_.c bag_.c blob_.c branch_.c browse_.c captcha_.c
> cgi_.c
>  checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c
> construc
> t_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c
> diffcmd_.c
> doc
> _.c encode_.c file_.c finfo_.c http_.c http_socket_.c http_transport_.c
> info_.c
> login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c
> pqueue_.
> c printf_.c rebuild_.c report_.c rss_.c rstats_.c schema_.c search_.c
> setup_.c s
> ha1_.c shun_.c skins_.c stat_.c style_.c sync_.c tag_.c th_main_.c
> timeline_.c t
> kt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c
> wiki_.c wi
> kiformat_.c winhttp_.c xfer_.c zip_.c >page_index.h
> gcc -g -O2 -o makeheaders ./src/makeheaders.c
> awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $1}'
> ./src/../manifest.uuid
>>VE
> RSION.h
> awk '{ printf "#define MANIFEST_VERSION \"[%.10s]\"\n", $1}'
> ./src/../manifest.
> uuid >>VERSION.h
> awk '$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n",
> substr($2,1,10),substr(
> $2,12)}'  ./src/../manifest >>VERSION.h
> ./makeheaders  add_.c:add.h allrepo_.c:allrepo.h bag_.c:bag.h
> blob_.c:blob.h
> bra
> nch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h
> checkin_.c:
> checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h
> comfo
> rmat_.c:comformat.h configure_.c:configure.h construct_.c:construct.h
> content_.c
> :content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h
> descendants_.c:des
> cendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h
> encode_.c:encode.h f
> ile_.c:file.h finfo_.c:finfo.h http_.c:http.h http_socket_.c:http_socket.h
> http_
> transport_.c:http_transport.h info_.c:info.h login_.c:login.h
> main_.c:main.h
> man
> ifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h
> name_.c:nam
> e.h pivot_.c:pivot.h pqueue_.c:pqueue.h printf_.c:printf.h
> rebuild_.c:rebuild.h
> report_.c:report.h rss_.c:rss.h rstats_.c:rstats.h schema_.c:schema.h
> search_.c:
> search.h setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h skins_.c:skins.h
> stat_.c
> :stat.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h th_main_.c:th_main.h
> timeli
> ne_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h
> update_.c:up
> date.h url_.c:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h
> wiki_.c:w
> iki.h wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h xfer_.c:xfer.h
> zip_.c:zip.
> h ./src/sqlite3.h ./src/th.h VERSION.h
> touch headers
> gcc -Os -Wall -DFOSSIL_I18N=0 -L/mingw/lib -I/mingw/include  -I. -I./src
> -o
> add.
> o -c add_.c
> gcc -Os -Wall -DFOSSIL_I18N=0 -L/mingw/lib -I/mingw/include  -I. -I./src
> -o
> allr
> epo.o -c allrepo_.c
> gcc -Os -Wall -DFOSSIL_I18N=0 -L/mingw/lib -I/mingw/include  -I. -I./src
> -o
> bag.
> o -c bag_.c
> gcc -Os -Wall -DFOSSIL_I18N=0 -L/mingw/lib -I/mingw/include  -I. -I./src
> -o
> blob
> .o -c blob_.c
> blob_.c:28:18: zlib.h: No such file or directory
> blob_.c: In function `blob_compress':
> blob_.c:725: warning: implicit declaration of function `compress'
> blob_.c: In function `blob_compress2':
> blob_.c:755: error: `z_stream' undeclared (first use in this function)
> blob_.c:755: error: (Each undeclared identifier is reported only once
> blob_.c:755: error: for each function it appears in.)
> blob_.c:755: error: syntax error before "stream"
> blob_.c:764: error: `stream' undeclared (first use in this function)
> blob_.c:764: error: `alloc_func' undeclared (first use in this function)
> blob_.c:764: error: syntax error before numeric constant
> blob_.c:765: error: `free_func' undeclared (first use in this function)
> blob_.c:765: error: syntax error before numeric constant
> blob_.c:769: warning: implicit declaration of function `deflateInit'
> blob_.c:772: warning: implicit declaration of function `deflate'
> blob_.c:776: error: `Z_FINISH' undeclared (first use in this function)
> blob_.c:778: warning: implicit declaration of function `deflateEnd'
> blob_.c: In function `blob_uncompress':
> blob_.c:818: warning: implicit declaration of function `uncompress'
> blob_.c:820: error: `Z_OK' undeclared (first use in this function)
> make: *** [blob.o] Error 1
>
>
> /Simon Horton
> _______________________________________________
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
The easy thing to do is to download from gnuwin32.sf.net the zlib packages.
binary and developer and install them in your mingw tree.

-- 
Rene de Zwart

_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to