Bug 198625 - graphics/ImageMagick: Remove CFLAGS causing build failure
Summary: graphics/ImageMagick: Remove CFLAGS causing build failure
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Koop Mast
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-16 14:21 UTC by Kevin Zheng
Modified: 2015-08-08 13:37 UTC (History)
0 users

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


Attachments
Patch to fix build (424 bytes, patch)
2015-03-16 14:21 UTC, Kevin Zheng
no flags Details | Diff
Poudriere build log from port BEFORE patch was applied (79.57 KB, text/x-log)
2015-03-16 14:22 UTC, Kevin Zheng
no flags Details
Poudriere build log from port AFTER patch was applied (436.47 KB, text/x-log)
2015-03-16 14:22 UTC, Kevin Zheng
no flags Details
Failed config.log (413.70 KB, text/x-log)
2015-04-07 01:50 UTC, Kevin Zheng
no flags Details

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