mpiexec configuration
Komanduri Ravi Kumar
ravi at cdacindia.com
Mon Sep 16 08:31:32 EDT 2002
Hey All
After applying the patch which was sent by you if i do make then it
prints the following warnings and errors. It says undeclared identifier
FNM_CASEFIELD in config.c
gcc -MM -g -O2 -Wall -W -Wpointer-arith -Wwrite-strings -Wcast-align
-Wcast-qual -Wbad-function-cast -I/usr/local/PBS-2_3_16/include mpiexec.c
get_hosts.c start_tasks.c wait_tasks.c util.c config.c stdio.c gmpiconf.c
growstr.c > .depend
gcc -g -O2 -Wall -W -Wpointer-arith -Wwrite-strings -Wcast-align
-Wcast-qual -Wbad-function-cast -I/usr/local/PBS-2_3_16/include -c
mpiexec.c
In file included from mpiexec.h:14,
from mpiexec.c:22:
util.h:41: warning: `malloc' attribute directive ignored
mpiexec.c: In function `handle_signals':
mpiexec.c:126: warning: implicit declaration of function `sigemptyset'
mpiexec.c:128: warning: implicit declaration of function `sigaddset'
mpiexec.c:132: warning: implicit declaration of function `sigaction'
mpiexec.c: In function `main':
mpiexec.c:439: warning: int format, uid_t arg (arg 2)
gcc -g -O2 -Wall -W -Wpointer-arith -Wwrite-strings -Wcast-align
-Wcast-qual -Wbad-function-cast -I/usr/local/PBS-2_3_16/include -c
get_hosts.c
In file included from mpiexec.h:14,
from get_hosts.c:14:
util.h:41: warning: `malloc' attribute directive ignored
get_hosts.c: In function `get_hosts':
get_hosts.c:140: warning: implicit declaration of function `strsep'
get_hosts.c:140: warning: assignment makes pointer from integer without a
cast
gcc -g -O2 -Wall -W -Wpointer-arith -Wwrite-strings -Wcast-align
-Wcast-qual -Wbad-function-cast -I/usr/local/PBS-2_3_16/include -c
start_tasks.c
In file included from mpiexec.h:14,
from start_tasks.c:19:
util.h:41: warning: `malloc' attribute directive ignored
gcc -g -O2 -Wall -W -Wpointer-arith -Wwrite-strings -Wcast-align
-Wcast-qual -Wbad-function-cast -I/usr/local/PBS-2_3_16/include -c
wait_tasks.c
In file included from mpiexec.h:14,
from wait_tasks.c:13:
util.h:41: warning: `malloc' attribute directive ignored
gcc -g -O2 -Wall -W -Wpointer-arith -Wwrite-strings -Wcast-align
-Wcast-qual -Wbad-function-cast -I/usr/local/PBS-2_3_16/include -c util.c
In file included from mpiexec.h:14,
from util.c:18:
util.h:41: warning: `malloc' attribute directive ignored
gcc -g -O2 -Wall -W -Wpointer-arith -Wwrite-strings -Wcast-align
-Wcast-qual -Wbad-function-cast -I/usr/local/PBS-2_3_16/include -c
config.c
In file included from mpiexec.h:14,
from config.c:15:
util.h:41: warning: `malloc' attribute directive ignored
config.c: In function `parse_config':
config.c:113: warning: subscript has type `char'
config.c:125: warning: subscript has type `char'
config.c:130: warning: subscript has type `char'
config.c:132: warning: subscript has type `char'
config.c:141: warning: subscript has type `char'
config.c:150: warning: subscript has type `char'
config.c:157: warning: subscript has type `char'
config.c:168: warning: subscript has type `char'
config.c:175: `FNM_CASEFOLD' undeclared (first use in this function)
config.c:175: (Each undeclared identifier is reported only once
config.c:175: for each function it appears in.)
config.c:192: warning: subscript has type `char'
make: *** [config.o] Error 1
thanks in advance
sorry for large outut
regards
Ravi Kumar
On Mon, 16 Sep 2002, Ben Webb wrote:
> On Mon, Sep 16, 2002 at 03:33:29PM +0530, Komanduri Ravi Kumar wrote:
> > when i do configure it says paths.h not found.. ok because we removed
> > paths.h include from start_exec.c when we apply this patch
>
> Well, it doesn't actually remove paths.h; it just makes it conditional
> on HAVE_PATHS_H being defined by configure.
>
> > gcc -MM -g -O2 -Wall -W -Wpointer-arith -Wwrite-strings -Wcast-align
> > -Wcast-qual -Wbad-function-cast -I/usr/local/PBS-2_3_16/include mpiexec.c
> > get_hosts.c start_tasks.c wait_tasks.c util.c config.c stdio.c gmpiconf.c
> > growstr.c > .depend
> > make: *** Warning: File `start_tasks.c' has modification time in the
> > future
>
> That's OK - "touch start_tasks.c" should fix this.
>
> > start_tasks.c: In function `start_tasks':
> > start_tasks.c:323: `_PATH_DEFPATH' undeclared (first use in this function)
> > start_tasks.c:323: (Each undeclared identifier is reported only once
> > start_tasks.c:323: for each function it appears in.)
> > make: *** [start_tasks.o] Error 1
>
> Hmm, odd. This works fine on my Solaris box, although _PATH_DEFPATH is
> used on line 337 on my system, not 323. (Are you sure you haven't
> changed something else as well?) You could just replace the _PATH_DEFPATH
> with "/usr/bin:/bin" to get it to work temporarily, I suppose.
>
> Ben
> --
> ben at bellatrix.pcl.ox.ac.uk http://bellatrix.pcl.ox.ac.uk/~ben/
> "There is but one step from the grotesque to the horrible."
> - 'His Last Bow. Wisteria Lodge', Sir Arthur Conan Doyle
> _______________________________________________
> mpiexec mailing list
> mpiexec at osc.edu
> http://email.osc.edu/mailman/listinfo/mpiexec
>
More information about the mpiexec
mailing list