Bug 226296 - net/freeradius3 Shared object "libpcre.so.1" not found, required by "radiusd"
Summary: net/freeradius3 Shared object "libpcre.so.1" not found, required by "radiusd"
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Ryan Steinmetz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-02 12:35 UTC by Jeremy Baggs
Modified: 2018-03-02 21:45 UTC (History)
0 users

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


Attachments
diff to Makefile (287 bytes, patch)
2018-03-02 12:35 UTC, Jeremy Baggs
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Baggs 2018-03-02 12:35:19 UTC
Created attachment 191133 [details]
diff to Makefile

Required library dependency not listed in Makefile. Error when attempting to start radiusd: Shared object "libpcre.so.1" not found, required by "radiusd".
Comment 1 Ryan Steinmetz freebsd_committer freebsd_triage 2018-03-02 12:48:38 UTC
What version of the port are you using?

Which OPTIONS are you using?

Did you install from pkg or compile from ports?
Comment 2 Jeremy Baggs 2018-03-02 13:00:33 UTC
Ah. sorry about missing the version. Early here. 

freeradius 3.0.16 built from ports, hence the Makefile diff.

The error was on a machine where it was installed from a package, created on a build system from ports. 

Options are default I think. (I did make install clean BATCH=yes) Going back to make config, options show as:

DOCS, PERL, UDPFROMTO, USER, HEIMDAL
Comment 3 Ryan Steinmetz freebsd_committer freebsd_triage 2018-03-02 14:26:12 UTC
(In reply to Jeremy Baggs from comment #2)
Ah, ok.  It looks like freeradius' configure tries to auto detect/use libpcre if present.

Committing a fix in a moment.
Comment 4 Ryan Steinmetz freebsd_committer freebsd_triage 2018-03-02 14:28:17 UTC
I'm guessing you had libpcre installed whenever you built freeradius from ports.  Then, later removed libpcre.
Comment 5 commit-hook freebsd_committer freebsd_triage 2018-03-02 14:33:19 UTC
A commit references this bug:

Author: zi
Date: Fri Mar  2 14:32:37 UTC 2018
New revision: 463404
URL: https://svnweb.freebsd.org/changeset/ports/463404

Log:
  - Add PCRE as an OPTION (off by default)
  - Update to USES+=mysql instead of USE_MYSQL
  - Don't bump PORTREVISION as this is a NOOP

  PR:		226296

Changes:
  head/net/freeradius3/Makefile
Comment 6 Ryan Steinmetz freebsd_committer freebsd_triage 2018-03-02 14:33:45 UTC
Fix committed.  You'll need to update your ports tree and then deinstall/rebuild/install the net/freeradius3 port.

(This will actually fix your problem even if you don't update the ports tree)
Comment 7 Jeremy Baggs 2018-03-02 21:45:27 UTC
Thanks!