Bug 966357

Summary: Eclipse with Autotools and pkg-config project doesn't build
Product: [Fedora] Fedora Reporter: gareth foster <biggaz>
Component: eclipse-cdtAssignee: Jeff Johnston <jjohnstn>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: akurtako, andjrobins, jerboaa, jjohnstn, mbenitez, mmcgrath, overholt, rgrunber
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 10:13:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description gareth foster 2013-05-23 06:58:38 UTC
Description of problem:
There's an upstream description here.

http://code.google.com/p/pkg-config-support-for-eclipse-cdt/issues/detail?id=12

The pkg-config libs and includes are added to the project, but don't seem to be added to the actual makefiles, and so the project doesn't build.

Very annoying as this would allow people to write Gnome apps in C, C++ and Java so much more easily.

Version-Release number of selected component (if applicable):
Latest

How reproducible:
Always

Steps to Reproduce:
1. Create C/C++ Autotools project
2. Add a dependency on GTK+3
3. Try to include gtk.h

Actual results:
Building project fails.

Expected results:
It works.

Additional info:
Upstream bug report http://code.google.com/p/pkg-config-support-for-eclipse-cdt/issues/detail?id=12

Comment 1 Alexander Kurtakov 2014-11-13 10:24:26 UTC
Jeff, would you please take a look at this one.

Comment 2 Jeff Johnston 2014-11-14 17:59:43 UTC
An Autotools project does not automatically manage the Autotool files for you as in the case of a Managed Make project which forms the Makefile on your behalf.  The Makefile is under control of the appropriate Makefile.am/Makefile.in files.

The pkg-config plug-in could conceivably set flags for the configuration that the Makefile.am could use (for example CFLAGS=xxxx, CXXFLAGS=xxxx) which is how Autotools adds options for gcov, gprof, and debugging (see Project Properties->Autotools->Configure Settings->Advanced).  This could be used to add include and library paths for the build, assuming the Makefile.in follows normal C/C++ protocol for compilation/linking.  This might require some consultation as the current exposed APIs might not be sufficient.

Otherwise, the pkg-config plug-in would need to make the Autotool file changes itself.

Comment 3 Jaroslav Reznik 2015-03-03 16:53:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 4 Fedora End Of Life 2016-07-19 10:13:28 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.