Bug 174556

Summary: Running 'curl-config --vernum' prints no output
Product: [Fedora] Fedora Reporter: Art Haas <ahaas>
Component: curlAssignee: Ivana Varekova <varekova>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-12-02 08:16:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Art Haas 2005-11-29 23:48:48 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20051129 Firefox/1.6a1

Description of problem:
The 'curl-config' program produces no output when option '--vernum' is used. The program itself is a shell script, so a quick examination revealed that the 'vernum' bits of code in the 'case' block that handles the various options was missing the version information in the 'echo' statement that prints out the desired value. The fix is to add in the version info, and in the case of 'vernum' it is a hex value.

Before:

--vernum)
         echo
         exit 0
         ;;

After adding the version as hex:

--vernum)
        echo 070f00
        exit 0
        ;;

Things worked fine. As 'curl-config' is probably a generated file the problem may be a configuration problem during the build of the curl libraries.

Version-Release number of selected component (if applicable):
curl-devel-7.15.0-2

How reproducible:
Always

Steps to Reproduce:
1. curl-config --vernum
2.
3.
  

Actual Results:  No output.

Expected Results:  A hex value should be printed, like '070f00'.

Additional info:

See the description above for the fix. The change is trivial.

Comment 1 Ivana Varekova 2005-12-02 08:16:42 UTC
Thank you for your bug report, this problem should be fixed in the last version
(curl-7.15.0-3). If there is any problem, please reopen this bug.