On Thu, Jan 19, 2012 at 2:32 AM, ROuNIN <[email protected]> wrote:
> Hello!
> I still get the following:
>
> pcc  -o 8.out app_rand.8 apps.8 asn1pars.8 ca.8 ciphers.8 crl.8
> crl2p7.8 dgst.8 dh.8 dhparam.8 dsa.8 dsaparam.8 ec.8 ecparam.8 enc.8
> engine.8 errstr.8 gendh.8 gendsa.8 genrsa.8 nseq.8 ocsp.8 openssl.8
> passwd.8 pkcs12.8 pkcs7.8 pkcs8.8 prime.8 rand.8 req.8 rsa.8 rsautl.8
> s_cb.8 s_client.8 s_server.8 s_socket.8 s_time.8 sess_id.8 smime.8
> speed.8 spkac.8 verify.8 version.8 x509.8 /386/lib/ape/libssl.a /386/
> lib/ape/libcrypto.a
> ar vu /386/lib/ape/libregexp.a regcomp.8 regerror.8 regexec.8 regsub.8
> regaux.8 rregexec.8 rregsub.8
> ar vu /386/lib/ape/libutf.a rune.8 runestrcat.8 runestrchr.8
> runestrcmp.8 runestrcpy.8 runestrdup.8 runestrlen.8 runestrecpy.8
> runestrncat.8 runestrncmp.8 runestrncpy.8 runestrrchr.8 runestrstr.8
> runetype.8 utfecpy.8 utflen.8 utfnlen.8 utfrrune.8 utfrune.8 utfutf.8
> ar vu /386/lib/ape/libv.a getpass.8 tty.8 rand.8 nrand.8 getfields.8
> min.8 max.8 error.8 nap.8
> pcc -c /sys/src/cmd/gs/zlib/gzio.c
> /sys/src/cmd/gs/zlib/gzio.c:181[stdin:1575] function args not checked:
> fdopen
> /sys/src/cmd/gs/zlib/gzio.c:627[stdin:1995] incompatible types: "INT"
> and "VOID" for op "AS"
> pcc: cpp: 8c 9278: error
> mk: pcc -c /sys/src/cmd/gs/zlib/gzio.c  : exit status=rc 9275: pcc
> 9277: cpp: 8c 9278: error
> mk: for (i in ...  : exit status=rc 5839: rc 9272: mk 9274: error
> mk: cd lib mk all  : exit status=rc 5831: mk 5834: error
> mk: mk lib.all mk ...  : exit status=rc 5828: mk 5830: error
> mk: date for (i ...  : exit status=rc 5075: rc 5825: mk 5827: error
> term%
>
> What do I need to do? Sorry, I may need an extra detailed explanation
> on what to do.
> ROuNIN
>

I just saw this yesterday. Basically, vsnprintf may return an int or
nothing depending on your library (in APE, it depends on whether or
not you've defined _C99_SPRINTF_EXTENSION). By default, APE is going
to give you a vsnprintf that returns void, but the code expects it to
return int. You can get around this by adding -DHAS_vsnprintf_void to
the CFLAGS variable in /sys/src/ape/lib/z/mkfile.


John

Reply via email to