From: Zbynek G. <zb...@me...> - 2009-06-04 16:51:40
|
Hi George, I'm also using Infomap NLP on Mac OS X 10.5.7 and it seems, that the problem is in the new version of developer tools in Leopard. My solution was: ./configure CFLAGS=-fnested-functions Clean all files before you will run configure, best regards Zbynek Garsky On Jun 4, 2009, at 6:55 AM, George Stephen Ward wrote: > Hi, > > I'm using Mac OS X 10.5.7 using gcc built-in specs. > > Target: i686-apple-darwin9 > Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable- > checking -enable-werror --prefix=/usr --mandir=/share/man --enable- > languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ > $/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/ > lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic > -- > host=i686-apple-darwin9 --target=i686-apple-darwin9 > Thread model: posix > gcc version 4.0.1 (Apple Inc. build 5493) > > > The ./configure scripts has run without error but when the make > command is run I get the error. > > tokenizer.c: In function ‘initialize_tokenizer’: > tokenizer.c:78: warning: comparison between pointer and integer > tokenizer.c: In function ‘next_token’: > tokenizer.c:179: error: nested functions are disabled, use -fnested- > functions to re-enable > make[2]: *** [tokenizer.o] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > Here's the full transcript. > > MacBook-2:infomap-nlp-0.8.6 gsward$ sudo make > make all-recursive > Making all in . > make[2]: Nothing to be done for `all-am'. > Making all in admin > make[2]: Nothing to be done for `all'. > Making all in lib > make[2]: Nothing to be done for `all'. > Making all in search > source='associate.c' object='associate.o' libtool=no \ > depfile='.deps/associate.Po' tmpdepfile='.deps/associate.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../admin -g -O2 - > c `test -f 'associate.c' || echo './'`associate.c > source='files.c' object='files.o' libtool=no \ > depfile='.deps/files.Po' tmpdepfile='.deps/files.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../admin -g -O2 - > c `test -f 'files.c' || echo './'`files.c > source='query.c' object='query.o' libtool=no \ > depfile='.deps/query.Po' tmpdepfile='.deps/query.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../admin -g -O2 - > c `test -f 'query.c' || echo './'`query.c > source='neighbors.c' object='neighbors.o' libtool=no \ > depfile='.deps/neighbors.Po' tmpdepfile='.deps/neighbors.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../admin -g -O2 - > c `test -f 'neighbors.c' || echo './'`neighbors.c > source='arrayoutput.c' object='arrayoutput.o' libtool=no \ > depfile='.deps/arrayoutput.Po' tmpdepfile='.deps/arrayoutput.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../admin -g -O2 - > c `test -f 'arrayoutput.c' || echo './'`arrayoutput.c > source='list.c' object='list.o' libtool=no \ > depfile='.deps/list.Po' tmpdepfile='.deps/list.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../admin -g -O2 - > c `test -f 'list.c' || echo './'`list.c > source='../lib/utils.c' object='utils.o' libtool=no \ > depfile='.deps/utils.Po' tmpdepfile='.deps/utils.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../admin -g -O2 - > c -o utils.o `test -f '../lib/utils.c' || echo './'`../lib/utils.c > source='toc.c' object='toc.o' libtool=no \ > depfile='.deps/toc.Po' tmpdepfile='.deps/toc.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../admin -g -O2 - > c `test -f 'toc.c' || echo './'`toc.c > source='../lib/model_params.c' object='model_params.o' libtool=no \ > depfile='.deps/model_params.Po' tmpdepfile='.deps/model_params.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../admin -g -O2 - > c -o model_params.o `test -f '../lib/model_params.c' || echo './'`../ > lib/model_params.c > source='search_utils.c' object='search_utils.o' libtool=no \ > depfile='.deps/search_utils.Po' tmpdepfile='.deps/search_utils.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../admin -g -O2 - > c `test -f 'search_utils.c' || echo './'`search_utils.c > gcc -g -O2 -o associate associate.o files.o query.o neighbors.o > arrayoutput.o list.o utils.o toc.o model_params.o search_utils.o -lm > source='print_doc.c' object='print_doc.o' libtool=no \ > depfile='.deps/print_doc.Po' tmpdepfile='.deps/print_doc.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../admin -g -O2 - > c `test -f 'print_doc.c' || echo './'`print_doc.c > gcc -g -O2 -o print_doc print_doc.o toc.o model_params.o > search_utils.o -lm > Making all in preprocessing > source='prepare_corpus.c' object='prepare_corpus.o' libtool=no \ > depfile='.deps/prepare_corpus.Po' tmpdepfile='.deps/ > prepare_corpus.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../admin -g -O2 - > c `test -f 'prepare_corpus.c' || echo './'`prepare_corpus.c > source='word_tree.c' object='word_tree.o' libtool=no \ > depfile='.deps/word_tree.Po' tmpdepfile='.deps/word_tree.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../admin -g -O2 - > c `test -f 'word_tree.c' || echo './'`word_tree.c > source='tokenizer.c' object='tokenizer.o' libtool=no \ > depfile='.deps/tokenizer.Po' tmpdepfile='.deps/tokenizer.TPo' \ > depmode=gcc3 /bin/sh ../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../admin -g -O2 - > c `test -f 'tokenizer.c' || echo './'`tokenizer.c > tokenizer.c: In function ‘initialize_tokenizer’: > tokenizer.c:78: warning: comparison between pointer and integer > tokenizer.c: In function ‘next_token’: > tokenizer.c:179: error: nested functions are disabled, use -fnested- > functions to re-enable > make[2]: *** [tokenizer.o] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the > latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > infomap-nlp-users mailing list > inf...@li... > https://lists.sourceforge.net/lists/listinfo/infomap-nlp-users |