Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error updating nano on OS X 10.10.2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
jianglai
n00b
n00b


Joined: 17 Feb 2014
Posts: 4

PostPosted: Thu Mar 26, 2015 1:44 am    Post subject: Error updating nano on OS X 10.10.2 Reply with quote

Happened today when I update.

Anyone has any ideas?

Thanks!

x86_64-apple-darwin14-gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/Users/jianglai/Gentoo/usr/share/locale\" -DSYSCONFDIR=\"/Users/jianglai/Gentoo/etc\" -I/Users/jianglai/Gentoo/usr/include/ncursesw -I/Users/jianglai/Gentoo/usr/include -march=nocona -O2 -pipe -Wall -c -o utils.o utils.c
text.c: In function ‘do_alt_speller’:
text.c:2667: error: ‘__time_t’ undeclared (first use in this function)
text.c:2667: error: (Each undeclared identifier is reported only once
text.c:2667: error: for each function it appears in.)
text.c:2667: error: expected ‘;’ before ‘timestamp’
text.c:2702: error: ‘timestamp’ undeclared (first use in this function)
Makefile:415: recipe for target 'text.o' failed
make[2]: *** [text.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/Users/jianglai/Gentoo/var/tmp/portage/app-editors/nano-2.4.0/work/nano-2.4.0/src'
Makefile:395: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/Users/jianglai/Gentoo/var/tmp/portage/app-editors/nano-2.4.0/work/nano-2.4.0'
Makefile:333: recipe for target 'all' failed
make: *** [all] Error 2
Back to top
View user's profile Send private message
jianglai
n00b
n00b


Joined: 17 Feb 2014
Posts: 4

PostPosted: Sat Mar 28, 2015 3:47 pm    Post subject: Reply with quote

OK I figured out the issue. The __time_t type is not declared on OS X. time_t should have been used instead. This must have been a change that has trickled down upstream. I created this patch, named it text.c.patch, and put it in ($prefix/etc/portage/patches/app-editors/nano-2.4.0), emerge is successful. Apologize that I don't know how to upload a patch directly.

Code:

--- /nano-2.4.0/src/text.c   2015-03-28 11:33:03.000000000 -0400
+++ /nano-2.4.0/src/text.new.c   2015-03-28 11:33:58.000000000 -0400
@@ -2664,7 +2664,7 @@
     ssize_t current_y_save = openfile->current_y;
     ssize_t lineno_save = openfile->current->lineno;
     struct stat spellfileinfo;
-    __time_t timestamp;
+    time_t timestamp;
     pid_t pid_spell;
     char *ptr;
     static int arglen = 3;
Back to top
View user's profile Send private message
unixj
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jul 2003
Posts: 147

PostPosted: Sat Apr 11, 2015 7:09 pm    Post subject: Reply with quote

Thanks for the heads up. In the past (and hopefully still) you could submit a bug report at:
https://bugs.gentoo.org/enter_bug.cgi?product=Gentoo%2FAlt
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum