Bug 203369

Summary: [patch] net-mgmt/net-snmp configure fails with world built WITHOUT_SSP
Product: Ports & Packages Reporter: Kenneth Salerno <kennethsalerno>
Component: Individual Port(s)Assignee: Ryan Steinmetz <zi>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: patch
Priority: --- Flags: bugzilla: maintainer-feedback? (zi)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch to remove -lssp_nonshared none

Description Kenneth Salerno 2015-09-26 11:47:40 UTC
Created attachment 161419 [details]
patch to remove -lssp_nonshared

Makefile for port net-snmp unnecessarily enforces inclusion of -lssp_nonshared which 1) is always included by default via /usr/lib/libc.so (see below), and 2) /usr/lib/libssp_nonshared.a is not present on worlds built WITHOUT_SSP causing configure to fail with "cc cannot build binaries".

If you examine your /usr/lib/libc.so:
   > cat /usr/lib/libc.so 
   /* $FreeBSD: releng/10.1/lib/libc/libc.ldscript 258398 2013-11-20 20:24:59Z peter $ */
   GROUP ( /lib/libc.so.7 /usr/lib/libc_nonshared.a /usr/lib/libssp_nonshared.a )

-lssp_nonshared will always be included during linking unless a user, such as myself, has removed it from libc.so for their own reasons so please do not force it back in :).
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-09-26 14:22:23 UTC
A commit references this bug:

Author: zi
Date: Sat Sep 26 14:21:40 UTC 2015
New revision: 397981
URL: https://svnweb.freebsd.org/changeset/ports/397981

Log:
  - Honor WITHOUT_SSP

  PR:		203369
  Submitted by:	Kenneth Salerno <kennethsalerno@yahoo.com>

Changes:
  head/net-mgmt/net-snmp/Makefile