Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#21930 closed defect (invalid)

erlang-R13B_2 Build fails with undefined symbol _SSL_CTX_set_info_callback in application ssl

Reported by: harry.weppner@… Owned by: bfulgham@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: erlang

Description

Having trouble building erlang on a PPC 10.5.8. Here's the relevant debug output. Full debug log attached.

Thanks, Harry.

=== Entering application ssl
make[3]: Nothing to be done for `opt'.
make[3]: Nothing to be done for `opt'.
make -f powerpc-apple-darwin9.8.0/Makefile TYPE=opt
/usr/bin/gcc-4.0  -m32 -O2 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B02/erts/powerpc-apple-darwin9.8.0  -no-cpp-precomp  -I/opt/local/include  -o ../priv/bin/powerpc-apple-darwin9.8.0/ssl_esock ../priv/obj/powerpc-apple-darwin9.8.0/esock.o ../priv/obj/powerpc-apple-darwin9.8.0/debuglog.o ../priv/obj/powerpc-apple-darwin9.8.0/esock_poll.o ../priv/obj/powerpc-apple-darwin9.8.0/esock_osio.o ../priv/obj/powerpc-apple-darwin9.8.0/esock_utils.o ../priv/obj/powerpc-apple-darwin9.8.0/esock_posix_str.o ../priv/obj/powerpc-apple-darwin9.8.0/esock_openssl.o -lutil -ldl -lm   -L/usr/lib -lssl -lcrypto
Undefined symbols:
  "_SSL_CTX_set_info_callback", referenced from:
      _set_ssl_parameters in esock_openssl.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [../priv/bin/powerpc-apple-darwin9.8.0/ssl_esock] Error 1
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2

    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for erlang): org.macports.archive org.macports.build org.macports.destroot
DEBUG: Registry error: perl5 not registered as installed & active.
    while executing
"registry::active $portname"
Error: Unable to upgrade port: 1

Attachments (1)

erlang_debug.log (109.3 KB) - added by harry.weppner@… 15 years ago.

Download all attachments as: .zip

Change History (12)

Changed 15 years ago by harry.weppner@…

Attachment: erlang_debug.log added

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to bfulgham@…

comment:2 Changed 15 years ago by harry.weppner@…

never mind - had a problem with my openssl library. please close the ticket. thanks.

comment:3 Changed 15 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

comment:4 in reply to:  2 Changed 15 years ago by alin.popa@…

Replying to harry.weppner@…:

never mind - had a problem with my openssl library. please close the ticket. thanks.

Hi Harry,

Could you please tell me how did you fix it ? I'm having the same issue.

Thanks,

Alin

comment:5 Changed 15 years ago by harry.weppner@…

I was recovering from a backup and openssl wasn't installed properly so I just re-installed openssl (sudo port install openssl).

comment:6 in reply to:  5 Changed 15 years ago by alin.popa@…

Replying to harry.weppner@…:

I was recovering from a backup and openssl wasn't installed properly so I just re-installed openssl (sudo port install openssl).

It seems that your fix doesn't work for me :(

Thanks.

comment:7 Changed 15 years ago by alin.popa@…

ok, so I managed to workaround this issue by doing these steps:

  1. uninstall openssl
  2. install erlang
  3. install openssl

It seems to me that the openssl here is the problem.

comment:8 Changed 15 years ago by joshgr@…

I'm seeing this problem, and the fix suggested here doesn't work for me (tried uninstalling openssl, which, btw, was NOT A COMFORTABLE THING); same error. Reinstalled openssl; tried downgrading to an older openssl; nothing worked. I'm on intel, so this isn't PPC specific. Still seeing this:

$ sudo port install erlang
...
/usr/bin/gcc-4.0  -m32 -O2 -arch i386 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B02/erts/i386-apple-darwin9.8.0  -no-cpp-precomp  -I/opt/local/include  -o ../priv/bin/i386-apple-darwin9.8.0/ssl_esock ../priv/obj/i386-apple-darwin9.8.0/esock.o ../priv/obj/i386-apple-darwin9.8.0/debuglog.o ../priv/obj/i386-apple-darwin9.8.0/esock_poll.o ../priv/obj/i386-apple-darwin9.8.0/esock_osio.o ../priv/obj/i386-apple-darwin9.8.0/esock_utils.o ../priv/obj/i386-apple-darwin9.8.0/esock_posix_str.o ../priv/obj/i386-apple-darwin9.8.0/esock_openssl.o -lutil -ldl -lm   -L/usr/lib -lssl -lcrypto
Undefined symbols:
  "_SSL_CTX_set_info_callback", referenced from:
      _set_ssl_parameters in esock_openssl.o
ld: symbol(s) not found

comment:9 Changed 15 years ago by bfulgham@…

This is actually a duplicate of Ticket:21809

comment:10 Changed 15 years ago by bfulgham@…

Corrected in @r59288. Erlang attempts to use SSL by default, but the SSL path settings are only provided when building with the +ssl option. Correct configuration handling for this reality. Confirmed both +ssl/-ssl on Snow Leopard. Reports are that it works on Leopard.

comment:11 in reply to:  10 Changed 15 years ago by email@…

Replying to bfulgham@…:

Corrected in @r59288. Erlang attempts to use SSL by default, but the SSL path settings are only provided when building with the +ssl option. Correct configuration handling for this reality. Confirmed both +ssl/-ssl on Snow Leopard. Reports are that it works on Leopard.

Still broken for me:

make[3]: Nothing to be done for `opt'.
make[3]: Nothing to be done for `opt'.
make -f i386-apple-darwin9.6.0/Makefile TYPE=opt
/usr/bin/gcc-4.0  -m32 -O2 -arch i386 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B02/erts/i386-apple-darwin9.6.0  -no-cpp-precomp  -I/opt/local/include  -o ../priv/bin/i386-apple-darwin9.6.0/ssl_esock ../priv/obj/i386-apple-darwin9.6.0/esock.o ../priv/obj/i386-apple-darwin9.6.0/debuglog.o ../priv/obj/i386-apple-darwin9.6.0/esock_poll.o ../priv/obj/i386-apple-darwin9.6.0/esock_osio.o ../priv/obj/i386-apple-darwin9.6.0/esock_utils.o ../priv/obj/i386-apple-darwin9.6.0/esock_posix_str.o ../priv/obj/i386-apple-darwin9.6.0/esock_openssl.o -lutil -ldl -lm   -L/usr/lib -lssl -lcrypto
Undefined symbols:
  "_SSL_CTX_set_info_callback", referenced from:
      _set_ssl_parameters in esock_openssl.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [../priv/bin/i386-apple-darwin9.6.0/ssl_esock] Error 1
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2
Note: See TracTickets for help on using tickets.