From: Robert B. <ha...@be...> - 2005-06-28 00:31:20
|
Good evening. My name is Robert Batesole and I am working on a senior = project for the Univ. of Southern Mississippi. I've been working with = the InfoMap software, attempting to correctly compile and run the = software under a Cygwin environment, but have encountered difficulties = when running the 'make' program after './configure'. Below is the output produced by both the make and ./configure files. = Any chance the problem can be identified? Thanks! -Robert Batesole OUTPUT OF 'MAKE' AND './CONFIGURE': Robert@robbiebee /tmp/infomap-nlp-0.8.5 $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.exe checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... .exe checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... (cached) yes checking for sqrt in -lm... yes checking for dbm_open in -lgdbm... no checking for dbm_open in -lgdbm_compat... yes checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking ndbm.h usability... yes checking ndbm.h presence... yes checking for ndbm.h... yes checking for an ANSI C-conforming const... yes checking for off_t... yes checking for size_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking whether lstat dereferences a symlink specified with a trailing = slash... yes checking whether stat accepts an empty string... no checking for getcwd... yes checking for memset... yes checking for setlocale... yes checking for sqrt... yes checking for strchr... yes checking for strdup... yes checking for strstr... yes checking for dbm_open... yes checking for dbm_close... yes checking for dbm_fetch... yes checking for dbm_store... yes configure: creating ./config.status ./config.status: line 305: NLP config.status 0.8.5 configured by ./configure, generated by GNU Autoconf 2.59, with options "" =20 Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it.: No such = file or d irectory config.status: creating Makefile config.status: creating preprocessing/Makefile config.status: creating search/Makefile config.status: creating svd/Makefile config.status: creating svd/svdinterface/Makefile config.status: creating lib/Makefile config.status: creating admin/Makefile config.status: creating admin/infomap-build config.status: creating admin/infomap-install config.status: creating admin/Makefile.data config.status: creating admin/default-params config.status: creating doc/Makefile config.status: creating doc/man/Makefile config.status: creating doc/man/man1/Makefile config.status: creating doc/man/man5/Makefile config.status: creating doc/html/Makefile config.status: creating doc/html/tutorial/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands =20 Robert@robbiebee /tmp/infomap-nlp-0.8.5 $ make make all-recursive make[1]: Entering directory `/tmp/infomap-nlp-0.8.5' Making all in . make[2]: Entering directory `/tmp/infomap-nlp-0.8.5' make[2]: Leaving directory `/tmp/infomap-nlp-0.8.5' Making all in admin make[2]: Entering directory `/tmp/infomap-nlp-0.8.5/admin' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/tmp/infomap-nlp-0.8.5/admin' Making all in lib make[2]: Entering directory `/tmp/infomap-nlp-0.8.5/lib' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/tmp/infomap-nlp-0.8.5/lib' Making all in search make[2]: Entering directory `/tmp/infomap-nlp-0.8.5/search' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/tmp/infomap-nlp-0.8.5/search' Making all in preprocessing make[2]: Entering directory `/tmp/infomap-nlp-0.8.5/preprocessing' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/tmp/infomap-nlp-0.8.5/preprocessing' Making all in svd make[2]: Entering directory `/tmp/infomap-nlp-0.8.5/svd' Making all in svdinterface make[3]: Entering directory `/tmp/infomap-nlp-0.8.5/svd/svdinterface' if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib -I../../admin -g = -O2 -MT m yutils.o -MD -MP -MF ".deps/myutils.Tpo" -c -o myutils.o myutils.c; \ then mv -f ".deps/myutils.Tpo" ".deps/myutils.Po"; else rm -f = ".deps/myutils.Tpo "; exit 1; fi myutils.c: In function `mymalloc': myutils.c:167: error: conflicting types for 'malloc' make[3]: *** [myutils.o] Error 1 make[3]: Leaving directory `/tmp/infomap-nlp-0.8.5/svd/svdinterface' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/infomap-nlp-0.8.5/svd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/infomap-nlp-0.8.5' make: *** [all] Error 2 =20 Robert@robbiebee /tmp/infomap-nlp-0.8.5 |
From: Scott C. <ced...@gm...> - 2005-06-28 14:25:24
|
Hi Robert, This is a bug that has been fixed in the CVS version of the software. We're planning to release the fixed version shortly, but until then you have two options: 1. Check out the latest CVS version and use that. (You can find instructions on how to obtain this version by following the "CVS Repository" link near the bottom of the Infomap SourceForge project info page (http://sourceforge.net/projects/infomap-nlp/) and reading the section entitled "Anonymous CVS Access".) 2. Edit the svd/svdinterface/myutils.c file. Go to line 167 in myutils.c, and remove the obsolete line where "malloc" is declared, right at the beginning of the myutils() function. After that everything should work. Please let me know if this works out for you. I'll try to get the new release out by the end of the week, if you'd rather wait for that. =20 Scott On 6/27/05, Robert Batesole <ha...@be...> wrote: > Making all in svdinterface=20 >=20 > myutils.c: In function `mymalloc':=20 >=20 > myutils.c:167: error: conflicting types for 'malloc'=20 >=20 > make[3]: *** [myutils.o] Error 1=20 >=20 > make[3]: Leaving directory `/tmp/infomap-nlp-0.8.5/svd/svdinterface'=20 > |
From: Robert B. <ha...@be...> - 2005-06-29 21:40:16
|
Good afternoon Scott, Due to limited experience with the UNIX environment, I decided to manually delete the line containing the malloc declaration as opposed to the CVS route. However, your original instructions identified the declaration on line 167 of myutils.c at the beginning of the myutils() function, but line 167 falls under the mymalloc() function, which I assumed was the reference you were indicating. I removed the declaration "char *malloc();" from myutils.c and reattempted the "./configure" and "make" commands, but received error messages when executing the "make" command. The following text below is the output of both commands. Any assistance you can provide is appreciated! -Robert Batesole Robert@robbiebee /tmp/infomap-nlp-0.8.5 $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.exe checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... .exe checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... (cached) yes checking for sqrt in -lm... yes checking for dbm_open in -lgdbm... no checking for dbm_open in -lgdbm_compat... yes checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking ndbm.h usability... yes checking ndbm.h presence... yes checking for ndbm.h... yes checking for an ANSI C-conforming const... yes checking for off_t... yes checking for size_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking whether lstat dereferences a symlink specified with a trailing slash... yes checking whether stat accepts an empty string... no checking for getcwd... yes checking for memset... yes checking for setlocale... yes checking for sqrt... yes checking for strchr... yes checking for strdup... yes checking for strstr... yes checking for dbm_open... yes checking for dbm_close... yes checking for dbm_fetch... yes checking for dbm_store... yes configure: creating ./config.status ./config.status: line 305: NLP config.status 0.8.5 configured by ./configure, generated by GNU Autoconf 2.59, with options "" Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it.: No such file or d irectory config.status: creating Makefile config.status: creating preprocessing/Makefile config.status: creating search/Makefile config.status: creating svd/Makefile config.status: creating svd/svdinterface/Makefile config.status: creating lib/Makefile config.status: creating admin/Makefile config.status: creating admin/infomap-build config.status: creating admin/infomap-install config.status: creating admin/Makefile.data config.status: creating admin/default-params config.status: creating doc/Makefile config.status: creating doc/man/Makefile config.status: creating doc/man/man1/Makefile config.status: creating doc/man/man5/Makefile config.status: creating doc/html/Makefile config.status: creating doc/html/tutorial/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands Robert@robbiebee /tmp/infomap-nlp-0.8.5 $ make Making all in . make[1]: Entering directory `/tmp/infomap-nlp-0.8.5' make[1]: Nothing to be done for `all-am'. make[1]: Leaving directory `/tmp/infomap-nlp-0.8.5' Making all in admin make[1]: Entering directory `/tmp/infomap-nlp-0.8.5/admin' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/tmp/infomap-nlp-0.8.5/admin' Making all in lib make[1]: Entering directory `/tmp/infomap-nlp-0.8.5/lib' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/tmp/infomap-nlp-0.8.5/lib' Making all in search make[1]: Entering directory `/tmp/infomap-nlp-0.8.5/search' Makefile:200: arrayoutput.Po: No such file or directory Makefile:201: associate.Po: No such file or directory Makefile:202: files.Po: No such file or directory Makefile:203: list.Po: No such file or directory Makefile:204: model_params.Po: No such file or directory Makefile:205: neighbors.Po: No such file or directory Makefile:206: print_doc.Po: No such file or directory Makefile:207: query.Po: No such file or directory Makefile:208: search_utils.Po: No such file or directory Makefile:209: toc.Po: No such file or directory Makefile:210: utils.Po: No such file or directory make[1]: *** No rule to make target `utils.Po'. Stop. make[1]: Leaving directory `/tmp/infomap-nlp-0.8.5/search' make: *** [all-recursive] Error 1 Robert@robbiebee /tmp/infomap-nlp-0.8.5 $ ----- Original Message ----- From: "Scott Cederberg" <ced...@gm...> To: "Robert Batesole" <ha...@be...> Cc: <inf...@li...> Sent: Tuesday, June 28, 2005 9:25 AM Subject: Re: [infomap-nlp-users] InfoMap and Cygwin Compiling Problems Hi Robert, This is a bug that has been fixed in the CVS version of the software. We're planning to release the fixed version shortly, but until then you have two options: 1. Check out the latest CVS version and use that. (You can find instructions on how to obtain this version by following the "CVS Repository" link near the bottom of the Infomap SourceForge project info page (http://sourceforge.net/projects/infomap-nlp/) and reading the section entitled "Anonymous CVS Access".) 2. Edit the svd/svdinterface/myutils.c file. Go to line 167 in myutils.c, and remove the obsolete line where "malloc" is declared, right at the beginning of the myutils() function. After that everything should work. Please let me know if this works out for you. I'll try to get the new release out by the end of the week, if you'd rather wait for that. Scott |
From: Scott C. <ced...@gm...> - 2005-06-29 21:59:05
|
Hi Robert, On 6/29/05, Robert Batesole <ha...@be...> wrote: > However, your original instructions identified the declaration on > line 167 of myutils.c at the beginning of the myutils() function, but lin= e > 167 falls under the mymalloc() function, which I assumed was the referenc= e > you were indicating. You're right; sorry for the mistake >=20 > I removed the declaration "char *malloc();" That's right. > Makefile:200: arrayoutput.Po: No such file or directory > Makefile:201: associate.Po: No such file or directory > Makefile:202: files.Po: No such file or directory > Makefile:203: list.Po: No such file or directory > Makefile:204: model_params.Po: No such file or directory > Makefile:205: neighbors.Po: No such file or directory > Makefile:206: print_doc.Po: No such file or directory > Makefile:207: query.Po: No such file or directory > Makefile:208: search_utils.Po: No such file or directory > Makefile:209: toc.Po: No such file or directory > Makefile:210: utils.Po: No such file or directory > make[1]: *** No rule to make target `utils.Po'. Stop. > make[1]: Leaving directory `/tmp/infomap-nlp-0.8.5/search' > make: *** [all-recursive] Error 1 > Hmm... these .Po files shouldn't have to be built; they are part of the distribution package. Can you tell me whether you have a search/.deps directory, and if so what its contents are? The .Po files should live in .deps subdirectories of search/, preprocessing/, svd/svdinterface/, etc. =20 Scott |
From: Scott C. <ced...@gm...> - 2005-06-29 22:07:13
|
One thing that may be worth trying is running "make clean" and then trying "make" again. |
From: Robert B. <ha...@be...> - 2005-06-30 00:56:00
|
Thanks for such a quick response. The faster I can get Infomap working in Cygwin, the sooner I can get my portion of the project underway! *grin* The contents of my search/.deps are as follows: 06/29/2005 04:20p 2,741 arrayoutput.Po 06/29/2005 04:20p 2,822 associate.Po 06/29/2005 04:20p 2,581 files.Po 06/29/2005 04:20p 2,576 list.Po 06/29/2005 04:20p 2,087 model_params.Po 06/29/2005 04:20p 2,763 neighbors.Po 06/29/2005 04:20p 2,822 print_doc.Po 06/29/2005 04:20p 2,723 query.Po 06/29/2005 04:20p 1,961 search_utils.Po 06/29/2005 04:20p 1,359 toc.Po 06/29/2005 04:20p 2,607 utils.Po The output of the "make clean" is as follows: [Robert@robbiebee /tmp/infomap-nlp-0.8.5]$ make clean Making clean in doc make[1]: Entering directory `/tmp/infomap-nlp-0.8.5/doc' Making clean in html make[2]: Entering directory `/tmp/infomap-nlp-0.8.5/doc/html' Making clean in tutorial make[3]: Entering directory `/tmp/infomap-nlp-0.8.5/doc/html/tutorial' make[3]: Nothing to be done for `clean'. make[3]: Leaving directory `/tmp/infomap-nlp-0.8.5/doc/html/tutorial' Making clean in . make[3]: Entering directory `/tmp/infomap-nlp-0.8.5/doc/html' make[3]: Nothing to be done for `clean-am'. make[3]: Leaving directory `/tmp/infomap-nlp-0.8.5/doc/html' make[2]: Leaving directory `/tmp/infomap-nlp-0.8.5/doc/html' Making clean in man make[2]: Entering directory `/tmp/infomap-nlp-0.8.5/doc/man' Making clean in man5 make[3]: Entering directory `/tmp/infomap-nlp-0.8.5/doc/man/man5' make[3]: Nothing to be done for `clean'. make[3]: Leaving directory `/tmp/infomap-nlp-0.8.5/doc/man/man5' Making clean in man1 make[3]: Entering directory `/tmp/infomap-nlp-0.8.5/doc/man/man1' make[3]: Nothing to be done for `clean'. make[3]: Leaving directory `/tmp/infomap-nlp-0.8.5/doc/man/man1' Making clean in . make[3]: Entering directory `/tmp/infomap-nlp-0.8.5/doc/man' make[3]: Nothing to be done for `clean-am'. make[3]: Leaving directory `/tmp/infomap-nlp-0.8.5/doc/man' make[2]: Leaving directory `/tmp/infomap-nlp-0.8.5/doc/man' Making clean in . make[2]: Entering directory `/tmp/infomap-nlp-0.8.5/doc' make[2]: Nothing to be done for `clean-am'. make[2]: Leaving directory `/tmp/infomap-nlp-0.8.5/doc' make[1]: Leaving directory `/tmp/infomap-nlp-0.8.5/doc' Making clean in svd make[1]: Entering directory `/tmp/infomap-nlp-0.8.5/svd' Making clean in svdinterface make[2]: Entering directory `/tmp/infomap-nlp-0.8.5/svd/svdinterface' Makefile:182: las2.Po: No such file or directory Makefile:183: model_params.Po: No such file or directory Makefile:184: myutils.Po: No such file or directory Makefile:185: svdinterface.Po: No such file or directory make[2]: *** No rule to make target `svdinterface.Po'. Stop. make[2]: Leaving directory `/tmp/infomap-nlp-0.8.5/svd/svdinterface' make[1]: *** [clean-recursive] Error 1 make[1]: Leaving directory `/tmp/infomap-nlp-0.8.5/svd' make: *** [clean-recursive] Error 1 [Robert@robbiebee /tmp/infomap-nlp-0.8.5]$ make Making all in . make[1]: Entering directory `/tmp/infomap-nlp-0.8.5' make[1]: Nothing to be done for `all-am'. make[1]: Leaving directory `/tmp/infomap-nlp-0.8.5' Making all in admin make[1]: Entering directory `/tmp/infomap-nlp-0.8.5/admin' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/tmp/infomap-nlp-0.8.5/admin' Making all in lib make[1]: Entering directory `/tmp/infomap-nlp-0.8.5/lib' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/tmp/infomap-nlp-0.8.5/lib' Making all in search make[1]: Entering directory `/tmp/infomap-nlp-0.8.5/search' Makefile:200: arrayoutput.Po: No such file or directory Makefile:201: associate.Po: No such file or directory Makefile:202: files.Po: No such file or directory Makefile:203: list.Po: No such file or directory Makefile:204: model_params.Po: No such file or directory Makefile:205: neighbors.Po: No such file or directory Makefile:206: print_doc.Po: No such file or directory Makefile:207: query.Po: No such file or directory Makefile:208: search_utils.Po: No such file or directory Makefile:209: toc.Po: No such file or directory Makefile:210: utils.Po: No such file or directory make[1]: *** No rule to make target `utils.Po'. Stop. make[1]: Leaving directory `/tmp/infomap-nlp-0.8.5/search' make: *** [all-recursive] Error 1 [Robert@robbiebee /tmp/infomap-nlp-0.8.5]$ ----- Original Message ----- From: "Scott Cederberg" <ced...@gm...> To: "Robert Batesole" <ha...@be...> Cc: <inf...@li...> Sent: Wednesday, June 29, 2005 4:58 PM Subject: Re: [infomap-nlp-users] InfoMap and Cygwin Compiling Problems Hi Robert, On 6/29/05, Robert Batesole <ha...@be...> wrote: > However, your original instructions identified the declaration on > line 167 of myutils.c at the beginning of the myutils() function, but line > 167 falls under the mymalloc() function, which I assumed was the reference > you were indicating. You're right; sorry for the mistake > > I removed the declaration "char *malloc();" That's right. > Makefile:200: arrayoutput.Po: No such file or directory > Makefile:201: associate.Po: No such file or directory > Makefile:202: files.Po: No such file or directory > Makefile:203: list.Po: No such file or directory > Makefile:204: model_params.Po: No such file or directory > Makefile:205: neighbors.Po: No such file or directory > Makefile:206: print_doc.Po: No such file or directory > Makefile:207: query.Po: No such file or directory > Makefile:208: search_utils.Po: No such file or directory > Makefile:209: toc.Po: No such file or directory > Makefile:210: utils.Po: No such file or directory > make[1]: *** No rule to make target `utils.Po'. Stop. > make[1]: Leaving directory `/tmp/infomap-nlp-0.8.5/search' > make: *** [all-recursive] Error 1 > Hmm... these .Po files shouldn't have to be built; they are part of the distribution package. Can you tell me whether you have a search/.deps directory, and if so what its contents are? The .Po files should live in .deps subdirectories of search/, preprocessing/, svd/svdinterface/, etc. Scott |
From: Scott C. <ced...@gm...> - 2005-06-30 03:21:03
|
Hi Robert, On 6/29/05, Robert Batesole <ha...@be...> wrote: > Thanks for such a quick response. The faster I can get Infomap working i= n > Cygwin, the sooner I can get my portion of the project underway! *grin* >=20 Well, I hope you can get there soon. > The contents of my search/.deps are as follows: >=20 > 06/29/2005 04:20p 2,741 arrayoutput.Po > 06/29/2005 04:20p 2,822 associate.Po > 06/29/2005 04:20p 2,581 files.Po > 06/29/2005 04:20p 2,576 list.Po > 06/29/2005 04:20p 2,087 model_params.Po > 06/29/2005 04:20p 2,763 neighbors.Po > 06/29/2005 04:20p 2,822 print_doc.Po > 06/29/2005 04:20p 2,723 query.Po > 06/29/2005 04:20p 1,961 search_utils.Po > 06/29/2005 04:20p 1,359 toc.Po > 06/29/2005 04:20p 2,607 utils.Po >=20 So you seem to have everything you need. The question is why make can't find these files. > [Robert@robbiebee /tmp/infomap-nlp-0.8.5]$ make > Makefile:200: arrayoutput.Po: No such file or directory > Makefile:201: associate.Po: No such file or directory > Makefile:202: files.Po: No such file or directory > Makefile:203: list.Po: No such file or directory > Makefile:204: model_params.Po: No such file or directory > Makefile:205: neighbors.Po: No such file or directory > Makefile:206: print_doc.Po: No such file or directory > Makefile:207: query.Po: No such file or directory > Makefile:208: search_utils.Po: No such file or directory > Makefile:209: toc.Po: No such file or directory > Makefile:210: utils.Po: No such file or directory So the problem is at lines 200--210 of search/Makefile. What do these lines say? Actually, could you send me that entire Makefile? If the lines in question (or any other lines that refer to the *.Po files; you should try searching through the file to find them) refer to these files as being in a location *other* than search/.deps/, you should change them. In my makefile, for instance, there are lines that say include ./$(DEPDIR)arrayoutput.Po include ./$(DEPDIR)/associate.Po include ./$(DEPDIR)/files.Po etc. $(DEPDIR) is defined elsewhere in the file: DEPDIR =3D .deps My best guess at this point is that the "configure" system has somehow incorrectly defined one or the other of these items in your Makefile (or a similar problem has happened somewhere else in the file). So please send me your Makefile and I'll take a look at it, but that's the kind of problem I recommend you try to track down and fix in the meantime. =20 Scott |