Since yesterday, I have "jaguar".

But I can't update 'fink' correctly because I found a bug (?) in ncurses-5.2-8.

---------------------------------------------------
 fink update ncurses
sudo /sw/bin/fink update ncurses
Password:
Information about 1707 packages read in 3 seconds.

pkg ncurses version ###
pkg ncurses version 5.2-8
The following package will be installed or updated:
ncurses
rm -rf ncurses-5.2-8
mkdir -p /sw/src/ncurses-5.2-8
/sw/bin/tar -xvzf /sw/src/ncurses-5.2.tar.gz
ncurses-5.2/
ncurses-5.2/Ada95/
[...]
checking version of gcc... gcc (GCC) 3.1 20020420 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
[...]
sh ./base/MKlib_gen.sh "gcc -E" "gawk" <../include/curses.h | \
fgrep undef >../include/nomacros.h
[...]
cd ../obj_s; gcc -I../ncurses -I. -no-cpp-precomp -DNDEBUG -I. -I../include -I/sw/include -DHAVE_CONFIG_H -no-cpp-precomp -Wno-deprecated -fno-common -c ../ncurses/lib_gen.c
../ncurses/lib_gen.c: In function `addch':
../ncurses/lib_gen.c:20: parse error before '%' token
[...]
../ncurses/lib_gen.c:833: parse error before '%' token
make[1]: *** [../obj_s/lib_gen.o] Error 1
make: *** [all] Error 2
### execution of make failed, exit code 2
Failed: compiling ncurses-5.2-8 failed

---------------------------------------------------

If I make some tests :

> sudo -s
> cd /sw/src/ncurses-5.2-8/ncurses-5.2/ncurses/
> sh ./base/MKlib_gen.sh "gcc -E" "gawk" < ../include/curses.h
/*
* DO NOT EDIT THIS FILE BY HAND!
* It is generated by MKlib_gen.sh.
*
* This is a file of trivial functions generated from macro
* definitions in curses.h to satisfy the XSI Curses requirement
* that every macro also exist as a callable function.
*
* It will never be linked unless you call one of the entry
* points with its normal macro definition disabled. In that
* case, if you have no shared libraries, it will indirectly
* pull most of the rest of the library into your link image.
*/
#include <curses.priv.h>


#undef addch
int addch ( const chtype z)
{
% % T ( ( T_CALLED ( "addch(%s)"), _tracechtype2 ( 0, z))) ; returnCode ( waddch ( stdscr, z)) ;
}


'gcc -E' is not a 'good' preprocessor for 'ncurses' :

> sh ./base/MKlib_gen.sh "gcc -E -traditional" "gawk" < ../include/curses.h
/*
* DO NOT EDIT THIS FILE BY HAND!
* It is generated by MKlib_gen.sh.
*
* This is a file of trivial functions generated from macro
* definitions in curses.h to satisfy the XSI Curses requirement
* that every macro also exist as a callable function.
*
* It will never be linked unless you call one of the entry
* points with its normal macro definition disabled. In that
* case, if you have no shared libraries, it will indirectly
* pull most of the rest of the library into your link image.
*/
#include <curses.priv.h>


#undef addch
int addch ( __const chtype z)
{
T((T_CALLED("addch(%s)"), _tracechtype2(0,z))); returnCode( waddch(stdscr,z));
}

'gcc -E -traditional' or 'cpp' is correct !!!




--
Paul Gaborit -- <http://www.enstimac.fr/~gaborit/>
DR/GI -- <http://www.enstimac.fr/dr/gind/>
Perl en français -- <http://www.enstimac.fr/Perl/>


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to