Bug 1387924

Summary: Rebuild including C version
Product: [Fedora] Fedora Reporter: Antonio T. (sagitter) <anto.trande>
Component: NLoptAssignee: Björn 'besser82' Esser <besser82>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: anto.trande, besser82, ml
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-29 11:46:42 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:
Bug Depends On:    
Bug Blocks: 1387927    

Description Antonio T. (sagitter) 2016-10-23 19:40:18 UTC
Description of problem:

Currently, NLopt is built with C++ support.
Can you build the C version, too?

Comment 1 Björn 'besser82' Esser 2016-11-01 13:36:24 UTC
From NLopt-README:

> Once it is installed, `#include <nlopt.h>` in your C/C++ programs and
> link it with `-lnlopt -lm`.  You may need to use the C++ compiler to link
> in order to include the C++ libraries (which are used internally by NLopt,
> even though it has a C API).

So, what do you need explicitly?

Comment 2 Antonio T. (sagitter) 2016-11-25 17:28:40 UTC
Sorry for late reply.

NumCosmo does not compile with NLOpt support:

checking for NLOPT... yes
checking for nlopt_create in -lnlopt... no
configure: error: Can't link to -lnlopt. The nlopt library is probably compiled with c++ support, recompile the C version.
error: Bad exit status from /var/tmp/rpm-tmp.B2XkIF (%build)

Comment 3 Antonio T. (sagitter) 2016-11-25 17:40:23 UTC
Probably, NLOpt can be compiled without --with-cxx for providing only subroutines written in C: http://ab-initio.mit.edu/wiki/index.php/NLopt_Installation#NLopt_with_C.2B.2B_algorithms

Comment 4 Fedora End Of Life 2017-02-28 10:29:40 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 5 Fedora End Of Life 2018-05-03 08:00:44 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 6 Fedora End Of Life 2018-05-29 11:46:42 UTC
Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26
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

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