Opened 15 years ago
Closed 15 years ago
#21369 closed defect (fixed)
exim won't install under MacPorts 1.8.0
Reported by: | ndw@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | Cc: | dkeverne@…, jmroot (Joshua Root) | |
Port: | exim |
Description (last modified by mf2k (Frank Schima))
Attempting to install exim under a clean MacPorts 1.8.0 install on Snow Leopard with the latest XCode fails:
$ sudo port install exim ---> Computing dependencies for exim ---> Fetching exim ---> Verifying checksum(s) for exim ---> Extracting exim ---> Configuring exim ---> Building exim Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_exim/work/exim-4.66" && /usr/bin/make -j2 all " returned error 2 Command output: /bin/sh: line 0: cd: build-Darwin-i386: No such file or directory make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_exim/work/exim-4.66' >>> Creating links to source files... mkdir: build-Darwin-i386: File exists *** It appears that ../scripts/MakeLinks was previously interrupted. *** You need to remove the build directory, and then run 'make' again. make[1]: *** [build-directory] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_exim/work/exim-4.66' make: *** [go] Error 2 make: *** Waiting for unfinished jobs....
Change History (10)
comment:1 Changed 15 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Keywords: | exim removed |
Port: | exim added |
comment:2 Changed 15 years ago by dkeverne@…
Cc: | dkeverne@… added |
---|
comment:3 Changed 15 years ago by dkeverne@…
After various attempts to continue the build, since the directory does get created, probably a timing or ordering issue when building the primary makefile with -j2, it finally bails on tls-openssl.c and unable to find the function SSL_CTX_set_info_callback
DK
comment:5 Changed 15 years ago by dkeverne@…
Hi
That helps get past the initial directory creation issue, but then we get this:
cc tls.c In file included from tls.c:86: tls-openssl.c: In function 'tls_init': tls-openssl.c:346: error: wrong type argument to unary exclamation mark make[1]: * [tls.o] Error 1 make: * [go] Error 2
Error: Status 1 encountered during processing.
Which appears to be a missing definition of SSL_CTX_set_info_callback
comment:6 Changed 15 years ago by dkeverne@…
Looks like this is already a known issue:
http://lists.exim.org/lurker/message/20070303.223326.eb802bed.en.html
The function returns void, so can't be tested. Can that patch be included in the port?
After progressing past that, we now get undefined symbols which appear to be bind9 issues:
cc -o exim Undefined symbols: "_res_9_search", referenced from: _dns_basic_lookup in dns.o _dns_basic_lookup in dns.o "_res_9_init", referenced from: _dns_init in dns.o "_res_9_dn_expand", referenced from: _acl_verify in acl.o _dns_next_rr in dns.o _dns_next_rr in dns.o _dns_next_rr in dns.o _dns_lookup in dns.o _host_find_bydns in host.o _host_name_lookup in host.o ld: symbol(s) not found
I ended up adding "LIBRESOLV=-lresolv" to the OS/Makefile-Darwin file to tell the linker to include libresolv and we seem to have got somewhere.
I think I have it built and installed, I'll try setting it up fully and let you know how it goes.
Cheers
comment:7 Changed 15 years ago by ndw@…
I don't know anything about making ports, but built from sources w/the above patches, it seems to work fine. Only with openssl-tls, though. Tried gnu_tls first, but couldn't get it to work.
comment:8 Changed 15 years ago by jmroot (Joshua Root)
Applied these fixes in r57752. Does it work for you now?
comment:10 Changed 15 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Cc Me!