06/07/2022, 20:36
Bonjour @ tous
Je suis entrain d'installer le service Denora et je rencontre un problème lors de l'installation avec le SQL.
Sans SQL, le service s'installe correctement et fonctionne très bien sur mon réseau.
Mais lorsque j'essaye de l'installer avec le SQL, l'installation ne détecte pas tout ce qui concerne SQL.
J'ai bien le serveur Mysql installé et actif ainsi que les divers librairies demandé pour installer Denora.
Je suis tombé sur un forum d'aide Anope ou une erreur avait déjà été détectée sur l'installation du service Denora : forum.anope.org/index.php?topic=4105.0
J'ai fait les modifs du fichier "configure" comme indiqué dans le forum et après ca, j'ai une erreur d'installation lors du make.
Est-ce que quelqu'un aurait une idée du problème ou à déjà eu ce problème ?
Lors du ./configure :
Lors du configure modifié :
le make :
Je suis entrain d'installer le service Denora et je rencontre un problème lors de l'installation avec le SQL.
Sans SQL, le service s'installe correctement et fonctionne très bien sur mon réseau.
Mais lorsque j'essaye de l'installer avec le SQL, l'installation ne détecte pas tout ce qui concerne SQL.
J'ai bien le serveur Mysql installé et actif ainsi que les divers librairies demandé pour installer Denora.
Je suis tombé sur un forum d'aide Anope ou une erreur avait déjà été détectée sur l'installation du service Denora : forum.anope.org/index.php?topic=4105.0
J'ai fait les modifs du fichier "configure" comme indiqué dans le forum et après ca, j'ai une erreur d'installation lors du make.
Est-ce que quelqu'un aurait une idée du problème ou à déjà eu ce problème ?
Lors du ./configure :
Code:
chat@localhost:~/ircd-services/denora$ ./configure --with-bindir=/home/chat/ircd-services/statserv --with-datadir=/home/chat/ircd-services/statserv --with-permissions=077 --with-mysql-config=/usr/bin
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking if gcc has a working -pipe... yes
checking Compiler flag(s) -ggdb... ok
checking Compiler Optimizing flag(s) -O3... ok
Setting optimization level to -O3
checking whether gcc recognizes __PRETTY_FUNCTION__... yes
checking for rm... /usr/bin/rm
checking for cp... /usr/bin/cp
checking for touch... /usr/bin/touch
checking for perl... /usr/bin/perl
checking for install... /usr/bin/install
checking for inet_ntoa in -lnsl... yes
checking for socket in -lsocket... no
checking for res_query in -lresolv... no
checking for revoke in -lbsd... no
checking for inflateEnd in -lz... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for sys/types.h... (cached) yes
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking for int16_t... yes
checking for u_int16_t... yes
checking for int32_t... yes
checking for u_int32_t... yes
checking for long long int... yes
checking for int64_t... yes
checking for uint64_t... yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for unistd.h... (cached) yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking mcheck.h usability... yes
checking mcheck.h presence... yes
checking for mcheck.h... yes
checking for inline... inline
checking if ssl is wanted... no
checking for socklen_t... yes
checking for freeaddrinfo... yes
checking for gai_strerror... yes
checking for getaddrinfo... yes
checking for getnameinfo... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for struct sockaddr_storage... yes
checking for struct sockaddr_in6... yes
checking for struct in6_addr... yes
checking for struct addrinfo... yes
checking for getaddrinfo() rfc2553bis compatibility... no
checking for ss_family field in struct sockaddr_storage... yes
checking for __ss_family field in struct sockaddr_storage... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking if we need the -export-dynamic flag... yes
checking Check if CLANG/CC compiler remove export-dynamic...
checking for compiler option to produce PIC... -fPIC -DPIC -shared
checking for RTLD_LOCAL... yes
checking if your system prepends an underscore on symbols... no
checking for strerror... yes
checking for sys_errlist... yes
checking for stricmp... no
checking for strnicmp... no
checking for strcasecmp... yes
checking for strspn... yes
checking for strlcat... no
checking for strlcpy... no
checking for strsignal... yes
checking for gettimeofday... yes
checking for setgrent... yes
checking for umask... yes
checking for fork... yes
checking for gethostbyname... yes
checking for gethostbyname_r... yes
checking for ntohl... yes
checking for inet_aton... yes
checking for setrlimit... yes
checking for getrlimit... yes
checking for memcpy... yes
checking for setpgid... yes
checking whether va_list assignments need array notation... yes
checking what type of signals you have... POSIX
Checking best optimization compiler flags
Host CPU : x86_64
checking Compiler Optimizing flag(s) -mtune=k8... no
checking Compiler Optimizing flag(s) -mtune=athlon64... (cached) no
checking Compiler Optimizing flag(s) -mtune=athlon-fx... (cached) no
checking Compiler Optimizing flag(s) -m64... no
checking Compiler Optimizing flag(s) -march=k8... no
checking Compiler Optimizing flag(s) -march=athlon64... (cached) no
checking Compiler Optimizing flag(s) -march=athlon-fx... (cached) no
Checking compiler flags for make strict
checking Compiler flag(s) -Wextra... no
checking Compiler flag(s) -Wall... no
checking Compiler flag(s) -pedantic... no
checking Compiler flag(s) -Wshadow... no
checking Compiler flag(s) -Wmissing-declarations... no
checking Compiler flag(s) -Wpointer-arith... no
checking Compiler flag(s) -Wcast-align... no
checking Compiler flag(s) -Wfloat-equal... no
checking Compiler flag(s) -Wstrict-prototypes... no
checking Compiler flag(s) -Wmissing-prototypes... no
checking Compiler flag(s) -Wredundant-decls... no
checking Compiler flag(s) -Wunused-variable... no
checking Compiler flag(s) -Wunused-parameter... no
checking Compiler flag(s) -Wuninitialized... no
checking Compiler flag(s) -Wparentheses... no
checking Compiler flag(s) -Wno-long-long... no
checking Compiler flag(s) -Wunused-macros... no
checking Compiler flag(s) -Wwrite-strings... no
checking Compiler flag(s) -Wimplicit... no
checking Compiler flag(s) -Wnested-externs... no
checking Compiler flag(s) -Wno-unused... no
checking Compiler flag(s) -Wundef... no
checking Compiler flag(s) -Wpacked... no
checking Compiler flag(s) -Wbad-function-cast... no
checking Compiler flag(s) -Wunused-function... no
checking Compiler flag(s) -Wunused-label... no
checking Compiler flag(s) -Wunused-value... no
checking Compiler flag(s) -Wfloat-equal... (cached) no
checking Compiler flag(s) -Wchar-subscripts... no
checking Compiler flag(s) -Wswitch... no
checking Compiler flag(s) -Wmissing-braces... no
checking Compiler flag(s) -Wsequence-point... no
checking Compiler flag(s) -Wunknown-pragmas... no
checking Compiler flag(s) -Wdeclaration-after-statement... no
checking Compiler flag(s) -Wsign-compare... no
checking Compiler flag(s) -fstack-protector... no
checking Compiler flag(s) -Winvalid-source-encoding... no
checking Compiler flag(s) -Wp,-D_FORTIFY_SOURCE=2... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/bin/denorarc
config.status: creating src/bin/geoipupd
config.status: creating include/sysconf.h
config.status: include/sysconf.h is unchanged
Modules Support: Yes
MySQL: No
Mysql backtrace debug: No
Crypted Passwords: No
Threading: No
All done! Above you can see if Modules Support and MySQL Support will be compiled or not.
If you intended to compile MySQL support and you see "NO", then your system is probably
missing the mysql client development libraries. Please consult your distribution package
manager and install the required package, then try running ./Config again.
Now run "make" (or possibly "gmake") to compile Denora.
See the INSTALL, README and FAQ files if you have any problems.
Code:
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/bin/denorarc
config.status: creating src/bin/geoipupd
config.status: creating include/sysconf.h
Modules Support: Yes
MySQL: Yes
Mysql backtrace debug: No
Crypted Passwords: No
Threading: No
Code:
chat@localhost:~/ircd-services/denora$ make
(cd lang ; make 'CFLAGS=-pipe -g -fPIC -ggdb -I/usr/include/mysql -export-dynamic' 'CC=gcc' 'DENORALIBS=-lnsl -lz -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -ldl -lz -lssl -lcrypto -lresolv -lm -lrt -ldl' 'LDFLAGS=' 'BINDEST=/home/chat/ircd-services/statserv' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include ' 'RM=/usr/bin/rm' 'CP=/usr/bin/cp' 'TOUCH=/usr/bin/touch' 'SHELL=/bin/sh' 'DATDEST=/home/chat/ircd-services/statserv' 'RUNGROUP=' 'MODULE_PATH=/home/chat/ircd-services/statserv/modules/' 'SHARED=-shared' 'MODULEFLAGS=-fPIC -DPIC -shared' 'RDYNAMNIC=-rdynamic' 'CFLAGS=-O2 -pipe -g -fPIC -ggdb -I/usr/include/mysql -export-dynamic' all language.h ; cp language.h ../include/)
make[1]: Entering directory '/home/chat/ircd-services/denora/lang'
make[1]: Nothing to be done for 'all'.
make[1]: 'language.h' is up to date.
make[1]: Leaving directory '/home/chat/ircd-services/denora/lang'
(cd include ; make 'CFLAGS=-pipe -g -fPIC -ggdb -I/usr/include/mysql -export-dynamic' 'CC=gcc' 'DENORALIBS=-lnsl -lz -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -ldl -lz -lssl -lcrypto -lresolv -lm -lrt -ldl' 'LDFLAGS=' 'BINDEST=/home/chat/ircd-services/statserv' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include ' 'RM=/usr/bin/rm' 'CP=/usr/bin/cp' 'TOUCH=/usr/bin/touch' 'SHELL=/bin/sh' 'DATDEST=/home/chat/ircd-services/statserv' 'RUNGROUP=' 'MODULE_PATH=/home/chat/ircd-services/statserv/modules/' 'SHARED=-shared' 'MODULEFLAGS=-fPIC -DPIC -shared' 'RDYNAMNIC=-rdynamic' )
make[1]: Entering directory '/home/chat/ircd-services/denora/include'
touch denora.h
sh version.sh
make[1]: Leaving directory '/home/chat/ircd-services/denora/include'
*** Building src
make[1]: Entering directory '/home/chat/ircd-services/denora/src'
gcc -O2 -pipe -g -fPIC -ggdb -I/usr/include/mysql -export-dynamic -I../include/ -c admin.c
In file included from /usr/include/mysql/mysql.h:43,
from ../include/denora.h:136,
from admin.c:15:
../include/denora.h:258:17: error: expected identifier before numeric constant
258 | typedef enum { false, true } boolean;
| ^~~~~
In file included from ../include/denora.h:1402,
from admin.c:15:
../include/extern.h:1193:23: warning: inline function ‘FileOpen’ declared but never defined
1193 | E DENORA_INLINE FILE *FileOpen(char *file, const char *mode);
| ^~~~~~~~
../include/extern.h:1192:21: warning: inline function ‘FileRename’ declared but never defined
1192 | E DENORA_INLINE int FileRename(char * fileName, char *newfilename);
| ^~~~~~~~~~
../include/extern.h:1191:21: warning: inline function ‘FileExists’ declared but never defined
1191 | E DENORA_INLINE int FileExists(char * fileName);
| ^~~~~~~~~~
In file included from ../include/denora.h:1402,
from admin.c:15:
../include/extern.h:458:25: warning: inline function ‘nickIsServices’ declared but never defined
458 | E DENORA_INLINE boolean nickIsServices(char *nick);
| ^~~~~~~~~~~~~~
../include/extern.h:129:25: warning: inline function ‘is_excludedserv’ declared but never defined
129 | E DENORA_INLINE boolean is_excludedserv(Server * server);
| ^~~~~~~~~~~~~~~
../include/extern.h:128:21: warning: inline function ‘isExcludedServer’ declared but never defined
128 | E DENORA_INLINE int isExcludedServer(char *name);
| ^~~~~~~~~~~~~~~~
../include/extern.h:127:25: warning: inline function ‘is_excluded’ declared but never defined
127 | E DENORA_INLINE boolean is_excluded(User *u);
| ^~~~~~~~~~~
make[1]: *** [Makefile:38: admin.o] Error 1
make[1]: Leaving directory '/home/chat/ircd-services/denora/src'
make: *** [Makefile:56: build] Error 2