Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#21809 closed enhancement (fixed)

Update Erlang to R13B-2

Reported by: bfulgham@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: lang Cc: scottmcmillin@…, jabronson@…
Port: erlang

Description

Update to Erlang to sync with upstream sources. This obsoletes a few existing MacPorts patches, but requires some new changes as well.

Change History (9)

comment:1 Changed 15 years ago by bfulgham@…

Link:erlang brent$ sudo svn commit Password: Sending erlang/Portfile Deleting erlang/files/patch-decode_big.c.diff Deleting erlang/files/patch-decode_fun.c.diff Sending erlang/files/patch-erts_emulator_Makefile.in Sending erlang/files/patch-erts_emulator_hipe_hipe_amd64_glue.S.diff Transmitting file data ... Committed revision 58746. Link:erlang brent$

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

This does not build for me on Mac OS X 10.5.8. Xcode 3.1.4.

--->  Building erlang
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_lang_erlang/work/erlang-R13B02" && /usr/bin/make all " returned error 2
Command output: esock.c: In function 'do_accept':
esock.c:1625: warning: pointer targets in passing argument 3 of 'accept' differ in signedness
esock.c: In function 'dump_connections':
esock.c:1719: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness
esock.c:1725: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness
esock.c:1730: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness
/usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.8.0/debuglog.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -m32 -O2 -arch i386 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_lang_erlang/work/erlang-R13B02/erts/i386-apple-darwin9.8.0  -no-cpp-precomp  -I/opt/local/include -DHAVE_CONFIG_H -O2 debuglog.c
/usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.8.0/esock_poll.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -m32 -O2 -arch i386 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_lang_erlang/work/erlang-R13B02/erts/i386-apple-darwin9.8.0  -no-cpp-precomp  -I/opt/local/include -DHAVE_CONFIG_H -O2 esock_poll.c
/usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.8.0/esock_osio.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -m32 -O2 -arch i386 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_lang_erlang/work/erlang-R13B02/erts/i386-apple-darwin9.8.0  -no-cpp-precomp  -I/opt/local/include -DHAVE_CONFIG_H -O2 esock_osio.c
/usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.8.0/esock_utils.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -m32 -O2 -arch i386 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_lang_erlang/work/erlang-R13B02/erts/i386-apple-darwin9.8.0  -no-cpp-precomp  -I/opt/local/include -DHAVE_CONFIG_H -O2 esock_utils.c
esock_utils.c: In function 'esock_malloc':
esock_utils.c:38: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
esock_utils.c: In function 'esock_realloc':
esock_utils.c:50: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
/usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.8.0/esock_posix_str.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -m32 -O2 -arch i386 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_lang_erlang/work/erlang-R13B02/erts/i386-apple-darwin9.8.0  -no-cpp-precomp  -I/opt/local/include -DHAVE_CONFIG_H -O2 esock_posix_str.c
/usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.8.0/esock_openssl.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -m32 -O2 -arch i386 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_lang_erlang/work/erlang-R13B02/erts/i386-apple-darwin9.8.0  -no-cpp-precomp  -I/opt/local/include -DHAVE_CONFIG_H -O2 -I/usr/include esock_openssl.c
esock_openssl.c: In function 'set_ssl_parameters':
esock_openssl.c:905: warning: pointer targets in initialization differ in signedness
esock_openssl.c:906: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/bin/gcc-4.0  -m32 -O2 -arch i386 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_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
collect2: ld returned 1 exit status
make[4]: *** [../priv/bin/i386-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

comment:3 Changed 15 years ago by scottmcmillin@…

Does not build for me either in Mac OS X 10.5.7:

---> Building erlang Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B02" && /usr/bin/make all " returned error 2 Command output: esock.c: In function 'do_accept': esock.c:1625: warning: pointer targets in passing argument 3 of 'accept' differ in signedness esock.c: In function 'dump_connections': esock.c:1719: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness esock.c:1725: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness esock.c:1730: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness /usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.7.0/debuglog.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -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.7.0 -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -O2 debuglog.c /usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.7.0/esock_poll.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -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.7.0 -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -O2 esock_poll.c /usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.7.0/esock_osio.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -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.7.0 -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -O2 esock_osio.c /usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.7.0/esock_utils.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -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.7.0 -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -O2 esock_utils.c esock_utils.c: In function 'esock_malloc': esock_utils.c:38: warning: format '%d' expects type 'int', but argument 3 has type 'size_t' esock_utils.c: In function 'esock_realloc': esock_utils.c:50: warning: format '%d' expects type 'int', but argument 3 has type 'size_t' /usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.7.0/esock_posix_str.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -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.7.0 -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -O2 esock_posix_str.c /usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.7.0/esock_openssl.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -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.7.0 -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -O2 -I/usr/include esock_openssl.c esock_openssl.c: In function 'set_ssl_parameters': esock_openssl.c:905: warning: pointer targets in initialization differ in signedness esock_openssl.c:906: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness /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.7.0 -no-cpp-precomp -I/opt/local/include -o ../priv/bin/i386-apple-darwin9.7.0/ssl_esock ../priv/obj/i386-apple-darwin9.7.0/esock.o ../priv/obj/i386-apple-darwin9.7.0/debuglog.o ../priv/obj/i386-apple-darwin9.7.0/esock_poll.o ../priv/obj/i386-apple-darwin9.7.0/esock_osio.o ../priv/obj/i386-apple-darwin9.7.0/esock_utils.o ../priv/obj/i386-apple-darwin9.7.0/esock_posix_str.o ../priv/obj/i386-apple-darwin9.7.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.7.0/ssl_esock Error 1 make[3]: * [opt] Error 2 make[2]: * [opt] Error 2 make[1]: * [opt] Error 2 make: * [libs] Error 2

Error: Status 1 encountered during processing.

comment:4 Changed 15 years ago by scottmcmillin@…

Cc: scottmcmillin@… added

Cc Me!

comment:5 Changed 15 years ago by jabronson@…

Cc: jabronson@… added

Cc Me!

comment:6 Changed 15 years ago by bfulgham@…

Resolution: fixed
Status: newclosed

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:7 Changed 15 years ago by jabronson@…

i'm on leopard, just did port selfupdate, confirmed that port info erlang now shows "erlang @R13B02, Revision 2", and tried port upgrade erlang, but no luck. i did not specify either +ssl or -ssl.

# uname -a
Darwin hex.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

#  port installed erlang
The following ports are currently installed:
  erlang @R13B01_1 (active)

# port info erlang
erlang @R13B02, Revision 2 (lang, erlang)
...

# port upgrade erlang
Portfile changed since last build; discarding previous state.
--->  Computing dependencies for erlang
--->  Fetching erlang
--->  Verifying checksum(s) for erlang
--->  Extracting erlang
--->  Applying patches to erlang
--->  Configuring erlang
--->  Building erlang
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B02" && /usr/bin/make all " returned error 2
Command output: esock.c: In function 'do_accept':
esock.c:1625: warning: pointer targets in passing argument 3 of 'accept' differ in signedness
esock.c: In function 'dump_connections':
esock.c:1719: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness
esock.c:1725: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness
esock.c:1730: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness
/usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.8.0/debuglog.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -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 -DHAVE_CONFIG_H -O2 debuglog.c
/usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.8.0/esock_poll.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -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 -DHAVE_CONFIG_H -O2 esock_poll.c
/usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.8.0/esock_osio.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -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 -DHAVE_CONFIG_H -O2 esock_osio.c
/usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.8.0/esock_utils.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -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 -DHAVE_CONFIG_H -O2 esock_utils.c
esock_utils.c: In function 'esock_malloc':
esock_utils.c:38: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
esock_utils.c: In function 'esock_realloc':
esock_utils.c:50: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
/usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.8.0/esock_posix_str.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -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 -DHAVE_CONFIG_H -O2 esock_posix_str.c
/usr/bin/gcc-4.0 -c -o ../priv/obj/i386-apple-darwin9.8.0/esock_openssl.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -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 -DHAVE_CONFIG_H -O2 -I/usr/include esock_openssl.c
esock_openssl.c: In function 'set_ssl_parameters':
esock_openssl.c:905: warning: pointer targets in initialization differ in signedness
esock_openssl.c:906: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/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
collect2: ld returned 1 exit status
make[4]: *** [../priv/bin/i386-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

Error: Unable to upgrade port: 1 

comment:8 Changed 15 years ago by bfulgham@…

The _SSL_CTX_set_info_callback symbol is not exported by the SSL that ships with Leopard (and prior) versions of Mac OS X. Newer OS versions *do* provide this symbol, so no action is needed in this case.

I have checked in a Portfile change that comments out the single use of this symbol, which is how Erlang was built in MacPorts prior to the latest version. This patch is not applied for darwin 10.

comment:9 Changed 15 years ago by shawjef3@…

Thanks, the port is fixed for me now.

Note: See TracTickets for help on using tickets.