Bug 196469 - Can't build sysutils/ucspi-tcp with SSL option on
Summary: Can't build sysutils/ucspi-tcp with SSL option on
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Renato Botelho
URL: https://forums.freebsd.org/threads/pr...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-03 21:53 UTC by nokia2003
Modified: 2015-01-14 10:59 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (garga)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nokia2003 2015-01-03 21:53:48 UTC
Hello,

I'm trying to build sysutils/ucspi-tcp from ports on brand new FreeBSD 10.1 (all up to date). If I leave the default options (only IP6 on) it is building correctly. However I intend to use the system for qmail server so I need the option for SSL. With this option the build is unsuccessful.

FreeBSD srv 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014  root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

root@srv:/usr/ports/sysutils/ucspi-tcp # make showconfig
===> The following configuration options are available for ucspi-tcp-0.88_2:
  IPV6=off: IPv6 protocol support
  LIMITS=off: Implement per-connection and other limits
  RBL2SMTPD=off: Don't drop connection, pass envvar to smtpd
  RSS_DIFF=on: Patch rblsmtpd for qmail users
  SSL=on: SSL protocol support
===> Use 'make config' to modify these settings

./load tcpserver rules.o remoteinfo.o timeoutconn.o cdb.a  dns.a time.a unix.a byte.a  -L/usr/lib  -lssl `cat socket.lib`
/usr/bin/ld: //lib/libcrypto.so.7: invalid DSO for symbol `BIO_new_socket' definition
//lib/libcrypto.so.7: could not read symbols: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [tcpserver] Error code 1

make[2]: stopped in /usr/ports/sysutils/ucspi-tcp/work/ucspi-tcp-0.88
1 error

make[2]: stopped in /usr/ports/sysutils/ucspi-tcp/work/ucspi-tcp-0.88
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/sysutils/ucspi-tcp
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/ucspi-tcp

 I have tried to set MAKE_JOBS_UNSAFE=yes and rebuild but again it is not good. 

It is not building with Poudriere too:

./load tcpserver rules.o remoteinfo.o timeoutconn.o cdb.a  dns.a time.a unix.a byte.a  -L/usr/lib  -lssl `cat socket.lib`
/usr/bin/ld: //lib/libcrypto.so.7: invalid DSO for symbol `BIO_new_socket' definition
//lib/libcrypto.so.7: could not read symbols: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Forum link: https://forums.freebsd.org/threads/problem-building-ucspi-tcp-with-ssl.49816
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-01-03 21:53:48 UTC
Auto-assigned to maintainer garga@FreeBSD.org
Comment 2 nokia2003 2015-01-13 16:37:18 UTC
I had some time to play around and it looks like if you change in /usr/ports/sysutils/ucspi-tcp/work/ucspi-tcp-0.88/Makefile

LIBS=-L/usr/lib  -lssl

to
LIBS=-L/usr/lib  -lcrypto -lssl


It is building successfully.
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-01-14 10:59:23 UTC
A commit references this bug:

Author: garga
Date: Wed Jan 14 10:59:19 UTC 2015
New revision: 377008
URL: https://svnweb.freebsd.org/changeset/ports/377008

Log:
  - Fix build with SSL adding -lcrypto back to linker options
  - Remove ugly hack from pre-bsd.options.mk era and set USE_OPENSSL=yes
  - Make install verbose to silence portlint

  No bump on PORTREVISION since SSL is off by default

  PR:		196469

Changes:
  head/sysutils/ucspi-tcp/Makefile