View previous topic :: View next topic |
Author |
Message |
jianglai n00b
Joined: 17 Feb 2014 Posts: 4
|
Posted: Thu Mar 26, 2015 1:44 am Post subject: Error updating nano on OS X 10.10.2 |
|
|
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 |
|
|
jianglai n00b
Joined: 17 Feb 2014 Posts: 4
|
Posted: Sat Mar 28, 2015 3:47 pm Post subject: |
|
|
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 |
|
|
unixj Tux's lil' helper
Joined: 18 Jul 2003 Posts: 147
|
|
Back to top |
|
|
|