Bug 198312 - sysutils/lsof: No longer builds after head/r279433
Summary: sysutils/lsof: No longer builds after head/r279433
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: freebsd-ports-bugs (Nobody)
URL:
Keywords: easy, patch
Depends on:
Blocks:
 
Reported: 2015-03-05 13:15 UTC by Tomoaki AOKI
Modified: 2015-03-07 16:32 UTC (History)
2 users (show)

See Also:
ler: maintainer-feedback+


Attachments
Build error log. (6.57 KB, text/x-log)
2015-03-05 13:15 UTC, Tomoaki AOKI
no flags Details
Update to lsof 4.89D to fix this issue (881 bytes, patch)
2015-03-05 20:59 UTC, Larry Rosenman
koobs: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomoaki AOKI 2015-03-05 13:15:31 UTC
Created attachment 153833 [details]
Build error log.

After upgrading head (amd64) from r279417 to r279579, sysutils/lsof no longer builds.

Looking into build log (attached) and commit messages, it seems that r279433 broke build of sysutils/lsof.
(Not actually bi-sected)

Fix:
 Not known. But maybe renaming asprintf() and vasprintf() in
 sys/sys/systm.h and its consumers to avoid conflicts would help from
 base side.


Comment from committer of r279433 (Ryan Stone):

 Would:

 #undef __BSD_VISIBLE
 #include <stdio.h>
 #define __BSD_VISIBLE 1


 Work in lsof?

  https://lists.freebsd.org/pipermail/freebsd-current/2015-March/054940.html
Comment 1 Larry Rosenman freebsd_committer freebsd_triage 2015-03-05 14:02:10 UTC
I've sent a note to Vic Abell (lsof(1) author) and am awaiting his reply.

I can reproduce this on my 11-CURRENT box.
Comment 2 Larry Rosenman freebsd_committer freebsd_triage 2015-03-05 20:59:23 UTC
Created attachment 153866 [details]
Update to lsof 4.89D to fix this issue
Comment 3 Larry Rosenman freebsd_committer freebsd_triage 2015-03-05 20:59:47 UTC
Can a committer commit the attached patch?
Comment 4 Tomoaki AOKI 2015-03-07 03:30:50 UTC
(In reply to Larry Rosenman from comment #2)
Looks OK for me, too. Thanks!
Looking forward to be committed.
Comment 5 Larry Rosenman freebsd_committer freebsd_triage 2015-03-07 15:40:35 UTC
I got pkg-fallout messages about this as well. 

Can a committer commit these soon?
Comment 6 Vanilla I. Shu freebsd_committer freebsd_triage 2015-03-07 16:32:01 UTC
Committed, thanks.
Comment 7 commit-hook freebsd_committer freebsd_triage 2015-03-07 16:32:21 UTC
A commit references this bug:

Author: vanilla
Date: Sat Mar  7 16:31:55 UTC 2015
New revision: 380705
URL: https://svnweb.freebsd.org/changeset/ports/380705

Log:
  Upgrade to 4.89D

  PR:		198312
  Submitted by:	junchoon@dec.sakura.ne.jp
  Approved by:	maintainer

Changes:
  head/sysutils/lsof/Makefile
  head/sysutils/lsof/distinfo