Opened 10 years ago

Closed 10 years ago

#44014 closed defect (fixed)

nettle: error: openssl/ecdsa.h: No such file or directory

Reported by: jaitony Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.0
Keywords: Cc:
Port: nettle

Description (last modified by mf2k (Frank Schima))

version:1
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 502
:debug:main euid changed to: 502
:debug:main Executing org.macports.main (nettle)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.archivefetch (nettle)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (nettle)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (nettle)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (nettle)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (nettle)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (nettle)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Fri Jun 13 05:53:32 BRT 2014
:notice:build --->  Building nettle
:debug:build Executing org.macports.build (nettle)
:debug:build Environment: 
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.5'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/work/nettle-2.7.1" && /usr/bin/make -j2 -w all'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/work/nettle-2.7.1" && /usr/bin/make -j2 -w all 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/work/nettle-2.7.1'
:info:build /usr/bin/make all-here
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/work/nettle-2.7.1'
:info:build make[1]: Nothing to be done for `all-here'.
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/work/nettle-2.7.1'
:info:build set -e; for d in tools testsuite examples; do \
:info:build 	  echo "Making all in $d" ; (cd $d && /usr/bin/make all); done
:info:build Making all in tools
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/work/nettle-2.7.1/tools'
:info:build make[1]: Nothing to be done for `all'.
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/work/nettle-2.7.1/tools'
:info:build Making all in testsuite
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/work/nettle-2.7.1/testsuite'
:info:build make[1]: Nothing to be done for `all'.
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/work/nettle-2.7.1/testsuite'
:info:build Making all in examples
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/work/nettle-2.7.1/examples'
:info:build /usr/bin/gcc-4.2 -I.. -I.. -I/opt/local/include -DHAVE_CONFIG_H -pipe -Os -arch ppc -ggdb3 -Wno-pointer-sign -Wall -W   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast -Wnested-externs -fPIC -MT hogweed-benchmark.o -MD -MP -MF hogweed-benchmark.o.d -c hogweed-benchmark.c && true
:info:build hogweed-benchmark.c:52:27: error: openssl/ecdsa.h: No such file or directory
:info:build hogweed-benchmark.c:497: error: expected specifier-qualifier-list before ‘EC_KEY’
:info:build hogweed-benchmark.c: In function ‘bench_openssl_init’:
:info:build hogweed-benchmark.c:519: error: ‘struct openssl_ctx’ has no member named ‘key’
:info:build hogweed-benchmark.c:519: warning: implicit declaration of function ‘EC_KEY_new_by_curve_name’
:info:build hogweed-benchmark.c:519: warning: nested extern declaration of ‘EC_KEY_new_by_curve_name’
:info:build hogweed-benchmark.c:519: error: ‘NID_secp224r1’ undeclared (first use in this function)
:info:build hogweed-benchmark.c:519: error: (Each undeclared identifier is reported only once
:info:build hogweed-benchmark.c:519: error: for each function it appears in.)
:info:build hogweed-benchmark.c:520: error: ‘struct openssl_ctx’ has no member named ‘digest_length’
:info:build hogweed-benchmark.c:521: error: ‘struct openssl_ctx’ has no member named ‘digest’
:info:build hogweed-benchmark.c:531: error: ‘struct openssl_ctx’ has no member named ‘key’
:info:build hogweed-benchmark.c:531: error: ‘NID_secp384r1’ undeclared (first use in this function)
:info:build hogweed-benchmark.c:532: error: ‘struct openssl_ctx’ has no member named ‘digest_length’
:info:build hogweed-benchmark.c:533: error: ‘struct openssl_ctx’ has no member named ‘digest’
:info:build hogweed-benchmark.c:536: error: ‘struct openssl_ctx’ has no member named ‘key’
:info:build hogweed-benchmark.c:536: error: ‘NID_secp521r1’ undeclared (first use in this function)
:info:build hogweed-benchmark.c:537: error: ‘struct openssl_ctx’ has no member named ‘digest_length’
:info:build hogweed-benchmark.c:538: error: ‘struct openssl_ctx’ has no member named ‘digest’
:info:build hogweed-benchmark.c:543: error: ‘struct openssl_ctx’ has no member named ‘key’
:info:build hogweed-benchmark.c:545: warning: implicit declaration of function ‘EC_KEY_generate_key’
:info:build hogweed-benchmark.c:545: warning: nested extern declaration of ‘EC_KEY_generate_key’
:info:build hogweed-benchmark.c:545: error: ‘struct openssl_ctx’ has no member named ‘key’
:info:build hogweed-benchmark.c:548: error: ‘struct openssl_ctx’ has no member named ‘signature’
:info:build hogweed-benchmark.c:548: warning: implicit declaration of function ‘ECDSA_do_sign’
:info:build hogweed-benchmark.c:548: warning: nested extern declaration of ‘ECDSA_do_sign’
:info:build hogweed-benchmark.c:548: error: ‘struct openssl_ctx’ has no member named ‘digest’
:info:build hogweed-benchmark.c:548: error: ‘struct openssl_ctx’ has no member named ‘digest_length’
:info:build hogweed-benchmark.c:548: error: ‘struct openssl_ctx’ has no member named ‘key’
:info:build hogweed-benchmark.c: In function ‘bench_openssl_sign’:
:info:build hogweed-benchmark.c:557: error: ‘ECDSA_SIG’ undeclared (first use in this function)
:info:build hogweed-benchmark.c:557: error: ‘sig’ undeclared (first use in this function)
:info:build hogweed-benchmark.c:557: error: ‘const struct openssl_ctx’ has no member named ‘digest’
:info:build hogweed-benchmark.c:557: error: ‘const struct openssl_ctx’ has no member named ‘digest_length’
:info:build hogweed-benchmark.c:557: error: ‘const struct openssl_ctx’ has no member named ‘key’
:info:build hogweed-benchmark.c:558: warning: implicit declaration of function ‘ECDSA_SIG_free’
:info:build hogweed-benchmark.c:558: warning: nested extern declaration of ‘ECDSA_SIG_free’
:info:build hogweed-benchmark.c: In function ‘bench_openssl_verify’:
:info:build hogweed-benchmark.c:565: warning: implicit declaration of function ‘ECDSA_do_verify’
:info:build hogweed-benchmark.c:565: warning: nested extern declaration of ‘ECDSA_do_verify’
:info:build hogweed-benchmark.c:565: error: ‘const struct openssl_ctx’ has no member named ‘digest’
:info:build hogweed-benchmark.c:565: error: ‘const struct openssl_ctx’ has no member named ‘digest_length’
:info:build hogweed-benchmark.c:566: error: ‘const struct openssl_ctx’ has no member named ‘signature’
:info:build hogweed-benchmark.c:566: error: ‘const struct openssl_ctx’ has no member named ‘key’
:info:build hogweed-benchmark.c: In function ‘bench_openssl_clear’:
:info:build hogweed-benchmark.c:574: error: ‘struct openssl_ctx’ has no member named ‘signature’
:info:build hogweed-benchmark.c:575: warning: implicit declaration of function ‘EC_KEY_free’
:info:build hogweed-benchmark.c:575: warning: nested extern declaration of ‘EC_KEY_free’
:info:build hogweed-benchmark.c:575: error: ‘struct openssl_ctx’ has no member named ‘key’
:info:build hogweed-benchmark.c:576: error: ‘struct openssl_ctx’ has no member named ‘digest’
:info:build make[1]: *** [hogweed-benchmark.o] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/work/nettle-2.7.1/examples'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/work/nettle-2.7.1'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/work/nettle-2.7.1" && /usr/bin/make -j2 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port nettle returned: command execution failed
:debug:build Error code: CHILDSTATUS 96139 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for nettle: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install nettle
:debug:build Registry error: libgpg-error not registered as installed & active.
    invoked from within
"registry_active $subport"
    invoked from within
"$workername eval registry_active \$subport"
:notice:build Please see the log file for port nettle for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/main.log

Attachments (1)

main.log (10.8 KB) - added by jaitony 10 years ago.

Download all attachments as: .zip

Change History (18)

Changed 10 years ago by jaitony

Attachment: main.log added

comment:1 Changed 10 years ago by jaitony

Cc: jaitonys@… added

Cc Me!

comment:2 Changed 10 years ago by jaitony

Cc: jaitonys@… removed

Cc Me!

comment:3 Changed 10 years ago by jaitony

Cc: jaitonys@… added

Cc Me!

comment:4 Changed 10 years ago by jaitony

Cc: jaitonys@… removed

Cc Me!

comment:5 Changed 10 years ago by jaitony

Cc: jaitonys@… added

Cc Me!

comment:6 Changed 10 years ago by jaitony

Cc: jaitonys@… removed

Cc Me!

comment:7 Changed 10 years ago by mf2k (Frank Schima)

Port: nettle added
Priority: HighNormal

The Priority field is for use by Macports team members only.

In the future, please use WikiFormatting and fill in the Port field with the port that actually failed.

comment:8 Changed 10 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:9 Changed 10 years ago by mf2k (Frank Schima)

Last edited 10 years ago by mf2k (Frank Schima) (previous) (diff)

comment:9 Changed 10 years ago by mf2k (Frank Schima)

Also, please attach the complete main.log file after running port clean on the port instead of pasting it into the description unformatted.

comment:10 in reply to:  7 Changed 10 years ago by jaitony

Replying to mf2k@…:

The Priority field is for use by Macports team members only.

In the future, please use WikiFormatting and fill in the Port field with the port that actually failed.

Eu não sabia das regras, me desculpe. sobre este bug ?? coloquei o log em anexo do pacote nettle ele que esta com problema, tentei instalar so ele e da o mesmo erro estou usando mac os 10.5.8 PPC se deseja mais algo so falar

I did not know the rules, sorry. about this bug? I put the log attached nettle package him with this problem, so I tried to install it and the same error I'm using mac os 10.5.8 PPC if you want something else so to speak

comment:11 in reply to:  9 Changed 10 years ago by jaitony

Replying to mf2k@…:

Also, please attach the complete main.log file after running port clean on the port instead of pasting it into the description unformatted.

I put then can look

comment:12 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: port install wgetnettle: error: openssl/ecdsa.h: No such file or directory

The log that is attached to this ticket is not from a clean attempt. Please run "sudo port clean nettle", then try again, then attach the new main.log file.

comment:13 Changed 10 years ago by jaitony

I do not know why but now concluded, I had already made ​​a sudo port clean nettle and trying sudo port install nettle. thanks for listening too.

comment:14 Changed 10 years ago by jaitony

find out why he had not compiled openssl, I had to compile for another reason. Could tell me the reason he did not put as dependency openssl??

comment:15 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

I hadn't previously realized that nettle used openssl, because it does not link with openssl's libraries, but it does appear to use its headers at build time. I can confirm that nettle fails to build on Mac OS X 10.5 when the openssl port is not installed. It builds fine on OS X 10.9 when the openssl port is not installed. So sometime between 10.5 and 10.9 the version of openssl included with the operating system must've gotten updated to a newer version.

comment:16 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

I've added the openssl build dependency in r121025. Thanks for reporting this issue.

Note: See TracTickets for help on using tickets.