It is currently Tue Mar 19, 2024 1:28 am


All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Error Compiling Mumps Using Cygwin
PostPosted: Fri Dec 27, 2019 7:24 pm 

Joined: Fri Dec 27, 2019 6:43 pm
Posts: 1
Real Name: Marcelo
Began Programming in MUMPS: 27 Dec 2019
Hello everyone!
I'm a beginner and I can't install Mumps with Cygwin.
I set up the shm.h and ipc.h files as shown at https://sourceforge.net/projects/mumps/files/

But when I run the "Make" program there are many errors, notes, and warnings.

Could someone help in solving the issue?

I put the "Make" log below:

$ make
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c compile/dollar.c -o compile/dollar.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c compile/eval.c -o compile/eval.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c compile/localvar.c -o compile/localvar.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c compile/parse.c -o compile/parse.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c compile/routine.c -o compile/routine.o
compile/routine.c: In function ‘Compile_Routine’:
compile/routine.c:546:7: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
{ for (i = 0; source_ptr[i] == '\t'; source_ptr[i++] = ' ');
^~~
compile/routine.c:548:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
cptr->len = itocstring(cptr->buf, lino); // convert to a cstring
^~~~
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c database/db_buffer.c -o database/db_buffer.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c database/db_daemon.c -o database/db_daemon.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c database/db_get.c -o database/db_get.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c database/db_ic.c -o database/db_ic.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c database/db_kill.c -o database/db_kill.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c database/db_locate.c -o database/db_locate.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c database/db_main.c -o database/db_main.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c database/db_rekey.c -o database/db_rekey.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c database/db_set.c -o database/db_set.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c database/db_uci.c -o database/db_uci.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c database/db_util.c -o database/db_util.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c database/db_view.c -o database/db_view.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c init/init_create.c -o init/init_create.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c init/init_run.c -o init/init_run.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c init/init_start.c -o init/init_start.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c init/mumps.c -o init/mumps.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c runtime/runtime_attn.c -o runtime/runtime_attn.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c runtime/runtime_buildmvar.c -o runtime/runtime_buildmvar.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c runtime/runtime_debug.c -o runtime/runtime_debug.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c runtime/runtime_func.c -o runtime/runtime_func.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c runtime/runtime_math.c -o runtime/runtime_math.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c runtime/runtime_pattern.c -o runtime/runtime_pattern.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c runtime/runtime_run.c -o runtime/runtime_run.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c runtime/runtime_ssvn.c -o runtime/runtime_ssvn.o
runtime/runtime_ssvn.c: In function ‘SS_Set’:
runtime/runtime_ssvn.c:673:4: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
{ while (SemOp( SEM_GLOBAL, -systab->maxjob)); // lock GLOBAL
^~~~~
runtime/runtime_ssvn.c:674:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’
ClearJournal(i); // do it
^~~~~~~~~~~~
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c runtime/runtime_util.c -o runtime/runtime_util.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c runtime/runtime_vars.c -o runtime/runtime_vars.o
runtime/runtime_vars.c: In function ‘Vhorolog’:
runtime/runtime_vars.c:99:14: warning: variable ‘buf’ set but not used [-Wunused-but-set-variable]
struct tm *buf; // struct for localtime()
^~~
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c seqio/SQ_Util.c -o seqio/SQ_Util.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c seqio/SQ_Signal.c -o seqio/SQ_Signal.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c seqio/SQ_Device.c -o seqio/SQ_Device.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c seqio/SQ_File.c -o seqio/SQ_File.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c seqio/SQ_Pipe.c -o seqio/SQ_Pipe.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c seqio/SQ_Seqio.c -o seqio/SQ_Seqio.o
seqio/SQ_Seqio.c: In function ‘SQ_Use’:
seqio/SQ_Seqio.c:450:8: warning: unused variable ‘i’ [-Wunused-variable]
int i;
^
seqio/SQ_Seqio.c: In function ‘SQ_Open’:
seqio/SQ_Seqio.c:415:53: warning: ‘%s’ directive output may be truncated writing up to 32767 bytes into a region of size 256 [-Wformat-truncation=]
(void) snprintf ( (char *)c->name, MAX_SEQ_NAME, "%s", object->buf );
^~
seqio/SQ_Seqio.c:415:3: note: ‘snprintf’ output between 1 and 32768 bytes into a destination of size 256
(void) snprintf ( (char *)c->name, MAX_SEQ_NAME, "%s", object->buf );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c seqio/SQ_Socket.c -o seqio/SQ_Socket.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c seqio/SQ_Tcpip.c -o seqio/SQ_Tcpip.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c symbol/symbol_new.c -o symbol/symbol_new.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c symbol/symbol_util.c -o symbol/symbol_util.o
symbol/symbol_util.c: In function ‘ST_Data’:
symbol/symbol_util.c:486:54: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
while ((depPtr != ST_DEPEND_NULL) && // while more deps and
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(memcmp(depPtr->bytes, var->key, i) == 0) && // matches ok for i
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
(depPtr->keylen < var->slen) || // and var slen still longer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
symbol/symbol_util.c:448:14: warning: variable ‘prevPtr’ set but not used [-Wunused-but-set-variable]
ST_depend *prevPtr; // pointer to previous element
^~~~~~~
symbol/symbol_util.c: In function ‘ST_GetAdd’:
symbol/symbol_util.c:733:14: warning: variable ‘prevPtr’ set but not used [-Wunused-but-set-variable]
ST_depend *prevPtr = ST_DEPEND_NULL; // pointer to previous element
^~~~~~~
symbol/symbol_util.c: In function ‘ST_QueryD’:
symbol/symbol_util.c:843:14: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable]
ST_depend *prev = ST_DEPEND_NULL; // pointer to previous element
^~~~
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c util/util_key.c -o util/util_key.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c util/util_lock.c -o util/util_lock.o
util/util_lock.c: In function ‘LCK_Sub’:
util/util_lock.c:789:12: warning: variable ‘plptr’ set but not used [-Wunused-but-set-variable]
locktab *plptr; // previous locktab pointer
^~~~~
util/util_lock.c:782:7: warning: variable ‘r’ set but not used [-Wunused-but-set-variable]
int r = -1; // return value
^
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c util/util_memory.c -o util/util_memory.o
util/util_memory.c: In function ‘ncopy’:
util/util_memory.c:130:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
{ for (k = 0; dst[i-k-1] == '0'; k++); // check for trailing zeroes
^~~
util/util_memory.c:131:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
i -= k; // remove them (if any)
^
util/util_memory.c:215:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
{ for (k = dp; (k < i) && (dst[k] == '0'); k++); // find first non-zero
^~~
util/util_memory.c:216:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
bcopy(&dst[k], &dst[dp], i - k); // copy down
^~~~~
util/util_memory.c: In function ‘CleanJob’:
util/util_memory.c:277:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
{ for (i = 1; i < MAX_SEQ_IO; SQ_Close(i++)); // close all io
^~~
util/util_memory.c:278:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
partab.jobtab = NULL; // clear jobtab
^~~~~~
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c util/util_routine.c -o util/util_routine.o
util/util_routine.c: In function ‘Routine_Detach’:
util/util_routine.c:393:9: warning: variable ‘s’ set but not used [-Wunused-but-set-variable]
{ short s; // for SemOp() call
^
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c util/util_share.c -o util/util_share.o
util/util_share.c: In function ‘SemOp’:
util/util_share.c:101:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (numb < 1) // if it was an add
^~
util/util_share.c:104:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if (partab.jobtab->trap) // and we got a <Ctrl><C>
^~
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c util/util_strerror.c -o util/util_strerror.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -c xcall/xcall.c -o xcall/xcall.o
gcc -O -fsigned-char -Wall -Iinclude -D_FILE_OFFSET_BITS=64 -o mumps compile/dollar.o compile/eval.o compile/localvar.o compile/parse.o compile/routine.o database/db_buffer.o database/db_daemon.o database/db_get.o database/db_ic.o database/db_kill.o database/db_locate.o database/db_main.o database/db_rekey.o database/db_set.o database/db_uci.o database/db_util.o database/db_view.o init/init_create.o init/init_run.o init/init_start.o init/mumps.o runtime/runtime_attn.o runtime/runtime_buildmvar.o runtime/runtime_debug.o runtime/runtime_func.o runtime/runtime_math.o runtime/runtime_pattern.o runtime/runtime_run.o runtime/runtime_ssvn.o runtime/runtime_util.o runtime/runtime_vars.o seqio/SQ_Util.o seqio/SQ_Signal.o seqio/SQ_Device.o seqio/SQ_File.o seqio/SQ_Pipe.o seqio/SQ_Seqio.o seqio/SQ_Socket.o seqio/SQ_Tcpip.o symbol/symbol_new.o symbol/symbol_util.o util/util_key.o util/util_lock.o util/util_memory.o util/util_routine.o util/util_share.o util/util_strerror.o xcall/xcall.o -lm -lcrypt
/usr/lib/gcc/x86_64-pc-cygwin/7.4.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lcrypt
collect2: error: ld returned 1 exit status
make: *** [Makefile:84: all] Error 1

Cerbero@Cerbero-PC /home/mumps


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net