Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Compiling on (old?) Solaris produces "subscripted value is neither array nor pointer" #97
Please forgive me if I fail to include the proper/necessary information
I am attempting to compile and install tig on a Solaris system of my employer for personal use/experimentation (under my home directory, not installed as root into system directories). I have installed the latest ncurses with wide character support enabled and libiconv libraries.
./configure generated this output:
checking for gcc... gcc
and make generated this output:
In file included from tig.c:14:
I've tried to research this on the internet, and found this thread:
but unfortunately I'm not sure what the proper remedy is, even though the participants in that thread seem to have updated something and got it to compile properly.
Any assistance is appreciated. Thanks!
Thank you very much for you very prompt replies. But I apologize: you've
I cloned your repo and checked out 9ba6219. I naively tried to run
I ran configure, output seemed same as before. But when I run make I get:
I assume it is because I don't know what I'm doing.
Please advise. :)
On Mon, Oct 22, 2012 at 1:44 PM, Jonas Fonseca firstname.lastname@example.org:
The simplest would be to start with the files from the tig-1.1 tarball and then only copy the .c and .h files. Something like:
I will fix the above error in the shell script. However, since you copied all files you triggered make to try to rebuild the configure script, which you don't need to do.
Sounds good. Unfortunately, I cannot try it for a few hours. I will let you
On Mon, Oct 22, 2012 at 4:30 PM, Jonas Fonseca email@example.com:
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I removed my tig-1.1 directory and extracted a fresh one from the tarball,
tig.c: In function `toggle_option':
I verified that my tig.c matches the version in 9ba6219.
For grins, I changed (map != NULL ? ARRAY_SIZE(map) : 0) to just 0 to see
On Mon, Oct 22, 2012 at 4:36 PM, JamesML Olsen firstname.lastname@example.org: