News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Ygdrazil

CPCXFS on Linux

Started by Ygdrazil, 00:03, 23 August 17

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ygdrazil

Hi there

I am moving some of my stuff to Linux

I really need CPCXFS on my Linux box, how do i run the make file to compile a Linux version of CPCXFS?

I use CPCXFS frequently on windows .... but the binaries are supplied for windows..

Hope someone can help!

Regards,
Ygdrazil

Quote from: arnoldemu on 13:47, 21 October 16
cpcxfs has been updated.

Fixed:
- errors shown with static analysis
- cpcxfs will correctly set ERRORLEVEL command-line variable under more error conditions.
- threre is more bug I forget them sorry.

http://www.cpctech.org.uk/download/cpcxfs.zip

Again I will build a windows binary over the next day or two and add it to the archive.

arnoldemu

Quote from: Ygdrazil on 00:03, 23 August 17
Hi there

I am moving some of my stuff to Linux

I really need CPCXFS on my Linux box, how do i run the make file to compile a Linux version of CPCXFS?

I use CPCXFS frequently on windows .... but the binaries are supplied for windows..

Hope someone can help!

Regards,
Ygdrazil
You made need to install termcap first, I can't remember which library it's in so try this:

sudo apt-get install termcap*


then:

cd src
make -f makefile.lnx

I'll try and make a better set of build scripts with full instructions.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Ygdrazil

Hi Arnoldemu!

Thanks for the tip:

I didnt know about termcap*

I tried the command: make -f makefile.lnx though..

After installing termcap....

I still get an error when trying to execute the make file (make -f makefile.lnx):

make: Nothing to be done for 'default'.

Hope this helps!

Regards,
Ygdrazil


make: Nothing to be done for 'default'.



CPCBEGIN

Quote from: krusty_benediction on 16:38, 23 August 17
I have added this tool to my toolchain https://github.com/cpcsdk/docker-amstrad-crossdevI found the dependency in the following package libncurses5-dev in my distribution (ubuntu)
404 not found  :(
Retro & opensource

CPCBEGIN

#6
Anyway I get compile cpcxfs with these commands:
sudo apt-get install termcap* build-essential
wget http://cpctech.cpc-live.com/download/cpcxfs.zip
unzip -x cpcxfs.zip
cd src
make -f makefile.lnx clean
make -f makefile.lnx
sudo mv cpcxfs /usr/local/bin
Retro & opensource

Ygdrazil

#7
Hi there

Thanks for the tip..

but i still get a sh*t amount of error messages!

Hope i i didnt break something  ???

Regards,
Ygdrazil

make -f makefile.lnx
gcc -Wall -O3 -DLINUX=1 -DDOS=0   -c -o match.o match.c
gcc -Wall -O3 -DLINUX=1 -DDOS=0   -c -o tools.o tools.c
gcc -Wall -O3 -DLINUX=1 -DDOS=0   -c -o fs.o fs.c
In file included from /usr/include/string.h:630:0,
                 from cpcfs.h:80,
                 from fs.c:24:
fs.c: In function 'tag_ok':
fs.c:48:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
  if (strncmp("EXTENDED", (signed char *)disk_header.tag,8)==0)
                          ^
In file included from cpcfs.h:80:0,
                 from fs.c:24:
/usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'signed char *'
extern size_t strlen (const char *__s)
               ^~~~~~
In file included from /usr/include/string.h:630:0,
                 from cpcfs.h:80,
                 from fs.c:24:
fs.c:48:26: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
  if (strncmp("EXTENDED", (signed char *)disk_header.tag,8)==0)
                          ^
fs.c:48:26: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:48:26: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
  if (strncmp("EXTENDED", (signed char *)disk_header.tag,8)==0)
                          ^
fs.c:48:26: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:48:26: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
  if (strncmp("EXTENDED", (signed char *)disk_header.tag,8)==0)
                          ^
fs.c:48:26: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:48:26: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
  if (strncmp("EXTENDED", (signed char *)disk_header.tag,8)==0)
                          ^
fs.c:48:26: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:48:26: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
  if (strncmp("EXTENDED", (signed char *)disk_header.tag,8)==0)
                          ^
fs.c:48:26: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:48:26: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
  if (strncmp("EXTENDED", (signed char *)disk_header.tag,8)==0)
                          ^
fs.c:48:26: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:48:26: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign]
  if (strncmp("EXTENDED", (signed char *)disk_header.tag,8)==0)
                          ^
