Bug 193915 - Linking against openssl port fails for mail/spamd, security/stunnel suspect missing -L/usr/local/lib ?
Summary: Linking against openssl port fails for mail/spamd, security/stunnel suspect m...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-25 05:50 UTC by dewayne
Modified: 2014-11-01 00:05 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dewayne 2014-09-25 05:50:16 UTC
mail/spamd and security/stunnel fail to find libcrypto and libssl respectively using ports tree
Last Changed Rev: 369213
Last Changed Date: 2014-09-25 09:02:45 +1000 (Thu, 25 Sep 2014)

However all ports are successfully built using the tree
Last Changed Rev: 368374
Last Changed Date: 2014-09-17 23:56:16 +1000 (Wed, 17 Sep 2014)

Initially mail/spamd was unable to find the include files.  So I cheated and created 
ln -s /usr/local/include/openssl /usr/include/openssl
the next attempt resulted in 

/usr/local/libexec/ccache/cc -O2 -pipe -pipe -O2 -g0 -ggdb0 -march=pentium3 -mtune=pentium3  -fno-strict-aliasing  -Wall -Wstrict-prototypes -std=gnu99 -Qunused-arguments  -fstack-protector   -o spamd spamd.o sdl.o grey.o sync.o -lcrypto -lmd
/usr/bin/ld: cannot find -lcrypto
cc: error: linker command failed with exit code 1 (use -v to see invocation)

security/stunnel similarly fails, 

libtool: link: /usr/local/libexec/ccache/cc -pthread -fstack-protector -fPIE -O2 -pipe -pipe -O2 -g0 -ggdb0 -march=pentium3 -mtune=pentium3 -fno-strict-aliasing -Wall -Wextra -Wno-long-long -pedantic -pthread -o stunnel stunnel-str.o stunnel-file.o stunnel-client.o stunnel-log.o stunnel-options.o stunnel-protocol.o stunnel-network.o stunnel-resolver.o stunnel-ssl.o stunnel-ctx.o stunnel-verify.o stunnel-sthreads.o stunnel-fd.o stunnel-stunnel.o stunnel-pty.o stunnel-libwrap.o stunnel-ui_unix.o  -L/usr/lib64 -L/usr/lib -lssl -lcrypto -lz -lutil -lpthread -lwrap -pthread
/usr/bin/ld: cannot find -lssl

I suspect that a -L/usr/local/lib has been lost somewhere between the port tree revisions.  I did perform a diff on /usr/ports/Mk but the changes were too extensive.

FYI: The jailed build environment differs only in the nullfs mount points for /usr/ports (or /usr/ports-200140925)
Comment 2 dewayne 2014-11-01 00:03:53 UTC
Please close, thankyou.
Comment 3 John Marino freebsd_committer freebsd_triage 2014-11-01 00:05:36 UTC
PR withdrawn