bugGNU nano - Bugs: bug #44609, compile error on 2.4.0 because of...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #44609: compile error on 2.4.0 because of __time_t

Submitter:  Eric F <ief>
Submitted:  Mon 23 Mar 2015 04:20:12 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  astyanax Open/Closed:  Closed

Fri 17 Apr 2015 10:29:27 AM UTC, comment #5: 

Fix was released in nano 2.4.1.

Benno Schulenberg <bens>
Group administrator
Thu 26 Mar 2015 08:14:02 PM UTC, comment #4: 

No need to redefine anything, just using time_t instead of __time_t fixes it, as Chris has done.

Benno Schulenberg <bens>
Group administrator
Wed 25 Mar 2015 08:56:18 PM UTC, comment #3: 

#if defined(_APPLE_) && defined(_MACH_)
#undef __time_t
#define __time_t time_t
#endif

I think something like that might help.

Anonymous
Mon 23 Mar 2015 04:43:00 PM UTC, comment #2: 

Thanks! That was quick. ^^

Yes, that'd be nice. I doesn't hurt to have a “good copy”. Though, I've installed it now on my computer.

Eric F <ief>
Mon 23 Mar 2015 04:31:20 PM UTC, comment #1: 

Hello,

This was actually fixed shortly after release when I noticed this same problem on win32.  You are welcome to edit the src/text.c file and change that "__time_t" to just "time_t".  I can create and put up a pre2.4.1 tarball later tonight if you need to install across many machines.

Chris Allegretta <astyanax>
Group administrator
Mon 23 Mar 2015 04:20:12 PM UTC, original submission:  

I just compiled nano-2.4.0 and had an error in `make`


$ ./configure --enable-utf8


Make stopped at:

gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/usr/local/include/ncursesw -I/usr/local/include -I/usr/local/include  -g -O2 -Wall -MT text.o -MD -MP -MF .deps/text.Tpo -c -o text.o text.c
text.c: In function ‘do_alt_speller’:
text.c:2667:5: error: unknown type name ‘__time_t’
     __time_t timestamp;
     ^
Makefile:411: recipe for target 'text.o' failed
make[2]: *** [text.o] Error 1
make[2]: *** Waiting for unfinished jobs....


I tried with `time_t timestamp` instead, and it passed.

Have been using the (2.3.99)pre-version, and they've built fine. So this must be something new.

// OS X 10.7.5, GCC 4.9.2

Eric F <ief>

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by astyanax (Posted a comment)
  • -email is unavailable- added by ief (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-04-17 bens Open/ClosedOpen Closed
    2015-04-02 bens SummaryCompile error 2.4.0 compile error on 2.4.0 because of __time_t
    2015-03-23 astyanax StatusNone Fixed
        Assigned toNone astyanax

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code