Bug 203369 - [patch] net-mgmt/net-snmp configure fails with world built WITHOUT_SSP
Summary: [patch] net-mgmt/net-snmp configure fails with world built WITHOUT_SSP
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: Ryan Steinmetz
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-09-26 11:47 UTC by Kenneth Salerno
Modified: 2015-09-26 14:22 UTC (History)
0 users

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


Attachments
patch to remove -lssp_nonshared (502 bytes, patch)
2015-09-26 11:47 UTC, Kenneth Salerno
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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