You are not logged in.

#1 2018-03-27 11:49:30

Cshayv
Member
Registered: 2018-03-27
Posts: 6

error: 'ENOSPC' undeclared during install fastDFS

when i try to install fastDFS and make, the error occurred
$ sudo ./make.sh
cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o hash.lo hash.c
hash.c: In function ‘_hash_alloc_buckets’:
hash.c:57:10: error: ‘ENOSPC’ undeclared (first use in this function); did you mean ‘ENOTSUP’?
return ENOSPC;
^~~~~~
ENOTSUP
hash.c:57:10: note: each undeclared identifier is reported only once for each function it appears in
hash.c:63:10: error: ‘ENOMEM’ undeclared (first use in this function); did you mean ‘ENOSPC’?
return ENOMEM;
^~~~~~
ENOSPC
hash.c: In function ‘hash_init_ex’:
hash.c:93:10: error: ‘EINVAL’ undeclared (first use in this function)
return EINVAL;
^~~~~~
hash.c: In function ‘hash_stat’:
hash.c:209:11: error: ‘ENOSPC’ undeclared (first use in this function); did you mean ‘ENOTSUP’?
return ENOSPC;
^~~~~~
ENOTSUP
hash.c: In function ‘hash_best_op’:
hash.c:422:11: error: ‘ENOMEM’ undeclared (first use in this function)
return -ENOMEM;
^~~~~~
hash.c: In function ‘hash_insert_ex’:
hash.c:580:11: error: ‘ENOSPC’ undeclared (first use in this function); did you mean ‘ENOTSUP’?
return -ENOSPC;
^~~~~~
ENOTSUP
hash.c:586:11: error: ‘ENOMEM’ undeclared (first use in this function); did you mean ‘ENOSPC’?
return -ENOMEM;
^~~~~~
ENOSPC
hash.c: In function ‘hash_delete’:
hash.c:647:9: error: ‘ENOENT’ undeclared (first use in this function)
return ENOENT;
^~~~~~
hash.c:648:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *** [Makefile:30: hash.lo] Error 1

Offline

#2 2018-03-27 12:04:01

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: error: 'ENOSPC' undeclared during install fastDFS

Installing software outside of pacman is almost always a bad idea.

Where does the sourcecode come from and what instructions are you trying to follow to build it ?

Last edited by Lone_Wolf (2018-03-27 12:04:22)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2018-03-28 14:52:23

Cshayv
Member
Registered: 2018-03-27
Posts: 6

Re: error: 'ENOSPC' undeclared during install fastDFS

I want to install fastDFS for learning, I download it from below link:
https://github.com/happyfish100/fastdfs
This software does not seem to be installed from the pacman.
I couldn't find it in Arch WiKi.
Is there have any software to replace it?

Offline

#4 2018-03-29 13:08:45

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: error: 'ENOSPC' undeclared during install fastDFS

It might be possible to get fastDFS wokrin gon arch, but it won't be easy.
A quick peek in fastdfs code suggests it's targeted towards rpm-based distributions that use sysv-init and etc/init.d/ .

There are distributed filesystems that work on archlinux, but it would be easier to advise you when you tell us what you want to achieve.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2018-03-31 00:28:11

Cshayv
Member
Registered: 2018-03-27
Posts: 6

Re: error: 'ENOSPC' undeclared during install fastDFS

I want a distributed file systems to upload web static files.
I am learning web development on Python and i use nginx to download the files.
Are there any DFS could be called in Python?

Offline

#6 2018-03-31 12:14:41

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: error: 'ENOSPC' undeclared during install fastDFS

GlusterFS and Apache Hadoop come to mind.
To get into the basics of DFS https://superuser.blog/distributed-file-system-python/ looks useful.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2018-04-02 12:26:55

Cshayv
Member
Registered: 2018-03-27
Posts: 6

Re: error: 'ENOSPC' undeclared during install fastDFS

Lone_Wolf wrote:

GlusterFS and Apache Hadoop come to mind.
To get into the basics of DFS https://superuser.blog/distributed-file-system-python/ looks useful.

Thanks a lot, I will try it:)

Offline

#8 2018-04-02 12:48:33

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: error: 'ENOSPC' undeclared during install fastDFS

I fail to find the hash.c sources it seems to compile in the git tree (but only checked the webinterface), but it needs to include errno.h

#include <errno.h>
#include <stdio.h>

int main(int argc, char **argv) {
    printf("%d\n", ENOSPC);
}

This shoud compile using eg. "gcc -o test test.c"

Offline

Board footer

Powered by FluxBB