[Asterisk-Users] function declaration isn't a prototype
chris
chris at fivestartel.com
Mon Aug 8 22:36:26 MST 2005
hi dave,
any suggestions on myencoutrered problem below?
thnks so much.
chris
----- Original Message -----
From: "chris" <chris at fivestartel.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Monday, August 08, 2005 4:51 PM
Subject: Re: [Asterisk-Users] function declaration isn't a prototype
> hi dave,
>
> yes, it was indeed missing, so i downloaded ncurses from sunfreeware.com
> and got a new error,
>
> /usr/local/sparc-sun-solaris2.8/bin/ld: cannot find -lssl
>
> so i downloaded openssl-0.9.7g-sol9-sparc-local.gz from sun freeware,it
was
> installed in /usr/local/ssl/.. the compile did contiue, however, i have a
> new error.
>
>
>
> else \
> mv include/asterisk/version.h.tmp include/asterisk/version.h ; \
> fi
>
> rm -f include/asterisk/version.h.tmp
> make[1]: `ast_expr.a' is up to date.
> make[1]: Leaving directory `/export/home/fst/chris/cvs/asterisk'
> gcc -g -o asterisk io.o sched.o logger.o frame.o loader.o config.o
> channel.o t ranslate.o file.o
> say.o pbx.o cli.o md5.o term.o ulaw.o alaw.o callerid.o fskmod
> em.o image.o app.o cdr.o tdd.o acl.o rtp.o manager.o asterisk.o dsp.o
> chanvars.o indications.o
> autoservice.o db.o privacy.o astmm.o enum.o srv.o dns.o aescrypt.
> o aestab.o aeskey.o utils.o config_old.o plc.o jitterbuf.o dnsmgr.o
> devicestate. o netsock.o
> slinfactory.o strcompat.o ast_expr.a editline/libedit.a db1-ast/libd
> b1.a
>
stdtime/libtime.a -lncurses -lm -lpthread -ldl -lnsl -lsocket -lresolv -L/u
> sr/local/ssl/lib -lssl
> /usr/local/sparc-sun-solaris2.8/bin/ld: warning: libcrypto.so.0.9.7,
needed
> by /
> usr/local/ssl/lib/libssl.so, not found (try using -rpath or -rpath-link)
> /usr/local/sparc-sun-solaris2.8/bin/ld: warning: libgcc_s.so.1, needed by
> /usr/l ocal/ssl/lib/libssl.so,
> not found (try using -rpath or -rpath-link)
> utils.o: In function `vasprintf':
> /export/home/fst/chris/cvs/asterisk/utils.c:623: undefined reference to
> `va_copy '
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_find_type'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_enc_null'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_CIPHER_CTX_init'
> /usr/local/ssl/lib/libssl.so: undefined reference to `X509_NAME_dup'
> /usr/local/ssl/lib/libssl.so: undefined reference to `COMP_compress_block'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_rc2_cbc'
> /usr/local/ssl/lib/libssl.so: undefined reference to `sk_new_null'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `X509_STORE_get_by_subject'
> /usr/local/ssl/lib/libssl.so: undefined reference to `lh_free'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_VerifyFinal'
> /usr/local/ssl/lib/libssl.so: undefined reference to `COMP_CTX_new'
> /usr/local/ssl/lib/libssl.so: undefined reference to `sk_dup'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `X509_STORE_CTX_set_ex_data '
> /usr/local/ssl/lib/libssl.so: undefined reference to `X509_free'
> /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_get_ex_data'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BN_bin2bn'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `CRYPTO_get_ex_new_index'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_DigestFinal_ex'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `PEM_read_bio_RSAPrivateKey '
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_aes_128_cbc'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BN_bn2bin'
> /usr/local/ssl/lib/libssl.so: undefined reference to `RAND_add'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_s_socket'
> /usr/local/ssl/lib/libssl.so: undefined reference to `asn1_add_error'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BUF_MEM_grow_clean'
> /usr/local/ssl/lib/libssl.so: undefined reference to `d2i_RSAPrivateKey'
> /usr/local/ssl/lib/libssl.so: undefined reference to `sk_num'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_free_all'
> /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_up_ref'
> /usr/local/ssl/lib/libssl.so: undefined reference to
`BIO_get_retry_reason'
> /usr/local/ssl/lib/libssl.so: undefined reference to `X509_STORE_new'
> /usr/local/ssl/lib/libssl.so: undefined reference to `HMAC_Final'
> /usr/local/ssl/lib/libssl.so: undefined reference to `HMAC_Init_ex'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_md5'
> /usr/local/ssl/lib/libssl.so: undefined reference to `ASN1_object_size'
> /usr/local/ssl/lib/libssl.so: undefined reference to
`EVP_get_cipherbyname'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_rc4'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_add_cipher'
> /usr/local/ssl/lib/libssl.so: undefined reference to `ASN1_get_object'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_s_file'
> /usr/local/ssl/lib/libssl.so: undefined reference to `COMP_expand_block'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_snprintf'
> /usr/local/ssl/lib/libssl.so: undefined reference to
`d2i_RSAPrivateKey_bio'
> /usr/local/ssl/lib/libssl.so: undefined reference to `ASN1_dup'
> /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_sign'
> /usr/local/ssl/lib/libssl.so: undefined reference to `ERR_peek_error'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `PEM_read_bio_PrivateKey'
> /usr/local/ssl/lib/libssl.so: undefined reference to `lh_retrieve'
> /usr/local/ssl/lib/libssl.so: undefined reference to `X509_get_pubkey'
> /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_dup_ex_data'
> /usr/local/ssl/lib/libssl.so: undefined reference to `DH_generate_key'
> /usr/local/ssl/lib/libssl.so: undefined reference to `DH_size'
> /usr/local/ssl/lib/libssl.so: undefined reference to `i2d_ASN1_INTEGER'
> /usr/local/ssl/lib/libssl.so: undefined reference to `lh_doall_arg'
> /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_set_ex_data'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_printf'
> /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_lock'
> /usr/local/ssl/lib/libssl.so: undefined reference to `DSA_verify'
> /usr/local/ssl/lib/libssl.so: undefined reference to `sk_pop_free'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_aes_192_cbc'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_MD_CTX_cleanup'
> /usr/local/ssl/lib/libssl.so: undefined reference to `HMAC_CTX_set_flags'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_aes_256_cbc'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_puts'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `X509_verify_cert_error_str
ing'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BN_num_bits'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `ASN1_check_infinite_end'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `X509_STORE_CTX_purpose_inh
> erit'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BUF_MEM_new'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_free'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_dss1'
> /usr/local/ssl/lib/libssl.so: undefined reference to `d2i_PrivateKey'
> /usr/local/ssl/lib/libssl.so: undefined reference to `DH_new'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `X509_STORE_set_default_pat
hs'
> /usr/local/ssl/lib/libssl.so: undefined reference to `DSA_sign'
> /usr/local/ssl/lib/libssl.so: undefined reference to `DH_compute_key'
> /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_add_lock'
> /usr/local/ssl/lib/libssl.so: undefined reference to `COMP_CTX_free'
> /usr/local/ssl/lib/libssl.so: undefined reference to `sk_push'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_sha1'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_ctrl'
> /usr/local/ssl/lib/libssl.so: undefined reference to `X509_STORE_CTX_init'
> /usr/local/ssl/lib/libssl.so: undefined reference to `i2d_DHparams'
> /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_private_decrypt'
> /usr/local/ssl/lib/libssl.so: undefined reference to `ERR_put_error'
> /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_new'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_write'
> /usr/local/ssl/lib/libssl.so: undefined reference to `sk_set_cmp_func'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_PKEY_assign'
> /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_free'
> /usr/local/ssl/lib/libssl.so: undefined reference to `OBJ_NAME_add'
> /usr/local/ssl/lib/libssl.so: undefined reference to `sk_new'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_PKEY_type'
> /usr/local/ssl/lib/libssl.so: undefined reference to `d2i_ASN1_INTEGER'
> /usr/local/ssl/lib/libssl.so: undefined reference to `sk_zero'
> /usr/local/ssl/lib/libssl.so: undefined reference to `X509_verify_cert'
> /usr/local/ssl/lib/libssl.so: undefined reference to `sk_free'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_new'
> /usr/local/ssl/lib/libssl.so: undefined reference to `d2i_X509_bio'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `X509_check_private_key'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `EVP_CIPHER_CTX_cleanup'
> /usr/local/ssl/lib/libssl.so: undefined reference to `sk_value'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_DigestInit_ex'
> /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_new_ex_data'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_pop'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `EVP_PKEY_copy_parameters'
> /usr/local/ssl/lib/libssl.so: undefined reference to
`X509_get_subject_name'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_PKEY_new'
> /usr/local/ssl/lib/libssl.so: undefined reference to `i2d_X509_NAME'
> /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_public_encrypt'
> /usr/local/ssl/lib/libssl.so: undefined reference to `i2d_X509'
> /usr/local/ssl/lib/libssl.so: undefined reference to `PEM_read_bio_X509'
> /usr/local/ssl/lib/libssl.so: undefined reference to `HMAC_CTX_cleanup'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_MD_CTX_init'
> /usr/local/ssl/lib/libssl.so: undefined reference to `ERR_clear_error'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_DigestUpdate'
> /usr/local/ssl/lib/libssl.so: undefined reference to `OBJ_obj2nid'
> /usr/local/ssl/lib/libssl.so: undefined reference to `OBJ_bsearch'
> /usr/local/ssl/lib/libssl.so: undefined reference to `sk_delete'
> /usr/local/ssl/lib/libssl.so: undefined reference to `RAND_bytes'
> /usr/local/ssl/lib/libssl.so: undefined reference to `RSAPrivateKey_dup'
> /usr/local/ssl/lib/libssl.so: undefined reference to `asn1_Finish'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_copy_next_retry'
> /usr/local/ssl/lib/libssl.so: undefined reference to `sk_set'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_des_cbc'
> /usr/local/ssl/lib/libssl.so: undefined reference to `OpenSSLDie'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_EncryptInit_ex'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `EVP_PKEY_missing_parameter s'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_DecryptInit_ex'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_callback_ctrl'
> /usr/local/ssl/lib/libssl.so: undefined reference to `DH_free'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `X509_STORE_CTX_cleanup'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BUF_MEM_free'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_SignFinal'
> /usr/local/ssl/lib/libssl.so: undefined reference to `sk_find'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_MD_CTX_copy_ex'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_read'
> /usr/local/ssl/lib/libssl.so: undefined reference to
`X509_certificate_type'
> /usr/local/ssl/lib/libssl.so: undefined reference to `ASN1_INTEGER_get'
> /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_free'
> /usr/local/ssl/lib/libssl.so: undefined reference to `d2i_DHparams'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_int_ctrl'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_f_buffer'
> /usr/local/ssl/lib/libssl.so: undefined reference to `sk_shift'
> /usr/local/ssl/lib/libssl.so: undefined reference to `OPENSSL_cleanse'
> /usr/local/ssl/lib/libssl.so: undefined reference to `lh_new'
> /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_free_ex_data'
> /usr/local/ssl/lib/libssl.so: undefined reference to `ASN1_INTEGER_set'
> /usr/local/ssl/lib/libssl.so: undefined reference to `ERR_peek_last_error'
> /usr/local/ssl/lib/libssl.so: undefined reference to
`i2d_ASN1_OCTET_STRING'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `X509_STORE_CTX_get_ex_new_
> index'
> /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_verify'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BN_dup'
> /usr/local/ssl/lib/libssl.so: undefined reference to `ERR_add_error_data'
> /usr/local/ssl/lib/libssl.so: undefined reference to `X509_NAME_cmp'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_CipherInit_ex'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_PKEY_size'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_add_digest'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_push'
> /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_mem_ctrl'
> /usr/local/ssl/lib/libssl.so: undefined reference to
`X509_get_issuer_name'
> /usr/local/ssl/lib/libssl.so: undefined reference to `ASN1_put_object'
> /usr/local/ssl/lib/libssl.so: undefined reference to `X509_get_ext_count'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_idea_cbc'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_des_ede3_cbc'
> /usr/local/ssl/lib/libssl.so: undefined reference to `X509_STORE_free'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `ERR_load_crypto_strings'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BUF_MEM_grow'
> /usr/local/ssl/lib/libssl.so: undefined reference to `lh_insert'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `X509_STORE_load_locations'
> /usr/local/ssl/lib/libssl.so: undefined reference to `X509_NAME_free'
> /usr/local/ssl/lib/libssl.so: undefined reference to
`d2i_ASN1_OCTET_STRING'
> /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_malloc'
> /usr/local/ssl/lib/libssl.so: undefined reference to `lh_delete'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BN_clear_free'
> /usr/local/ssl/lib/libssl.so: undefined reference to `X509_PURPOSE_set'
> /usr/local/ssl/lib/libssl.so: undefined reference to `d2i_X509_NAME'
> /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_flags'
> /usr/local/ssl/lib/libssl.so: undefined reference to `d2i_X509'
> /usr/local/ssl/lib/libssl.so: undefined reference to `asn1_GetSequence'
> /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_size'
> /usr/local/ssl/lib/libssl.so: undefined reference to `RAND_pseudo_bytes'
> /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_s_connect'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_PKEY_free'
> /usr/local/ssl/lib/libssl.so: undefined reference to `X509_TRUST_set'
> /usr/local/ssl/lib/libssl.so: undefined reference to `HMAC_Update'
> /usr/local/ssl/lib/libssl.so: undefined reference to
> `X509_STORE_CTX_set_verify_
cb'
> /usr/local/ssl/lib/libssl.so: undefined reference to `ERR_load_strings'
> /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_md2'
> /usr/local/ssl/lib/libssl.so: undefined reference to `HMAC_CTX_init'
> /usr/local/ssl/lib/libssl.so: undefined reference to
`EVP_get_digestbyname'
> collect2: ld returned 1 exit status
> make: *** [asterisk] Error 1
>
> i only see warnings and undefined reference to' '.
>
> pls advise.
>
> thnks.
>
> chris
>
>
> ----- Original Message -----
> From: "Dave Cotton" <dcotton at linuxautrement.com>
> To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> <asterisk-users at lists.digium.com>
> Sent: Monday, August 08, 2005 2:27 PM
> Subject: Re: [Asterisk-Users] function declaration isn't a prototype
>
>
> > On Mon, 2005-08-08 at 12:57 +0800, chris wrote:
> > > hi,
> > >
> > > thank you vary much for the updates, i jsut got the latest from cvs
and
> the
> > > error is fixed, however, i got this new error, when running make,
> > >
> > > /usr/local/sparc-sun-solaris2.8/bin/ld: cannot find -lncurses
> > > collect2: ld returned 1 exit status
> > > make: *** [asterisk] Error 1
> > >
> > > pls advise.
> > >
> >
> > The ncurses library is missing or not where the Makefile thinks it
> > should be.
> >
> >
> > --
> > Dave Cotton <dcotton at linuxautrement.com>
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list