Bug 209400 - www/nostromo [patch] fix build with libressl
Summary: www/nostromo [patch] fix build with libressl
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kurt Jaeger
Keywords: patch
Depends on:
Reported: 2016-05-09 18:09 UTC by Axel Gonzalez
Modified: 2016-05-09 18:19 UTC (History)
1 user (show)

See Also:

libressl.diff (496 bytes, patch)
2016-05-09 18:09 UTC, Axel Gonzalez
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Gonzalez 2016-05-09 18:09:27 UTC
Created attachment 170150 [details]

www/nostromo fails to build when using libressl

There is a typo in www/nostromo/files/patch-src-nhttpd-Makefile

The attached patch fixes it.

Also I would like to take care and feed this port (has no mantainer).

--- nhttpd ---
cc -O2 -pipe -O2 -msse3 -march=core2  -fstack-protector -fno-strict-aliasing -O2 -msse3 -march=core2  -Wall -Wstrict-prototypes -I/usr/local/include -std=gnu99 -Qunused-arguments  -fstack-protector    -Wl,-rpath,/usr/local/lib -fstack-protector -o nhttpd main.o http.o sys.o -L../libmy -lmy -L -lssl -lcrypto -lcrypt
main.o: In function `main':
main.c:(.text+0x1050): undefined reference to `SSL_load_error_strings'
main.c:(.text+0x1055): undefined reference to `SSL_library_init'
main.c:(.text+0x105a): undefined reference to `SSLv23_server_method'
main.c:(.text+0x1062): undefined reference to `SSL_CTX_new'
main.c:(.text+0x1080): undefined reference to `SSL_CTX_use_certificate_file'
main.c:(.text+0x109b): undefined reference to `SSL_CTX_use_PrivateKey_file'
main.c:(.text+0x10ac): undefined reference to `SSL_CTX_check_private_key'
main.c:(.text+0x1e59): undefined reference to `SSL_new'
main.c:(.text+0x1e6e): undefined reference to `SSL_set_fd'
main.c:(.text+0x2654): undefined reference to `SSL_accept'
main.c:(.text+0x2744): undefined reference to `SSL_get_error'
main.c:(.text+0x29be): undefined reference to `SSL_free'
sys.o: In function `sys_read_ssl':
sys.c:(.text+0x9dc): undefined reference to `SSL_read'
sys.c:(.text+0xa04): undefined reference to `SSL_get_error'
sys.o: In function `sys_write_ssl':
sys.c:(.text+0xcb0): undefined reference to `SSL_write'
sys.c:(.text+0xcd4): undefined reference to `SSL_get_error'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [nhttpd] Error code 1
Comment 1 Kurt Jaeger freebsd_committer 2016-05-09 18:19:24 UTC
Committed, thanks!
Comment 2 commit-hook freebsd_committer 2016-05-09 18:19:36 UTC
A commit references this bug:

Author: pi
Date: Mon May  9 18:19:16 UTC 2016
New revision: 414877
URL: https://svnweb.freebsd.org/changeset/ports/414877

  www/nostromo: fix build with LIBRESSL, submitter becomes maintainer

  PR:		209400
  Submitted by:	Axel Gonzalez <loox@e-shell.net>