Discussion:
/ape/libcrypto.a ??none??: /386/lib/ape/libssl.a: first entry not symbol header too many errors pcc: 8l: 8l 1453: error
(too old to reply)
ROuNIN
2011-12-22 11:15:41 UTC
Permalink
Hello all,
I don't know what I've done - came back my virtual Plan9 installation
and get this after ages...of being away.
I did this :
------------------------------------------------------------------------------------------------------------------------------------------------------------------
term% cd /sys/src
term% mk
mk all, install, clean, nuke, release, kernels, or libs
term% mk all
Thu Dec 22 18:16:10 EST 2011
ar vu /386/lib/lib9p.a auth.8 dirread.8 fid.8 file.8 intmap.8 listen.8
mem.8 req.8 parse.8 post.8 rfork.8 srv.8 thread.8 uid.8 util.8
ar vu /386/lib/libString.a s_alloc.8 s_append.8 s_array.8 s_copy.8
s_getline.8 s_grow.8 s_memappend.8 s_nappend.8 s_parse.8 s_putc.8
s_rdinstack.8 s_read.8 s_read_line.8 s_reset.8 s_terminate.8 s_tolower.
8 s_unique.8
.
.
.
.
lib.8 pcy_map.8 pcy_node.8 pcy_tree.8 v3_addr.8 v3_akey.8 v3_akeya.8
v3_alt.8 v3_asid.8 v3_bcons.8 v3_bitst.8 v3_conf.8 v3_cpols.8 v3_crld.
8 v3_enum.8 v3_extku.8 v3_genn.8 v3_ia5.8 v3_info.8 v3_int.8 v3_lib.8
v3_ncons.8 v3_ocsp.8 v3_pci.8 v3_pcia.8 v3_pcons.8 v3_pku.8 v3_pmaps.8
v3_prn.8 v3_purp.8 v3_skey.8 v3_sxnet.8 v3_utl.8 v3err.8 e_4758cca.8
e_aep.8 e_atalla.8 e_chil.8 e_cswift.8 e_gmp.8 e_nuron.8 e_sureware.8
e_ubsec.8
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
??none??: /386/lib/ape/libssl.a: first entry not symbol header
??none??: /386/lib/ape/libcrypto.a: first entry not symbol header
app_RAND_load_file: undefined: RAND_file_name
app_RAND_load_file: undefined: RAND_egd
app_RAND_load_file: undefined: RAND_load_file
app_RAND_load_file: undefined: RAND_status
app_RAND_load_file: undefined: BIO_printf
app_RAND_write_file: undefined: RAND_write_file
program_name: undefined: BUF_strlcpy
chopup_args: undefined: CRYPTO_malloc
chopup_args: undefined: CRYPTO_realloc
dump_cert_text: undefined: X509_get_subject_name
dump_cert_text: undefined: X509_NAME_oneline
dump_cert_text: undefined: BIO_puts
dump_cert_text: undefined: CRYPTO_free
dump_cert_text: undefined: X509_get_issuer_name
ui_open: undefined: UI_OpenSSL
ui_open: undefined: UI_method_get_opener
ui_read: undefined: UI_get_input_flags
ui_read: undefined: UI_get0_user_data
ui_read: undefined: UI_set_result
too many errors
pcc: 8l: 8l 1453: error
mk: pcc -o ... : exit status=rc 1450: pcc 1452: 8l: 8l 1453: error
mk: for (i in ... : exit status=rc 1433: rc 1447: mk 1449: error
mk: for (i in ... : exit status=rc 1036: rc 1430: mk 1432: error
mk: cd lib mk all : exit status=rc 1028: mk 1031: error
mk: mk lib.all mk ... : exit status=rc 1025: mk 1027: error
mk: date for (i ... : exit status=rc 272: rc 1022: mk 1024: error
term%
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Many thanks,
ROuNIN
Steve Simon
2011-12-23 09:52:44 UTC
Permalink
Post by ROuNIN
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
??none??: /386/lib/ape/libssl.a: first entry not symbol header
??none??: /386/lib/ape/libcrypto.a: first entry not symbol header
app_RAND_load_file: undefined: RAND_file_name
app_RAND_load_file: undefined: RAND_egd
...
very odd.

It openssl (for that is where your problem appears to be) builds cleanly for me.
I had a couple of small nits building openssh as plan9 has moved slightly since
the port was done, but openssl is fine.

try

cd /sys/src/ape/lib/openssl; mk nuke; mk ; mk clean

-Steve
ROuNIN
2012-01-03 10:49:18 UTC
Permalink
Hello Steve,
Thank you! I've made a bit more progress but now see this:

---------------------------------
.
.
.

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 29761: error
mk: pcc -c /sys/src/cmd/gs/zlib/gzio.c : exit status=rc 29758: pcc
29760: cpp: 8c 29761: error
mk: for (i in ... : exit status=rc 29312: rc 29755: mk 29757: error
mk: cd lib mk all : exit status=rc 29304: mk 29307: error
mk: mk lib.all mk ... : exit status=rc 29301: mk 29303: error
term% pwd
/sys/src/ape
term%
---------------------------------
Many thanks,
ROuNIN
Steve Simon
2012-01-03 17:39:02 UTC
Permalink
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 29761: error
Again, plan9 has moved a little since /sys/src/ape/z/mkfile was written,
this should sort out these two errors:

hugo% yesterday -D mkfile
diff -n /n/dump/2012/0103/sys/src/ape/lib/z/mkfile /sys/src/ape/lib/z/mkfile
/n/dump/2012/0103/sys/src/ape/lib/z/mkfile:39 c /sys/src/ape/lib/z/mkfile:39
< CFLAGS=-c
---
CFLAGS=-c -D_C99_SNPRINTF_EXTENSION -D_POSIX_SOURCE
-Steve
erik quanstrom
2012-01-03 18:19:02 UTC
Permalink
Post by Steve Simon
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 29761: error
Again, plan9 has moved a little since /sys/src/ape/z/mkfile was written,
hugo% yesterday -D mkfile
diff -n /n/dump/2012/0103/sys/src/ape/lib/z/mkfile /sys/src/ape/lib/z/mkfile
/n/dump/2012/0103/sys/src/ape/lib/z/mkfile:39 c /sys/src/ape/lib/z/mkfile:39
< CFLAGS=-c
---
CFLAGS=-c -D_C99_SNPRINTF_EXTENSION -D_POSIX_SOURCE
what's the deal with this? i don't have /sys/src/ape/lib/z, and sources doesn't have
it either. (and according to history, never has).

- erik
Lyndon Nerenberg
2012-01-03 21:05:17 UTC
Permalink
Post by erik quanstrom
what's the deal with this? i don't have /sys/src/ape/lib/z, and sources doesn't have
it either. (and according to history, never has).
An artifact of contrib/*. I forget which package pulls this in. It drove me mad the first time I discovered it, too.

These days I manually copy the source for contrib/ stuff so I can keep it out of the core /sys/src tree.
erik quanstrom
2012-01-03 21:19:18 UTC
Permalink
Post by Lyndon Nerenberg
Post by erik quanstrom
what's the deal with this? i don't have /sys/src/ape/lib/z, and sources doesn't have
it either. (and according to history, never has).
An artifact of contrib/*. I forget which package pulls this in. It drove me mad the first time I discovered it, too.
These days I manually copy the source for contrib/ stuff so I can keep it out of the core /sys/src tree.
it could be any of these

; cd /n/sources/contrib; grep 'z$|z ' */replica/*/dep
bichued/replica/python/dep:z
fgb/replica/X11/dep:freetype z
fgb/replica/freetype/dep:z
fgb/replica/magick/dep:bz2 freetype jbig jpeg lcms png tiff xml2 z
fgb/replica/nd/dep:xml2 z
fgb/replica/png/dep:z
fgb/replica/tiff/dep:z
fgb/replica/xml2/dep:z

(of course hg inherits this from python).

i don't immediately see why an added ape library should hose gs.
gs compiles fine with hg and ape/z installed.

- erik
ROuNIN
2012-01-19 10:32:20 UTC
Permalink
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
John Floren
2012-01-19 19:03:15 UTC
Permalink
Post by ROuNIN
Hello!
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
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
Federico G. Benavento
2012-01-19 19:21:10 UTC
Permalink
pushed a change hours ago, do a pull
Post by John Floren
Post by ROuNIN
Hello!
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
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
--
Federico G. Benavento
ROuNIN
2012-01-03 10:48:55 UTC
Permalink
Hello,
Error has now changed to 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
??none??: cannot open file: /386/lib/ape/libz.a
pcc: 8l: 8l 285265: error
mk: pcc -o ... : exit status=rc 285262: pcc 285264: 8l: 8l 285265:
error
mk: for (i in ... : exit status=rc 285229: rc 285259: mk 285261:
error
mk: for (i in ... : exit status=rc 284627: rc 285226: mk 285228:
error
mk: cd lib mk all : exit status=rc 284619: mk 284622: error
mk: mk lib.all mk ... : exit status=rc 284616: mk 284618: error
mk: date for (i ... : exit status=rc 281634: rc 284613: mk 284615:
error
term%
--------------------------------------------------------

ROuNIN
Steve Simon
2012-01-03 17:40:55 UTC
Permalink
Post by ROuNIN
??none??: cannot open file: /386/lib/ape/libz.a
I think if you rebuild /sys/src/ape/lib/z as described
in my previous email this should go away.

-Steve
Loading...