Bug 230673 - java/jikes: fix build on FreeBSD 11.2
Summary: java/jikes: fix build on FreeBSD 11.2
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: Tobias Kortkamp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-16 18:13 UTC by Ting-Wei Lan
Modified: 2018-08-26 10:11 UTC (History)
1 user (show)

See Also:


Attachments
Fix jikes on FreeBSD 11.2 with USES=autoreconf (434 bytes, patch)
2018-08-16 18:13 UTC, Ting-Wei Lan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ting-Wei Lan 2018-08-16 18:13:33 UTC
Created attachment 196256 [details]
Fix jikes on FreeBSD 11.2 with USES=autoreconf

jikes currently fails to build on FreeBSD 11.2 during the configure step:

checking whether the compiler implements namespaces... yes
checking whether the compiler supports ISO C++ standard library... no
checking whether the compiler recognizes bool as a built-in type... yes
checking for VC++ style set_new_handler... no
checking for standard set_new_handler... no
configure: error: Could not find standard set_new_handler function
===>  Script "configure" failed unexpectedly.
Please report the problem to ports@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/java/jikes/work/jikes-1.22/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

After reading config.log, It looks like that the pre-generated configure script is too old to work with the current version of the compiler, so the easiest fix is to add USES=autoreconf to generate the configure script with newer autoconf.

I think this should also fix build on FreeBSD 12, but I currently don't have a FreeBSD 12 system to test so I don't remove the BROKEN_FreeBSD_12 line.
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-08-26 10:11:16 UTC
A commit references this bug:

Author: tobik
Date: Sun Aug 26 10:10:25 UTC 2018
New revision: 478118
URL: https://svnweb.freebsd.org/changeset/ports/478118

Log:
  java/jikes: Unbreak on 12.0 and fix build with Clang 6

  checking for standard set_new_handler... no
  configure: error: Could not find standard set_new_handler function

  PR:		230673
  Submitted by:	Ting-Wei Lan <lantw44@gmail.com>

Changes:
  head/java/jikes/Makefile