Win32/MinGW port



I tied to compile latest (mc-2002-08-10-05.tar.gz) using
recent out-of-box distribution of MinGW on Windows NT 4.0 
(no cygwin) but I'm stuck. 

I managed to fix few problems:
 * include/sys/types.h:100: conflicting types for `mode_t'
   config.h:115: previous declaration of `mode_t'
   (removed from config.h)

 * include/sys/types.h:90: warning: redefinition of `pid_t'
   config.h:116: warning: `pid_t' previously declared here
   (removed from config.h)

 * no glib.h (downloaded and compiled)

 * In file included from ../src/tty.h:9,
                    from ../src/user.c:26:
   ../src/myslang.h:11: slang/slang-mc.h: No such file or directory
   In file included from ../src/user.c:33:
   ../src/user.h:5: edit/edit-widget.h: No such file or directory
   (just copied curred dir to get it on include path -I. -I../slang)

 * ../src/eregex.h:23: regex.h: No such file or directory
   (copied from some old distribution mc-4.1.36-mingw)

And now I' getting:
	gcc.exe -g -O0 -mno-cygwin -I. -I../slang -DMC_NT  \
      -DHAVE_CONFIG_H -c -odebug/file.o ../src/file.c

	../src/file.c:120: parse error before `umode_t'
	../src/file.c:120: warning: no semicolon at end of struct or union
	../src/file.c:122: parse error before `}'
      (see the rest of messages below)

I know it's hard to figure out what's wrong with my particular
configuration/includes/libraries but any input will be appreciated.
   
And thanks for MC. I can't live without it (currently I use
it on HP-UX, cygwin and Win32 port from 
http://home.a-city.de/franco.bez/mc/mc.html)

Piotr Lakomy

gcc.exe -g -O0 -mno-cygwin -I. -I../slang -DMC_NT  \
 -DHAVE_CONFIG_H -c -odebug/file.o ../src/file.c

	../src/file.c:120: parse error before `umode_t'
	../src/file.c:120: warning: no semicolon at end of struct or union
	../src/file.c:122: parse error before `}'	../src/file.c: In
function `free_linklist':
	../src/file.c:271: dereferencing pointer to incomplete type
	../src/file.c: In function `is_in_linklist':
	../src/file.c:290: dereferencing pointer to incomplete type
	../src/file.c:290: dereferencing pointer to incomplete type
	../src/file.c:292: dereferencing pointer to incomplete type
	../src/file.c: In function `check_hardlinks':
	../src/file.c:315: dereferencing pointer to incomplete type
	../src/file.c:316: dereferencing pointer to incomplete type
	../src/file.c:316: dereferencing pointer to incomplete type
	../src/file.c:316: dereferencing pointer to incomplete type
	../src/file.c:317: dereferencing pointer to incomplete type
	../src/file.c:319: dereferencing pointer to incomplete type
	../src/file.c:331: sizeof applied to an incomplete type
	../src/file.c:334: dereferencing pointer to incomplete type
	../src/file.c:335: dereferencing pointer to incomplete type
	../src/file.c:336: dereferencing pointer to incomplete type
	../src/file.c:337: dereferencing pointer to incomplete type
	../src/file.c:338: dereferencing pointer to incomplete type
	../src/file.c:340: dereferencing pointer to incomplete type
	../src/file.c: In function `copy_dir_dir':
	../src/file.c:828: `DIR' undeclared (first use in this function)
	../src/file.c:828: (Each undeclared identifier is reported only once
	../src/file.c:828: for each function it appears in.)
	../src/file.c:828: `reading' undeclared (first use in this function)
	../src/file.c:829: parse error before `char'
	../src/file.c:837: `return_status' undeclared (first use in this
function)
	../src/file.c:872: `lp' undeclared (first use in this function)
	../src/file.c:872: sizeof applied to an incomplete type
	../src/file.c:890: `dest_dir' undeclared (first use in this
function)
	../src/file.c:935: sizeof applied to an incomplete type
	../src/file.c:961: warning: assignment makes pointer from integer
without a cast
	../src/file.c:965: dereferencing pointer to incomplete type
	../src/file.c:967: dereferencing pointer to incomplete type
	../src/file.c:971: `path' undeclared (first use in this function)
	../src/file.c:971: dereferencing pointer to incomplete type
	../src/file.c:975: `mdpath' undeclared (first use in this function)
	../src/file.c:975: dereferencing pointer to incomplete type
	../src/file.c:986: `dest_file' undeclared (first use in this
function)
	../src/file.c:994: sizeof applied to an incomplete type
	../src/file.c:999: dereferencing pointer to incomplete type
	../src/file.c:1017: `utb' undeclared (first use in this function)
	../src/file.c: In function `move_dir_dir':
	../src/file.c:1247: dereferencing pointer to incomplete type
	../src/file.c:1248: dereferencing pointer to incomplete type
	../src/file.c:1250: dereferencing pointer to incomplete type
	../src/file.c:1252: dereferencing pointer to incomplete type
	../src/file.c:1262: dereferencing pointer to incomplete type
	../src/file.c: In function `recursive_erase':
	../src/file.c:1306: `DIR' undeclared (first use in this function)
	../src/file.c:1306: `reading' undeclared (first use in this
function)
	../src/file.c:1307: parse error before `char'
	../src/file.c:1318: warning: assignment makes pointer from integer
without a cast
	../src/file.c:1318: `return_status' undeclared (first use in this
function)
	../src/file.c:1319: dereferencing pointer to incomplete type
	../src/file.c:1321: dereferencing pointer to incomplete type
	../src/file.c:1323: `path' undeclared (first use in this function)
	../src/file.c:1323: dereferencing pointer to incomplete type
	../src/file.c: In function `check_dir_is_empty':
	../src/file.c:1357: `DIR' undeclared (first use in this function)
	../src/file.c:1357: `dir' undeclared (first use in this function)
	../src/file.c:1358: parse error before `struct'
	../src/file.c:1365: `i' undeclared (first use in this function)
	../src/file.c:1365: `d' undeclared (first use in this function)
	../src/file.c: In function `compute_dir_size':
	../src/file.c:1496: `DIR' undeclared (first use in this function)
	../src/file.c:1496: `dir' undeclared (first use in this function)
	../src/file.c:1497: parse error before `struct'
	../src/file.c:1504: `direct' undeclared (first use in this function)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]