Postfix Port -- OpenSSL Issues
Daniel J. Luke
dluke at geeklair.net
Tue Sep 18 16:08:15 PDT 2007
On Sep 18, 2007, at 5:03 PM, Jay Chandler wrote:
> Daniel J. Luke wrote:
>> On Sep 18, 2007, at 2:05 PM, Jay Chandler wrote:
>>> The bug only manifests itself when using TLS-- unfortunately,
>>> since I'm a paranoid type I require TLS on my private stuff, so
>>> getting it working is going to definitely be a challenge. I'm
>>> afraid I'll have to deconstruct the port and go line by line
>>> through the source to figure out where it's making OpenSSL calls...
>>
>> It's mostly likely a problem with how the build is set up (ie,
>> postfix is using the OpenSSL include files from one location and
>> the libraries from another). You can use otool -L to figure out
>> which library it is linking against (and correct it to the
>> macports provied OpenSSL if necessary), but it may be a little
>> more difficult to determine which incorrect headers it is using
>> while building.
>>
>> Good luck!
>
> I'm not entirely sure how to add in the proper locations here-- I'm
> not much of a programmer yet...
The "official" way to do this is to do something like:
make makefiles CCARGS="-I/opt/local/include -DUSE_TLS -
DUSE_SASL_AUTH" AUXLIBS="-L/opt/local/lib -lssl -lcrypto"
The current Portfile does this, but it adds the -I and -L options to
the end of the variable, which may make a difference?
> Obviously the correct path to include is /opt/local/usr/lib and /
> opt/local/usr/include, but the trick becomes how to insert it.
The correct paths are ${prefix}/lib and ${prefix}/include
where ${prefix} is usually (but not always) /opt/local
--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.macosforge.org/pipermail/macports-users/attachments/20070918/cb8c3916/PGP.bin
More information about the macports-users
mailing list