Bug 198625

Summary: graphics/ImageMagick: Remove CFLAGS causing build failure
Product: Ports & Packages Reporter: Kevin Zheng <kevinz5000>
Component: Individual Port(s)Assignee: Koop Mast <kwm>
Status: Closed Unable to Reproduce    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (kwm)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch to fix build
none
Poudriere build log from port BEFORE patch was applied
none
Poudriere build log from port AFTER patch was applied
none
Failed config.log none

Description Kevin Zheng 2015-03-16 14:21:39 UTC
Created attachment 154417 [details]
Patch to fix build

In my poudriere, clang produces a warning (unused compiler flag) which is treated as an error by the configure script that detects whether '-fPIC' works or not. This causes '-fPIC' to be dropped and the package will fail due to a linker error.

I'm not certain why this issue seems to only manifest itself on my machine.

Regardless, this patch seems reasonably correct, and should be committed anyways.
Comment 1 Kevin Zheng 2015-03-16 14:22:27 UTC
Created attachment 154418 [details]
Poudriere build log from port BEFORE patch was applied
Comment 2 Kevin Zheng 2015-03-16 14:22:58 UTC
Created attachment 154419 [details]
Poudriere build log from port AFTER patch was applied
Comment 3 Kevin Zheng 2015-03-16 14:26:18 UTC
I reported a similar issue in Bug #197405.
Comment 4 Koop Mast freebsd_committer freebsd_triage 2015-04-06 13:24:45 UTC
Hi, I can't reproduce this issue in my poudriere jails.

About the CPPFLAGS line it is needed otherwise configure might not pick up all the enabled options correctly.

Could you try to reproduce the failure, and add the resulting config.log to this bug?
Comment 5 Kevin Zheng 2015-04-07 01:50:42 UTC
Created attachment 155293 [details]
Failed config.log

A failure occurs around line 2026 with "warning: argument unused during compilation". Of course this might be a red herring with the actual failure elsewhere; in any case the attached patch fixes this issue.

This issue seems very similar to #197405, which I also reported. This does seem like something funny about my poudriere environment, but I'm not sure what.
Comment 6 Kevin Zheng 2015-08-08 13:37:22 UTC
I can no longer reproduce the issue, so it's as good as fixed.