In file included from cpcfs.h:80:0,
                 from fs.c:24:
/usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'signed char *'
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
            ^~~~~~~
In file included from /usr/include/string.h:630:0,
                 from cpcfs.h:80,
                 from fs.c:24:
fs.c:54:25: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
  if (strncmp("MV - CPC",(signed char*)disk_header.tag,8)==0)
                         ^
In file included from cpcfs.h:80:0,
                 from fs.c:24:
/usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'signed char *'
extern size_t strlen (const char *__s)
               ^~~~~~
In file included from /usr/include/string.h:630:0,
                 from cpcfs.h:80,
                 from fs.c:24:
fs.c:54:25: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
  if (strncmp("MV - CPC",(signed char*)disk_header.tag,8)==0)
                         ^
fs.c:54:25: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:54:25: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
  if (strncmp("MV - CPC",(signed char*)disk_header.tag,8)==0)
                         ^
fs.c:54:25: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:54:25: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
  if (strncmp("MV - CPC",(signed char*)disk_header.tag,8)==0)
                         ^
fs.c:54:25: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:54:25: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
  if (strncmp("MV - CPC",(signed char*)disk_header.tag,8)==0)
                         ^
fs.c:54:25: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:54:25: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
  if (strncmp("MV - CPC",(signed char*)disk_header.tag,8)==0)
                         ^
fs.c:54:25: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:54:25: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
  if (strncmp("MV - CPC",(signed char*)disk_header.tag,8)==0)
                         ^
fs.c:54:25: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:54:25: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign]
  if (strncmp("MV - CPC",(signed char*)disk_header.tag,8)==0)
                         ^
In file included from cpcfs.h:80:0,
                 from fs.c:24:
/usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'signed char *'
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
            ^~~~~~~
