I'm tearing my hair out trying unsuccessfully to selfupdate. Fink can't install ncurses, after I deleted /sw and reinstalled the Xcode Tools Developer.mpkg, X11SDK.pkg and MacOSX10.3.pkg packages. The failure looks a little like those in the Fink Beginners' Archive, http://www.mail-archive.com/[EMAIL PROTECTED]/msg10162.html http://www.mail-archive.com/[EMAIL PROTECTED]/msg10803.html, but I suspect there are significant differences.
Here's the last part of the console output from fink selfupdate, with apologies for its length. FWIW, I note the comment that the include-directory isn't in a standard location, the final lines which suggest to me that the file ncurses_def.h wasn't found: searching for it shows that its sole occurrence is in /sw/src/ncurses-5.3-20031018-2/ncurses-5.3/include/. Was it not copied or linked somewhere that it should have been? -- Jonathan
** Configuration summary for NCURSES 5.3 20031018:
bin directory: /sw/bin
lib directory: /sw/lib
include directory: /sw/include/ncurses
man directory: /sw/share/man
terminfo directory: /sw/share/terminfo** Include-directory is not in a standard location
cd man && make DESTDIR="" all
sh ./MKterminfo.sh ./terminfo.head ./../include/Caps ./terminfo.tail >terminfo.5
cd include && make DESTDIR="" all
cat curses.head >curses.h
AWK= sh ./MKkey_defs.sh ./Caps >>curses.h
./MKkey_defs.sh: line 78:
function print_cols(text,cols) {
printf "%s", text
len = length(text);
while (len < cols) {
printf " "
len += 8;
}
}
function decode(keycode) {
result = 0;
if (substr(keycode, 1, 2) == "0x") {
digits="0123456789abcdef";
} else if (substr(keycode, 1, 1) == "0") {
digits="01234567";
} else {
digits="0123456789";
}
while (length(keycode) != 0) {
digit=substr(keycode, 1, 1);
keycode=substr(keycode, 2);
result = result * length(digits) + index(digits, digit) - 1;
}
return result;
}
BEGIN {
maxkey=345;
pass=1;
key_max=1;
bits=1;
while (key_max < maxkey) {
bits = bits + 1;
key_max = (key_max * 2) + 1;
}
octal_fmt = sprintf ("%%0%do", (bits + 2) / 3 + 1);
}/^$/ {next;}
/^#/ {next;}
/^capalias/ {next;}
/^infoalias/ {next;}$5 != "-" && $6 != "-" {
if ($6 == "+") {
if (pass == 1 || pass == 2)
next;
thiskey=maxkey + 1;
} else {
if (pass == 3)
next;
thiskey=decode($6);
}
if (thiskey > maxkey)
maxkey = thiskey;
if (pass == 2 || pass == 3) {
showkey=sprintf(octal_fmt, thiskey);
if ($5 == "KEY_F(0)" ) {
printf "#define "
print_cols("KEY_F0", 16);
print_cols(showkey, 16);
print "/* Function keys. Space for 64 */";
printf "#define "
print_cols("KEY_F(n)", 16);
print_cols("(KEY_F0+(n))", 16);
print "/* Value of function key n */"
} else {
printf "#define "
print_cols($5, 16);
print_cols(showkey, 16);
printf "/*"
for (i = 8; i <= NF; i++)
printf " %s", $i
print " */"
}
}
}
END {
if (pass == 1) {
print maxkey;
} else if (pass == 4) {
print "";
printf "#define ";
print_cols("KEY_MAX", 16);
result = sprintf (octal_fmt, key_max);
print_cols(result, 16);
printf "/* Maximum key value is ";
printf octal_fmt, maxkey;
print " */";
}
}
: File name too long
./MKkey_defs.sh: line 78:
function print_cols(text,cols) {
printf "%s", text
len = length(text);
while (len < cols) {
printf " "
len += 8;
}
}
function decode(keycode) {
result = 0;
if (substr(keycode, 1, 2) == "0x") {
digits="0123456789abcdef";
} else if (substr(keycode, 1, 1) == "0") {
digits="01234567";
} else {
digits="0123456789";
}
while (length(keycode) != 0) {
digit=substr(keycode, 1, 1);
keycode=substr(keycode, 2);
result = result * length(digits) + index(digits, digit) - 1;
}
return result;
}BEGIN {
maxkey=;
pass=2;
key_max=1;
bits=1;
while (key_max < maxkey) {
bits = bits + 1;
key_max = (key_max * 2) + 1;
}
octal_fmt = sprintf ("%%0%do", (bits + 2) / 3 + 1);
}/^$/ {next;}
/^#/ {next;}
/^capalias/ {next;}
/^infoalias/ {next;}$5 != "-" && $6 != "-" {
if ($6 == "+") {
if (pass == 1 || pass == 2)
next;
thiskey=maxkey + 1;
} else {
if (pass == 3)
next;
thiskey=decode($6);
}
if (thiskey > maxkey)
maxkey = thiskey;
if (pass == 2 || pass == 3) {
showkey=sprintf(octal_fmt, thiskey);
if ($5 == "KEY_F(0)" ) {
printf "#define "
print_cols("KEY_F0", 16);
print_cols(showkey, 16);
print "/* Function keys. Space for 64 */";
printf "#define "
print_cols("KEY_F(n)", 16);
print_cols("(KEY_F0+(n))", 16);
print "/* Value of function key n */"
} else {
printf "#define "
print_cols($5, 16);
print_cols(showkey, 16);
printf "/*"
for (i = 8; i <= NF; i++)
printf " %s", $i
print " */"
}
}
}
END {
if (pass == 1) {
print maxkey;
} else if (pass == 4) {
print "";
printf "#define ";
print_cols("KEY_MAX", 16);
result = sprintf (octal_fmt, key_max);
print_cols(result, 16);
printf "/* Maximum key value is ";
printf octal_fmt, maxkey;
print " */";
}
}
: File name too long
./MKkey_defs.sh: line 78:
function print_cols(text,cols) {
printf "%s", text
len = length(text);
while (len < cols) {
printf " "
len += 8;
}
}
function decode(keycode) {
result = 0;
if (substr(keycode, 1, 2) == "0x") {
digits="0123456789abcdef";
} else if (substr(keycode, 1, 1) == "0") {
digits="01234567";
} else {
digits="0123456789";
}
while (length(keycode) != 0) {
digit=substr(keycode, 1, 1);
keycode=substr(keycode, 2);
result = result * length(digits) + index(digits, digit) - 1;
}
return result;
}BEGIN {
maxkey=;
pass=3;
key_max=1;
bits=1;
while (key_max < maxkey) {
bits = bits + 1;
key_max = (key_max * 2) + 1;
}
octal_fmt = sprintf ("%%0%do", (bits + 2) / 3 + 1);
}/^$/ {next;}
/^#/ {next;}
/^capalias/ {next;}
/^infoalias/ {next;}$5 != "-" && $6 != "-" {
if ($6 == "+") {
if (pass == 1 || pass == 2)
next;
thiskey=maxkey + 1;
} else {
if (pass == 3)
next;
thiskey=decode($6);
}
if (thiskey > maxkey)
maxkey = thiskey;
if (pass == 2 || pass == 3) {
showkey=sprintf(octal_fmt, thiskey);
if ($5 == "KEY_F(0)" ) {
printf "#define "
print_cols("KEY_F0", 16);
print_cols(showkey, 16);
print "/* Function keys. Space for 64 */";
printf "#define "
print_cols("KEY_F(n)", 16);
print_cols("(KEY_F0+(n))", 16);
print "/* Value of function key n */"
} else {
printf "#define "
print_cols($5, 16);
print_cols(showkey, 16);
printf "/*"
for (i = 8; i <= NF; i++)
printf " %s", $i
print " */"
}
}
}
END {
if (pass == 1) {
print maxkey;
} else if (pass == 4) {
print "";
printf "#define ";
print_cols("KEY_MAX", 16);
result = sprintf (octal_fmt, key_max);
print_cols(result, 16);
printf "/* Maximum key value is ";
printf octal_fmt, maxkey;
print " */";
}
}
: File name too long
./MKkey_defs.sh: line 78:
function print_cols(text,cols) {
printf "%s", text
len = length(text);
while (len < cols) {
printf " "
len += 8;
}
}
function decode(keycode) {
result = 0;
if (substr(keycode, 1, 2) == "0x") {
digits="0123456789abcdef";
} else if (substr(keycode, 1, 1) == "0") {
digits="01234567";
} else {
digits="0123456789";
}
while (length(keycode) != 0) {
digit=substr(keycode, 1, 1);
keycode=substr(keycode, 2);
result = result * length(digits) + index(digits, digit) - 1;
}
return result;
}BEGIN {
maxkey=;
pass=4;
key_max=1;
bits=1;
while (key_max < maxkey) {
bits = bits + 1;
key_max = (key_max * 2) + 1;
}
octal_fmt = sprintf ("%%0%do", (bits + 2) / 3 + 1);
}/^$/ {next;}
/^#/ {next;}
/^capalias/ {next;}
/^infoalias/ {next;}$5 != "-" && $6 != "-" {
if ($6 == "+") {
if (pass == 1 || pass == 2)
next;
thiskey=maxkey + 1;
} else {
if (pass == 3)
next;
thiskey=decode($6);
}
if (thiskey > maxkey)
maxkey = thiskey;
if (pass == 2 || pass == 3) {
showkey=sprintf(octal_fmt, thiskey);
if ($5 == "KEY_F(0)" ) {
printf "#define "
print_cols("KEY_F0", 16);
print_cols(showkey, 16);
print "/* Function keys. Space for 64 */";
printf "#define "
print_cols("KEY_F(n)", 16);
print_cols("(KEY_F0+(n))", 16);
print "/* Value of function key n */"
} else {
printf "#define "
print_cols($5, 16);
print_cols(showkey, 16);
printf "/*"
for (i = 8; i <= NF; i++)
printf " %s", $i
print " */"
}
}
}
END {
if (pass == 1) {
print maxkey;
} else if (pass == 4) {
print "";
printf "#define ";
print_cols("KEY_MAX", 16);
result = sprintf (octal_fmt, key_max);
print_cols(result, 16);
printf "/* Maximum key value is ";
printf octal_fmt, maxkey;
print " */";
}
}
: File name too long
sh -c 'if test "chtype" = "cchar_t" ; then cat ./curses.wide >>curses.h ; fi'
cat ./curses.tail >>curses.h
sh ./MKhashsize.sh ./Caps >hashsize.h
AWK= sh ./MKncurses_def.sh ./ncurses_defs >ncurses_def.h
./MKncurses_def.sh: line 58:
!/[EMAIL PROTECTED]/ {
if ( NF == 1 )
{
print "#ifndef", $1
print "#define", $1, "0"
print "#endif"
print ""
} else if ( NF != 0 ) {
print "#ifndef", $1
printf "#define"
for (n = 1; n <= NF; n++) {
printf " %s", $n
}
print ""
print "#endif"
print ""
}
}
END {
print "#endif /* NC_DEFINE_H */"
}
: No such file or directory
make[1]: *** [ncurses_def.h] Error 127
make: *** [all] Error 2
### execution of /var/tmp/tmp.2.8EWtYd failed, exit code 2
Failed: compiling ncurses-5.3-20031018-2 failed
[Emme:~] jonathan%
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners
