bugComplexity Measure - Bugs: bug #37789, Several build failures

 
 

bug #37789: Several build failures

Submitted by:  Brandon Invergo <brandon>
Submitted on:  Thu 22 Nov 2012 11:00:47 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: Bruce Korb <bkorb>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 24 Nov 2012 06:21:28 PM UTC, comment #1:

I guess when you depend upon dynamically changing projects (autotools and/or gnulib), you have to release occasionally.

The soon-to-be-released version will have updated tools and utilize stdbool.h instead of rolling my own. After 20 years, that header ought to be widespread enough.

Bruce Korb <bkorb>
Project AdministratorIn charge of this item.
Thu 22 Nov 2012 11:00:47 PM UTC, original submission:

In trying to build Complexity I ran into some build errors. First, you need to update your pull of gnulib because yours still refers to gets, which was removed from libc, resulting in this error:

In file included from freading.h:18:0,
from freading.c:20:
./stdio.h:1048:1: error: 'gets' undeclared here (not in a function)

Once references to gets are removed from stdio.in.h, I run into errors in building ftello.c from gnulib, which is strange because the system I am building on should not neet gnulib's version:

ftello.c: In function 'rpl_ftello':
ftello.c:45:7: error: 'fp_' undeclared (first use in this function)
ftello.c:45:7: note: each undeclared identifier is reported only once for each function it appe
ars in
ftello.c:45:20: error: '_IOWRT' undeclared (first use in this function)

I can find very few references to similar build errors but I have found a couple in gnutls from a year or so ago. It seems there's some problem in the configure script not properly handling the ftello checks. If I remove this check, then the build proceeds as normal.

Finally, I run into problems with your bool_t enum in complexity.h:

In file included from opts.h:210:0,
from complexity.c:24:
complexity.h:42:16: error: expected identifier before numeric constant

It would appear that "true" and "false" are declared as constants elsewhere but I could not find the definition in a cursory search. Simply renaming the enum members to TRUE and FALSE sufficed to fix the problem, so my suspicion is probably correct.

Once I correct all of these the build works fine. I hope this information helps!

Brandon Invergo <brandon>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bkorb (Posted a comment)
  • -unavailable- added by brandon (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 24 Nov 2012 06:21:28 PM UTCbkorbAssigned toNone=>bkorb

    Back to the top


    Powered by Savane 3.1-cleanup