fs.c: In function 'glob_cpm_next':
fs.c:1040:21: warning: pointer targets in passing argument 1 of 'build_cpm_name_32' differ in signedness [-Wpointer-sign]
   build_cpm_name_32((signed char*)name, directory[i].user,
                     ^
In file included from fs.c:24:0:
cpcfs.h:428:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name_32(char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~~~~
fs.c:1041:7: warning: pointer targets in passing argument 3 of 'build_cpm_name_32' differ in signedness [-Wpointer-sign]
       (signed char*)directory[i].root,
       ^
In file included from fs.c:24:0:
cpcfs.h:428:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name_32(char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~~~~
fs.c:1042:7: warning: pointer targets in passing argument 4 of 'build_cpm_name_32' differ in signedness [-Wpointer-sign]
       (signed char*)directory[i].ext);
       ^
In file included from fs.c:24:0:
cpcfs.h:428:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name_32(char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~~~~
fs.c:1043:13: warning: pointer targets in passing argument 1 of 'match' differ in signedness [-Wpointer-sign]
   if (match((signed char*)pattern[glob_env],(signed char*)name)) {
             ^
In file included from cpcfs.h:23:0,
                 from fs.c:24:
match.h:84:9: note: expected 'char *' but argument is of type 'signed char *'
BOOLEAN match (char *pattern, char *text);
         ^~~~~
fs.c:1043:45: warning: pointer targets in passing argument 2 of 'match' differ in signedness [-Wpointer-sign]
   if (match((signed char*)pattern[glob_env],(signed char*)name)) {
                                             ^
In file included from cpcfs.h:23:0,
                 from fs.c:24:
match.h:84:9: note: expected 'char *' but argument is of type 'signed char *'
BOOLEAN match (char *pattern, char *text);
         ^~~~~
fs.c: In function 'glob_cpm_file':
fs.c:1065:35: warning: pointer targets in passing argument 3 of 'parse_cpm_filename' differ in signedness [-Wpointer-sign]
  if (parse_cpm_filename(pat,&user,root,ext))
                                   ^~~~
In file included from fs.c:24:0:
cpcfs.h:423:6: note: expected 'char *' but argument is of type 'uchar * {aka unsigned char *}'
int  parse_cpm_filename(char *name, int *user, char *root, char *ext);
      ^~~~~~~~~~~~~~~~~~
fs.c:1065:40: warning: pointer targets in passing argument 4 of 'parse_cpm_filename' differ in signedness [-Wpointer-sign]
  if (parse_cpm_filename(pat,&user,root,ext))
                                        ^~~
In file included from fs.c:24:0:
cpcfs.h:423:6: note: expected 'char *' but argument is of type 'uchar * {aka unsigned char *}'
int  parse_cpm_filename(char *name, int *user, char *root, char *ext);
      ^~~~~~~~~~~~~~~~~~
fs.c:1067:8: warning: pointer targets in passing argument 1 of 'upper' differ in signedness [-Wpointer-sign]
  upper(root);
        ^~~~
In file included from fs.c:24:0:
cpcfs.h:399:7: note: expected 'char *' but argument is of type 'uchar * {aka unsigned char *}'
char *upper(char*);
       ^~~~~
fs.c:1068:8: warning: pointer targets in passing argument 1 of 'upper' differ in signedness [-Wpointer-sign]
  upper(ext);
        ^~~
In file included from fs.c:24:0:
cpcfs.h:399:7: note: expected 'char *' but argument is of type 'uchar * {aka unsigned char *}'
char *upper(char*);
       ^~~~~
fs.c:1071:11: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign]
    strcpy(root,"*");
           ^~~~
In file included from /usr/include/features.h:364:0,
                 from /usr/include/x86_64-linux-gnu/sys/stat.h:25,
                 from fs.c:12:
/usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected 'char * restrict' but argument is of type 'uchar * {aka unsigned char *}'
__NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
^
fs.c:1072:11: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign]
    strcpy(ext,"*");
           ^~~
In file included from /usr/include/features.h:364:0,
                 from /usr/include/x86_64-linux-gnu/sys/stat.h:25,
                 from fs.c:12:
/usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected 'char * restrict' but argument is of type 'uchar * {aka unsigned char *}'
__NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
^
fs.c:1079:17: warning: pointer targets in passing argument 1 of 'build_cpm_name' differ in signedness [-Wpointer-sign]
  build_cpm_name((signed char*)pattern[glob_env], user,
                 ^
In file included from fs.c:24:0:
cpcfs.h:427:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name   (char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~
fs.c:1080:3: warning: pointer targets in passing argument 3 of 'build_cpm_name' differ in signedness [-Wpointer-sign]
   (signed char*)root, (signed char*)ext);
   ^
In file included from fs.c:24:0:
cpcfs.h:427:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name   (char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~
fs.c:1080:23: warning: pointer targets in passing argument 4 of 'build_cpm_name' differ in signedness [-Wpointer-sign]
   (signed char*)root, (signed char*)ext);
                       ^
In file included from fs.c:24:0:
cpcfs.h:427:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name   (char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~
fs.c: In function 'update_directory':
fs.c:1122:21: warning: pointer targets in passing argument 1 of 'build_cpm_name_32' differ in signedness [-Wpointer-sign]
   build_cpm_name_32((signed char*)directory[i].name, -1,
                     ^
In file included from fs.c:24:0:
cpcfs.h:428:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name_32(char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~~~~
fs.c:1123:7: warning: pointer targets in passing argument 3 of 'build_cpm_name_32' differ in signedness [-Wpointer-sign]
       (signed char*)directory[i].root,
       ^
In file included from fs.c:24:0:
cpcfs.h:428:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name_32(char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~~~~
fs.c:1124:7: warning: pointer targets in passing argument 4 of 'build_cpm_name_32' differ in signedness [-Wpointer-sign]
       (signed char*)directory[i].ext);
       ^
In file included from fs.c:24:0:
cpcfs.h:428:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name_32(char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:630:0,
                 from cpcfs.h:80,
                 from fs.c:24:
fs.c:1154:16: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
        (strcmp((signed char*)directory[i].name,
                ^
fs.c:1154:16: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1155:9: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
         (signed char*)directory[j].name)==0)) {
         ^
fs.c:1155:9: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1154:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
        (strcmp((signed char*)directory[i].name,
                ^
fs.c:1154:16: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1155:9: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
         (signed char*)directory[j].name)==0)) {
         ^
fs.c:1155:9: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1154:16: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
        (strcmp((signed char*)directory[i].name,
                ^
fs.c:1154:16: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1154:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
        (strcmp((signed char*)directory[i].name,
                ^
fs.c:1154:16: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1155:9: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
         (signed char*)directory[j].name)==0)) {
         ^
fs.c:1155:9: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1155:9: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
         (signed char*)directory[j].name)==0)) {
         ^
fs.c:1155:9: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1154:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
        (strcmp((signed char*)directory[i].name,
                ^
fs.c:1154:16: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1155:9: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
         (signed char*)directory[j].name)==0)) {
         ^
fs.c:1155:9: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1154:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
        (strcmp((signed char*)directory[i].name,
                ^
fs.c:1154:16: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1155:9: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
         (signed char*)directory[j].name)==0)) {
         ^
fs.c:1155:9: note: expected 'const char *' but argument is of type 'signed char *'
fs.c: In function 'cmp_array':
fs.c:1936:17: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
   res = strncmp((signed char*)directory[*x].root,
                 ^
In file included from cpcfs.h:80:0,
                 from fs.c:24:
/usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'signed char *'
extern size_t strlen (const char *__s)
               ^~~~~~
In file included from /usr/include/string.h:630:0,
                 from cpcfs.h:80,
                 from fs.c:24:
fs.c:1937:10: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
          (signed char*)directory[*y].root,;
          ^
In file included from cpcfs.h:80:0,
                 from fs.c:24:
/usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'signed char *'
extern size_t strlen (const char *__s)
               ^~~~~~
In file included from /usr/include/string.h:630:0,
                 from cpcfs.h:80,
                 from fs.c:24:
fs.c:1936:17: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
   res = strncmp((signed char*)directory[*x].root,
                 ^
fs.c:1936:17: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1937:10: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
          (signed char*)directory[*y].root,;
          ^
fs.c:1937:10: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1936:17: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
   res = strncmp((signed char*)directory[*x].root,
                 ^
fs.c:1936:17: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1937:10: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
          (signed char*)directory[*y].root,;
          ^
fs.c:1937:10: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1936:17: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
   res = strncmp((signed char*)directory[*x].root,
                 ^
fs.c:1936:17: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1936:17: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
   res = strncmp((signed char*)directory[*x].root,
                 ^
fs.c:1936:17: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1937:10: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
          (signed char*)directory[*y].root,;
          ^
fs.c:1937:10: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1937:10: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
          (signed char*)directory[*y].root,;
          ^
fs.c:1937:10: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1936:17: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
   res = strncmp((signed char*)directory[*x].root,
                 ^
fs.c:1936:17: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1937:10: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
          (signed char*)directory[*y].root,;
          ^
fs.c:1937:10: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1936:17: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
   res = strncmp((signed char*)directory[*x].root,
                 ^
fs.c:1936:17: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1937:10: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
          (signed char*)directory[*y].root,;
          ^
fs.c:1937:10: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1936:17: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign]
   res = strncmp((signed char*)directory[*x].root,
                 ^
In file included from cpcfs.h:80:0,
                 from fs.c:24:
/usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'signed char *'
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
            ^~~~~~~
In file included from /usr/include/string.h:630:0,
                 from cpcfs.h:80,
                 from fs.c:24:
fs.c:1937:10: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign]
          (signed char*)directory[*y].root,;
          ^
In file included from cpcfs.h:80:0,
                 from fs.c:24:
/usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'signed char *'
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
            ^~~~~~~
In file included from /usr/include/string.h:630:0,
                 from cpcfs.h:80,
                 from fs.c:24:
fs.c:1939:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
    res = strncmp((signed char*)directory[*x].ext,
                  ^
In file included from cpcfs.h:80:0,
                 from fs.c:24:
/usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'signed char *'
extern size_t strlen (const char *__s)
               ^~~~~~
In file included from /usr/include/string.h:630:0,
                 from cpcfs.h:80,
                 from fs.c:24:
fs.c:1940:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
           (signed char*)directory[*y].ext, 3);
           ^
In file included from cpcfs.h:80:0,
                 from fs.c:24:
/usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'signed char *'
extern size_t strlen (const char *__s)
               ^~~~~~
In file included from /usr/include/string.h:630:0,
                 from cpcfs.h:80,
                 from fs.c:24:
fs.c:1939:18: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
    res = strncmp((signed char*)directory[*x].ext,
                  ^
fs.c:1939:18: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1940:11: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
           (signed char*)directory[*y].ext, 3);
           ^
fs.c:1940:11: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1939:18: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
    res = strncmp((signed char*)directory[*x].ext,
                  ^
fs.c:1939:18: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1940:11: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
           (signed char*)directory[*y].ext, 3);
           ^
fs.c:1940:11: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1939:18: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
    res = strncmp((signed char*)directory[*x].ext,
                  ^
fs.c:1939:18: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1939:18: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
    res = strncmp((signed char*)directory[*x].ext,
                  ^
fs.c:1939:18: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1940:11: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
           (signed char*)directory[*y].ext, 3);
           ^
fs.c:1940:11: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1940:11: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
           (signed char*)directory[*y].ext, 3);
           ^
fs.c:1940:11: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1939:18: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
    res = strncmp((signed char*)directory[*x].ext,
                  ^
fs.c:1939:18: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1940:11: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
           (signed char*)directory[*y].ext, 3);
           ^
fs.c:1940:11: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1939:18: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
    res = strncmp((signed char*)directory[*x].ext,
                  ^
fs.c:1939:18: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1940:11: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
           (signed char*)directory[*y].ext, 3);
           ^
fs.c:1940:11: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:1939:18: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign]
    res = strncmp((signed char*)directory[*x].ext,
                  ^
In file included from cpcfs.h:80:0,
                 from fs.c:24:
/usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'signed char *'
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
            ^~~~~~~
In file included from /usr/include/string.h:630:0,
                 from cpcfs.h:80,
                 from fs.c:24:
fs.c:1940:11: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign]
           (signed char*)directory[*y].ext, 3);
           ^
In file included from cpcfs.h:80:0,
                 from fs.c:24:
/usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'signed char *'
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
            ^~~~~~~
In file included from /usr/include/string.h:630:0,
                 from cpcfs.h:80,
                 from fs.c:24:
fs.c: In function 'dir':
fs.c:2116:17: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
     if (strncmp((signed char*)
                 ^
In file included from cpcfs.h:80:0,
                 from fs.c:24:
/usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'signed char *'
extern size_t strlen (const char *__s)
               ^~~~~~
In file included from /usr/include/string.h:630:0,
                 from cpcfs.h:80,
                 from fs.c:24:
fs.c:2116:17: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
     if (strncmp((signed char*)
                 ^
fs.c:2116:17: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:2116:17: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
     if (strncmp((signed char*)
                 ^
fs.c:2116:17: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:2116:17: warning: pointer targets in passing argument 1 of '__builtin_strlen' differ in signedness [-Wpointer-sign]
     if (strncmp((signed char*)
                 ^
fs.c:2116:17: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:2116:17: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
     if (strncmp((signed char*)
                 ^
fs.c:2116:17: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:2116:17: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
     if (strncmp((signed char*)
                 ^
fs.c:2116:17: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:2116:17: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign]
     if (strncmp((signed char*)
                 ^
fs.c:2116:17: note: expected 'const char *' but argument is of type 'signed char *'
fs.c:2116:17: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign]
     if (strncmp((signed char*)
                 ^
In file included from cpcfs.h:80:0,
                 from fs.c:24:
/usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'signed char *'
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
            ^~~~~~~
fs.c:2153:5: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign]
     (signed char*)directory[array[i]].name, INPUTLEN);
     ^
In file included from /usr/include/features.h:364:0,
                 from /usr/include/x86_64-linux-gnu/sys/stat.h:25,
                 from fs.c:12:
/usr/include/x86_64-linux-gnu/bits/string3.h:123:1: note: expected 'const char * restrict' but argument is of type 'signed char *'
__NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
^
fs.c:2170:23: warning: pointer targets in passing argument 1 of 'detectmode' differ in signedness [-Wpointer-sign]
     mode = detectmode(buf,dpb->BLS);
                       ^~~
In file included from fs.c:24:0:
cpcfs.h:490:6: note: expected 'char *' but argument is of type 'uchar * {aka unsigned char *}'
int  detectmode (char *buf, int size) ;
      ^~~~~~~~~~
fs.c: In function 'LoadLabelFile':
fs.c:2596:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
      *ppData = LabelData;
              ^
fs.c: In function 'format':
fs.c:2716:11: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign]
   strcpy ((signed char*)disk_header.tag,"EXTENDED    / ");
           ^
In file included from /usr/include/features.h:364:0,
                 from /usr/include/x86_64-linux-gnu/sys/stat.h:25,
                 from fs.c:12:
/usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected 'char * restrict' but argument is of type 'signed char *'
__NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
^
fs.c:2720:11: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign]
   strcpy ((signed char*)disk_header.tag,"MV - CPCEMU / ");
           ^
In file included from /usr/include/features.h:364:0,
                 from /usr/include/x86_64-linux-gnu/sys/stat.h:25,
                 from fs.c:12:
/usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected 'char * restrict' but argument is of type 'signed char *'
__NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
^
fs.c:2724:11: warning: pointer targets in passing argument 1 of 'strftime' differ in signedness [-Wpointer-sign]
  strftime(((signed char*)disk_header.tag)+14,20,"%d %b %y %H:%M",
           ^
In file included from cpcfs.h:22:0,
                 from fs.c:24:
/usr/include/time.h:205:15: note: expected 'char * restrict' but argument is of type 'signed char *'
extern size_t strftime (char *__restrict __s, size_t __maxsize,
               ^~~~~~~~
fs.c:2772:11: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign]
   strncpy((signed char*)trhd->tag,"Track-Info\r\n",0x10);
           ^
In file included from /usr/include/features.h:364:0,
                 from /usr/include/x86_64-linux-gnu/sys/stat.h:25,
                 from fs.c:12:
/usr/include/x86_64-linux-gnu/bits/string3.h:123:1: note: expected 'char * restrict' but argument is of type 'signed char *'
__NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
^
fs.c: In function 'ren_file':
fs.c:2887:17: warning: pointer targets in passing argument 1 of 'build_cpm_name' differ in signedness [-Wpointer-sign]
  build_cpm_name((signed char*)from_full, from_user,
                 ^
In file included from fs.c:24:0:
cpcfs.h:427:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name   (char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~
fs.c:2888:3: warning: pointer targets in passing argument 3 of 'build_cpm_name' differ in signedness [-Wpointer-sign]
   (signed char*)from_root, (signed char*)from_ext);
   ^
In file included from fs.c:24:0:
cpcfs.h:427:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name   (char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~
fs.c:2888:28: warning: pointer targets in passing argument 4 of 'build_cpm_name' differ in signedness [-Wpointer-sign]
   (signed char*)from_root, (signed char*)from_ext);
                            ^
In file included from fs.c:24:0:
cpcfs.h:427:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name   (char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~
fs.c:2896:17: warning: pointer targets in passing argument 1 of 'build_cpm_name' differ in signedness [-Wpointer-sign]
  build_cpm_name((signed char*)to_full, to_user,
                 ^
In file included from fs.c:24:0:
cpcfs.h:427:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name   (char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~
fs.c:2897:3: warning: pointer targets in passing argument 3 of 'build_cpm_name' differ in signedness [-Wpointer-sign]
   (signed char*)to_root, (signed char*)to_ext);
   ^
In file included from fs.c:24:0:
cpcfs.h:427:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name   (char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~
fs.c:2897:26: warning: pointer targets in passing argument 4 of 'build_cpm_name' differ in signedness [-Wpointer-sign]
   (signed char*)to_root, (signed char*)to_ext);
                          ^
In file included from fs.c:24:0:
cpcfs.h:427:6: note: expected 'char *' but argument is of type 'signed char *'
void build_cpm_name   (char *buf, int user, char *root, char *ext);
      ^~~~~~~~~~~~~~
fs.c:2922:11: warning: pointer targets in passing argument 1 of 'str2mem' differ in signedness [-Wpointer-sign]
   str2mem((signed char*)directory[ent].root,
           ^
In file included from fs.c:24:0:
cpcfs.h:429:6: note: expected 'char *' but argument is of type 'signed char *'
void str2mem(char *mem, char *str, int spc);
      ^~~~~~~
fs.c:2923:4: warning: pointer targets in passing argument 2 of 'str2mem' differ in signedness [-Wpointer-sign]
    (signed char*)to_root,;
    ^
In file included from fs.c:24:0:
cpcfs.h:429:6: note: expected 'char *' but argument is of type 'signed char *'
void str2mem(char *mem, char *str, int spc);
      ^~~~~~~
fs.c:2924:11: warning: pointer targets in passing argument 1 of 'str2mem' differ in signedness [-Wpointer-sign]
   str2mem((signed char*)directory[ent].ext,
           ^
In file included from fs.c:24:0:
cpcfs.h:429:6: note: expected 'char *' but argument is of type 'signed char *'
void str2mem(char *mem, char *str, int spc);
      ^~~~~~~
fs.c:2925:4: warning: pointer targets in passing argument 2 of 'str2mem' differ in signedness [-Wpointer-sign]
    (signed char*)to_ext, 3);
    ^
In file included from fs.c:24:0:
cpcfs.h:429:6: note: expected 'char *' but argument is of type 'signed char *'
void str2mem(char *mem, char *str, int spc);
      ^~~~~~~
fs.c: In function 'dumpdir':
fs.c:3031:13: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign]
   strncpy(n,(signed char*)directory[i].root,8);  n[8] = 0;
             ^
In file included from /usr/include/features.h:364:0,
                 from /usr/include/x86_64-linux-gnu/sys/stat.h:25,
                 from fs.c:12:
/usr/include/x86_64-linux-gnu/bits/string3.h:123:1: note: expected 'const char * restrict' but argument is of type 'signed char *'
__NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
^
fs.c:3032:13: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign]
   strncpy(e,(signed char*)directory[i].ext,3); e[3] = 0;
             ^
In file included from /usr/include/features.h:364:0,
                 from /usr/include/x86_64-linux-gnu/sys/stat.h:25,
                 from fs.c:12:
/usr/include/x86_64-linux-gnu/bits/string3.h:123:1: note: expected 'const char * restrict' but argument is of type 'signed char *'
__NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
^
fs.c: In function 'get':
fs.c:3360:29: warning: pointer targets in passing argument 1 of 'detectmode' differ in signedness [-Wpointer-sign]
      localmode = detectmode(buf,
                             ^~~
fs.c:3257:5: note: expected 'char *' but argument is of type 'uchar * {aka unsigned char *}'
int detectmode (char *buf, int size)  {
     ^~~~~~~~~~
fs.c: In function 'put':
fs.c:3511:11: warning: pointer targets in passing argument 1 of 'str2mem' differ in signedness [-Wpointer-sign]
   str2mem((signed char*)directory[entry].root,
           ^
In file included from fs.c:24:0:
cpcfs.h:429:6: note: expected 'char *' but argument is of type 'signed char *'
void str2mem(char *mem, char *str, int spc);
      ^~~~~~~
fs.c:3512:4: warning: pointer targets in passing argument 2 of 'str2mem' differ in signedness [-Wpointer-sign]
    (signed char*)rootname,;
    ^
In file included from fs.c:24:0:
cpcfs.h:429:6: note: expected 'char *' but argument is of type 'signed char *'
void str2mem(char *mem, char *str, int spc);
      ^~~~~~~
fs.c:3513:11: warning: pointer targets in passing argument 1 of 'str2mem' differ in signedness [-Wpointer-sign]
   str2mem((signed char*)directory[entry].ext,
           ^
In file included from fs.c:24:0:
cpcfs.h:429:6: note: expected 'char *' but argument is of type 'signed char *'
void str2mem(char *mem, char *str, int spc);
      ^~~~~~~
fs.c:3514:4: warning: pointer targets in passing argument 2 of 'str2mem' differ in signedness [-Wpointer-sign]
    (signed char*)extension, 3);
    ^
In file included from fs.c:24:0:
cpcfs.h:429:6: note: expected 'char *' but argument is of type 'signed char *'
void str2mem(char *mem, char *str, int spc);
      ^~~~~~~
fs.c:3552:24: warning: pointer targets in passing argument 2 of 'write_block' differ in signedness [-Wpointer-sign]
    if (write_block(blk,(signed char*)buf)==NULL) {
                        ^
fs.c:936:8: note: expected 'uchar * {aka unsigned char *}' but argument is of type 'signed char *'
uchar *write_block (int blk, uchar *buf) {
        ^~~~~~~~~~~
gcc -Wall -O3 -DLINUX=1 -DDOS=0   -c -o ui.o ui.c
ui.c: In function 'cmd_mget':
ui.c:916:15: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign]
    strcpy(trg,(signed char*)directory[ent].name);
               ^
In file included from /usr/include/features.h:364:0,
                 from /usr/include/limits.h:25,
                 from /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed/limits.h:168,
                 from /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed/limits.h:34,
                 from cpcfs.h:16,
                 from ui.c:14:
/usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected 'const char * restrict' but argument is of type 'signed char *'
__NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
^
ui.c: In function 'cmd_label':
ui.c:1114:29: warning: pointer targets in passing argument 2 of 'write_label' differ in signedness [-Wpointer-sign]
   result = write_label(dpb, LabelData,LabelDataLength);
                             ^~~~~~~~~
In file included from ui.c:14:0:
cpcfs.h:467:5: note: expected 'char *' but argument is of type 'unsigned char *'
int write_label(DPB_type *dpb,char *label_data, unsigned long label_data_length);
     ^~~~~~~~~~~
ui.c: In function 'cmd_new':
ui.c:1251:28: warning: pointer targets in passing argument 2 of 'write_label' differ in signedness [-Wpointer-sign]
   result = write_label(dpb,dpb->label_data, dpb->label_data_length);
                            ^~~
In file included from ui.c:14:0:
cpcfs.h:467:5: note: expected 'char *' but argument is of type 'unsigned char *'
int write_label(DPB_type *dpb,char *label_data, unsigned long label_data_length);
     ^~~~~~~~~~~
ui.c: In function 'cmd_open':
ui.c:1360:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (REMAINING_ARGS!=1)
  ^~
ui.c:1363:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   strncpy(buf,arg[optind], INPUTLEN);
   ^~~~~~~
ui.c: In function 'cmd_type':
ui.c:1771:27: warning: pointer targets in passing argument 1 of 'detectmode' differ in signedness [-Wpointer-sign]
   local_mode = detectmode((signed char*)buf,max((dpb->BLS),r));
                           ^
In file included from ui.c:14:0:
cpcfs.h:490:6: note: expected 'char *' but argument is of type 'signed char *'
int  detectmode (char *buf, int size) ;
      ^~~~~~~~~~
ui.c: In function 'init':
ui.c:2060:3: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result]
   getcwd(installpath, INPUTLEN);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -Wall -O3 -DLINUX=1 -DDOS=0   -c -o cpcfs.o cpcfs.c
gcc -Wall -O3 -DLINUX=1 -DDOS=0   -c -o readdef.o readdef.c
gcc -Wall -O3 -DLINUX=1 -DDOS=0   -c -o unix.o unix.c
unix.c: In function 'wait_for_key':
unix.c:135:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result]
   read (tty,&answer,1);
   ^~~~~~~~~~~~~~~~~~~~
gcc -Wall -O3 -DLINUX=1 -DDOS=0 match.o tools.o fs.o ui.o cpcfs.o readdef.o unix.o -o cpcxfs  -ltermcap
unix.o: I funktionen "tmp_nam":
unix.c:(.text+0xf1): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
[code]


[quote author=krusty_benediction link=topic=13785.msg148533#msg148533 date=1503488950]
You must have this message because the archive already contains a compiled version of cpcxfs.
make -f makefile.lnx clean
remove it
[/quote]

arnoldemu

those are warnings and you didn't break anything.

I'll clean up the warnings when I have time.

it'll work fine.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource


Powered by SMFPacks Menu Editor Mod