Errors during / after install on CentOS 7

ericovk

Verified User
Joined
Apr 17, 2012
Messages
229
Location
Rotterdam, Netherlands
Hi,

I have done the install before on CentOS 6. But now I am getting a couple of errors and DA won't start.

Code:
# service directadmin status
Redirecting to /bin/systemctl status  directadmin.service
● directadmin.service - DirectAdmin Web Control Panel
   Loaded: loaded (/etc/systemd/system/directadmin.service; enabled; vendor preset: disabled)
   Active: failed (Result: resources) since Thu 2016-07-21 19:10:17 CEST; 26s ago
     Docs: http://www.directadmin.com
  Process: 1855 ExecStart=/usr/local/directadmin/directadmin d (code=exited, status=0/SUCCESS)


Jul 21 19:10:17 s2.thiscould.be systemd[1]: Starting DirectAdmin Web Control Panel...
Jul 21 19:10:17 s2.thiscould.be directadmin[1855]: failed to open pipe log ((null)): Bad address
Jul 21 19:10:17 s2.thiscould.be systemd[1]: PID file /run/directadmin.pid not readable (yet?) after start.
Jul 21 19:10:17 s2.thiscould.be systemd[1]: Failed to start DirectAdmin Web Control Panel.
Jul 21 19:10:17 s2.thiscould.be systemd[1]: Unit directadmin.service entered failed state.
Jul 21 19:10:17 s2.thiscould.be systemd[1]: directadmin.service failed.

The errors during install are:
Code:
dynamic.c: In function 'iptrack_find_ip_or_shift':
dynamic.c:47:17: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier 
from pointer target type [enabled by default]
                 STORAGE_SIN_ADDR(iptrack_list[c].ip) == STORAGE_SIN_ADDR(*ip)) {
                 ^
In file included from ftpd.h:118:0,
                 from dynamic.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'co
nst struct sockaddr_storage * const'
 struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
                 ^
dynamic.c: In function 'iptrack_get':
dynamic.c:78:17: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier 
from pointer target type [enabled by default]
                 STORAGE_SIN_ADDR(iptrack_list[c].ip) == STORAGE_SIN_ADDR(*ip)) {
                 ^
In file included from ftpd.h:118:0,
                 from dynamic.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'co
nst struct sockaddr_storage * const'
 struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
                 ^




======


tpd.c: In function 'checkvalidaddr':
ftpd.c:537:9: warning: passing argument 1 of 'storage_sin_addr6' discards 'const' qualifier fr
om pointer target type [enabled by default]
         if (IN6_IS_ADDR_MULTICAST(&STORAGE_SIN_ADDR6_NF(*addr)) ||
         ^
In file included from ftpd.h:118:0,
                 from ftpd_p.h:4,
                 from ftpd.c:5:
ipstack.h:117:18: note: expected 'struct sockaddr_storage * const' but argument is of type 'co
nst struct sockaddr_storage * const'
 struct in6_addr *storage_sin_addr6(struct sockaddr_storage * const ss);
                  ^
ftpd.c:543:9: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier fro
m pointer target type [enabled by default]
         if (ntohl(STORAGE_SIN_ADDR(*addr)) == INADDR_ANY ||
         ^
In file included from ftpd.h:118:0,
                 from ftpd_p.h:4,
                 from ftpd.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'co
nst struct sockaddr_storage * const'
 struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
                 ^
ftpd.c:544:13: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier fr
om pointer target type [enabled by default]
             ntohl(STORAGE_SIN_ADDR(*addr)) == INADDR_NONE ||
             ^
In file included from ftpd.h:118:0,
                 from ftpd_p.h:4,
                 from ftpd.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'const struct sockaddr_storage * const'
 struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
                 ^
ftpd.c:545:13: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier from pointer target type [enabled by default]
             ntohl(STORAGE_SIN_ADDR(*addr)) == INADDR_BROADCAST ||
             ^
In file included from ftpd.h:118:0,
                 from ftpd_p.h:4,
                 from ftpd.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'const struct sockaddr_storage * const'
 struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
                 ^
ftpd.c:546:13: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier from pointer target type [enabled by default]
             IN_MULTICAST(ntohl(STORAGE_SIN_ADDR(*addr))) ||
             ^
In file included from ftpd.h:118:0,
                 from ftpd_p.h:4,
                 from ftpd.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'const struct sockaddr_storage * const'
 struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
                 ^
ftpd.c:547:13: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier from pointer target type [enabled by default]
             IN_BADCLASS(ntohl(STORAGE_SIN_ADDR(*addr)))) {
             ^
In file included from ftpd.h:118:0,
                 from ftpd_p.h:4,
                 from ftpd.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'const struct sockaddr_storage * const'
 struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
                 ^
ftpd.c: In function 'addrcmp':
ftpd.c:593:9: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier from pointer target type [enabled by default]
         if (STORAGE_SIN_ADDR(*s1) == STORAGE_SIN_ADDR(*s2)) {
         ^
In file included from ftpd.h:118:0,
                 from ftpd_p.h:4,
                 from ftpd.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'const struct sockaddr_storage * const'
 struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
                 ^
ftpd.c:593:9: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier from pointer target type [enabled by default]
         if (STORAGE_SIN_ADDR(*s1) == STORAGE_SIN_ADDR(*s2)) {
         ^
In file included from ftpd.h:118:0,
                 from ftpd_p.h:4,
                 from ftpd.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'const struct sockaddr_storage * const'
 struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
                 ^
ftpd.c: In function 'updatepidfile':
ftpd.c:5236:9: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result]
         (void) ftruncate(fd, (off_t) 0);
         ^
ftpd.c: In function 'accept_client':
ftpd.c:5330:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
         (void) write(clientfd, line, strlen(line));
         ^
ftpd.c:5346:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
                 (void) write(clientfd, line, strlen(line));
                 ^






======


log_puredb.c: In function 'access_ip_match':
log_puredb.c:108:13: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualif
ier from pointer target type [enabled by default]
             saip_raw = (const unsigned char *) &(STORAGE_SIN_ADDR(*sa));
             ^
In file included from ftpd.h:118:0,
                 from log_puredb.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'co
nst struct sockaddr_storage * const'
 struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
                 ^


=====


privsep.c: In function 'privsep_privpart_bindresport':
privsep.c:208:13: warning: passing argument 1 of 'storage_port6' discards 'const' qualifier fr
om pointer target type [enabled by default]
             STORAGE_PORT6(query->bindresport.ss) = htons(*portlistpnt);
             ^
In file included from ftpd.h:118:0,
                 from privsep.c:4:
ipstack.h:115:12: note: expected 'struct sockaddr_storage * const' but argument is of type 'co
nst struct sockaddr_storage *'
 in_port_t *storage_port6(struct sockaddr_storage * const ss);
            ^
privsep.c:210:13: warning: passing argument 1 of 'storage_port' discards 'const' qualifier fro
m pointer target type [enabled by default]
             STORAGE_PORT(query->bindresport.ss) = htons(*portlistpnt);
             ^
In file included from ftpd.h:118:0,
                 from privsep.c:4:
ipstack.h:114:12: note: expected 'struct sockaddr_storage * const' but argument is of type 'const struct sockaddr_storage *'
 in_port_t *storage_port(struct sockaddr_storage * const ss);
            ^


====




quotas.c: In function 'quota_update':
quotas.c:120:13: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result]
             (void) ftruncate(fd, (off_t) 0);
             ^

Running on CentOS7 (on a Virtualbox VM):
Code:
# cat /etc/*release*
CentOS Linux release 7.2.1511 (Core) 
Derived from Red Hat Enterprise Linux 7.2 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"


CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"


CentOS Linux release 7.2.1511 (Core) 
CentOS Linux release 7.2.1511 (Core) 
cpe:/o:centos:centos:7

My license has been set on "OS CentOS 7 64-bit", so that's looking good.

I tried to install the apache/nginx combo.

After a full reinstall, I get the same errors
Code:
./build all d

It seems like the installation hasn't been completed. Files are missing.

Code:
# /usr/local/directadmin/custombuild/./build rewrite_confs
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
grep: /usr/local/directadmin/conf/directadmin.conf: No such file or directory
/usr/local/directadmin/custombuild/./build: line 11985: [: : integer expression expected
grep: /usr/local/directadmin/conf/directadmin.conf: No such file or directory
/usr/local/directadmin/custombuild/./build: line 11988: [: : integer expression expected
grep: /usr/local/directadmin/data/admin/ips: No such file or directory
Using x.x.x.x for your server IP
ls: cannot access /usr/local/directadmin/data/users/*/nginx.conf: No such file or directory
ls: cannot access /usr/local/directadmin/data/users/*/httpd.conf: No such file or directory
Job for php-fpm70.service failed because the control process exited with error code. See "systemctl status php-fpm70.service" and "journalctl -xe" for details.
Job for php-fpm56.service failed because the control process exited with error code. See "systemctl status php-fpm56.service" and "journalctl -xe" for details.
Found /usr/local/directadmin/custombuild/mod_aclr2-1.0.0.tar.gz
Extracting /usr/local/directadmin/custombuild/mod_aclr2-1.0.0.tar.gz...
Installing mod_aclr2-1.0.0...
/var/www/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -I/usr/local/include  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache  -I/usr/include/apache   -I/usr/include/apache   -c -o mod_aclr2.lo mod_aclr2.c && touch mod_aclr2.slo
/var/www/build/libtool --silent --mode=link gcc -std=gnu99 -L/usr/local/lib   -o mod_aclr2.la  -rpath /usr/lib/apache -module -avoid-version    mod_aclr2.lo
/var/www/build/instdso.sh SH_LIBTOOL='/var/www/build/libtool' mod_aclr2.la /usr/lib/apache
/var/www/build/libtool --mode=install install mod_aclr2.la /usr/lib/apache/
libtool: install: install .libs/mod_aclr2.so /usr/lib/apache/mod_aclr2.so
libtool: install: install .libs/mod_aclr2.lai /usr/lib/apache/mod_aclr2.la
libtool: install: install .libs/mod_aclr2.a /usr/lib/apache/mod_aclr2.a
libtool: install: chmod 644 /usr/lib/apache/mod_aclr2.a
libtool: install: ranlib /usr/lib/apache/mod_aclr2.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/lib/apache
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib/apache


If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'


See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/lib/apache/mod_aclr2.so
[activating module `aclr' in /etc/httpd/conf/httpd.conf]
mod_aclr2 has been installed successfully.
Restarting apache.
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
ls: cannot access /usr/local/directadmin/data/users/*/nginx.conf: No such file or directory
ls: cannot access /usr/local/directadmin/data/users/*/httpd.conf: No such file or directory
grep: /usr/local/directadmin/data/admin/ips: No such file or directory
Using x.x..x.x for your server IP
Using x.x.x.x for your server IP
Job for php-fpm70.service failed because the control process exited with error code. See "systemctl status php-fpm70.service" and "journalctl -xe" for details.
Job for php-fpm56.service failed because the control process exited with error code. See "systemctl status php-fpm56.service" and "journalctl -xe" for details.
Restarting nginx.

Journal gives:
Code:
Unregistered Authentication Agent for unix-process:3612:31835 (system bus name :1.59, object path /org/freedesktop/PolicyKit1/Authen
 
DA has not been installed correctly.
I would suggest two things:
1 - Check your license Match OS and IP
2 - After "1", reinstall DA

Regards
 
Sorry, I was too enthousiastic.

After changing some stuff in options.conf (to install HTTP2 and set OPcache), I get tons of errors when building all with
Code:
.build all d

Code:
In file included from xpath.c:462:0:
timsort.h: In function 'libxml_domnode_tim_sort_collapse':
timsort.h:405:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if ((stack_curr == 2) && (stack[0].length + stack[1].length == size)) {
                                                                 ^
timsort.h:397:19: warning: variable 'BD' set but not used [-Wunused-but-set-variable]
     int ABC, BCD, BD, CD;
                   ^
xpath.c: In function 'xmlXPathRegisterFuncNS__internal_alias':
xpath.c:4875:5: warning: ISO C forbids passing argument 4 of 'xmlHashAddEntry2__internal_alias' between function pointer and 'void *' [-Wpedantic]
     return(xmlHashAddEntry2(ctxt->funcHash, name, ns_uri, XML_CAST_FPTR(f)));
     ^
In file included from libxml.h:106:0,
                 from xpath.c:18:
elfgcchack.h:4269:36: note: expected 'void *' but argument is of type 'xmlXPathFunction'
 extern __typeof (xmlHashAddEntry2) xmlHashAddEntry2__internal_alias __attribute((visibility("hidden")));
                                    ^
xpath.c: In function 'xmlXPathFunctionLookupNS__internal_alias':
xpath.c:4956:24: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic]
     XML_CAST_FPTR(ret) = xmlHashLookup2(ctxt->funcHash, name, ns_uri);
                        ^
xpath.c: In function 'xmlXPathCompOpEval':
xpath.c:13563:41: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic]
                     XML_CAST_FPTR(func) = op->cache;
                                         ^
xpath.c:13590:31: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic]
                     op->cache = XML_CAST_FPTR(func);
                               ^
In file included from xpath.c:476:0:
xpath.c: At top level:
trionan.c:218:1: warning: 'trio_is_negative' defined but not used [-Wunused-function]
 trio_is_negative
 ^
  CC       xpointer.lo
  CC       xinclude.lo
  CC       nanohttp.lo
  CC       nanoftp.lo
  CC       catalog.lo
  CC       globals.lo
  CC       threads.lo
threads.c:53:12: warning: redundant redeclaration of 'pthread_once' [-Wredundant-decls]
 extern int pthread_once (pthread_once_t *__once_control,
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:485:12: note: previous declaration of 'pthread_once' was here
 extern int pthread_once (pthread_once_t *__once_control,
            ^
threads.c:56:14: warning: redundant redeclaration of 'pthread_getspecific' [-Wredundant-decls]
 extern void *pthread_getspecific (pthread_key_t __key)
              ^
In file included from threads.c:28:0:
/usr/include/pthread.h:1110:14: note: previous declaration of 'pthread_getspecific' was here
 extern void *pthread_getspecific (pthread_key_t __key) __THROW;
              ^
threads.c:58:12: warning: redundant redeclaration of 'pthread_setspecific' [-Wredundant-decls]
 extern int pthread_setspecific (pthread_key_t __key,
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:1113:12: note: previous declaration of 'pthread_setspecific' was here
 extern int pthread_setspecific (pthread_key_t __key,
            ^
threads.c:61:12: warning: redundant redeclaration of 'pthread_key_create' [-Wredundant-decls]
 extern int pthread_key_create (pthread_key_t *__key,
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:1102:12: note: previous declaration of 'pthread_key_create' was here
 extern int pthread_key_create (pthread_key_t *__key,
            ^
threads.c:64:12: warning: redundant redeclaration of 'pthread_key_delete' [-Wredundant-decls]
 extern int pthread_key_delete (pthread_key_t __key)
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:1107:12: note: previous declaration of 'pthread_key_delete' was here
 extern int pthread_key_delete (pthread_key_t __key) __THROW;
            ^
threads.c:67:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:66:12: warning: redundant redeclaration of 'pthread_mutex_init' [-Wredundant-decls]
 extern int pthread_mutex_init ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:740:12: note: previous declaration of 'pthread_mutex_init' was here
 extern int pthread_mutex_init (pthread_mutex_t *__mutex,
            ^
threads.c:69:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:68:12: warning: redundant redeclaration of 'pthread_mutex_destroy' [-Wredundant-decls]
 extern int pthread_mutex_destroy ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:745:12: note: previous declaration of 'pthread_mutex_destroy' was here
 extern int pthread_mutex_destroy (pthread_mutex_t *__mutex)
            ^
threads.c:71:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:70:12: warning: redundant redeclaration of 'pthread_mutex_lock' [-Wredundant-decls]
 extern int pthread_mutex_lock ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:753:12: note: previous declaration of 'pthread_mutex_lock' was here
 extern int pthread_mutex_lock (pthread_mutex_t *__mutex)
            ^
threads.c:73:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:72:12: warning: redundant redeclaration of 'pthread_mutex_unlock' [-Wredundant-decls]
 extern int pthread_mutex_unlock ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:764:12: note: previous declaration of 'pthread_mutex_unlock' was here
 extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
            ^
threads.c:75:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:74:12: warning: redundant redeclaration of 'pthread_cond_init' [-Wredundant-decls]
 extern int pthread_cond_init ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:959:12: note: previous declaration of 'pthread_cond_init' was here
 extern int pthread_cond_init (pthread_cond_t *__restrict __cond,
            ^
threads.c:77:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:76:12: warning: redundant redeclaration of 'pthread_cond_destroy' [-Wredundant-decls]
 extern int pthread_cond_destroy ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:964:12: note: previous declaration of 'pthread_cond_destroy' was here
 extern int pthread_cond_destroy (pthread_cond_t *__cond)
            ^
threads.c:79:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:78:12: warning: redundant redeclaration of 'pthread_cond_wait' [-Wredundant-decls]
 extern int pthread_cond_wait ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:980:12: note: previous declaration of 'pthread_cond_wait' was here
 extern int pthread_cond_wait (pthread_cond_t *__restrict __cond,
            ^
threads.c:81:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:80:12: warning: redundant redeclaration of 'pthread_equal' [-Wredundant-decls]
 extern int pthread_equal ()
            ^
In file included from /usr/include/features.h:375:0,
                 from /usr/include/stdio.h:27,
                 from libxml.h:51,
                 from threads.c:11:
/usr/include/pthread.h:1144:1: note: previous definition of 'pthread_equal' was here
 __NTH (pthread_equal (pthread_t __thread1, pthread_t __thread2))
 ^
threads.c:83:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:82:18: warning: redundant redeclaration of 'pthread_self' [-Wredundant-decls]
 extern pthread_t pthread_self ()
                  ^
In file included from threads.c:28:0:
/usr/include/pthread.h:274:18: note: previous declaration of 'pthread_self' was here
 extern pthread_t pthread_self (void) __THROW __attribute__ ((__const__));
                  ^
threads.c:85:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:84:12: warning: redundant redeclaration of 'pthread_key_create' [-Wredundant-decls]
 extern int pthread_key_create ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:1102:12: note: previous declaration of 'pthread_key_create' was here
 extern int pthread_key_create (pthread_key_t *__key,
            ^
threads.c:87:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:86:12: warning: redundant redeclaration of 'pthread_key_delete' [-Wredundant-decls]
 extern int pthread_key_delete ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:1107:12: note: previous declaration of 'pthread_key_delete' was here
 extern int pthread_key_delete (pthread_key_t __key) __THROW;
            ^
threads.c:89:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:88:12: warning: redundant redeclaration of 'pthread_cond_signal' [-Wredundant-decls]
 extern int pthread_cond_signal ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:968:12: note: previous declaration of 'pthread_cond_signal' was here
 extern int pthread_cond_signal (pthread_cond_t *__cond)
            ^
  CC       c14n.lo
  CC       xmlstring.lo
  CC       buf.lo
  CC       xmlregexp.lo
  CC       xmlschemas.lo
xmlschemas.c: In function 'xmlSchemaPSimpleTypeErr':
xmlschemas.c:3172:6: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
      xmlChar *expectedEscaped = xmlCharStrdup(expected);
      ^
  CC       xmlschemastypes.lo
  CC       xmlunicode.lo
  CC       xmlreader.lo
  CC       relaxng.lo
relaxng.c: In function 'xmlRelaxNGGetErrorString':
relaxng.c:2218:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
     xmlChar *result = xmlCharStrdup(msg);
     ^
  CC       dict.lo
  CC       SAX2.lo
  CC       xmlwriter.lo
  CC       legacy.lo
  CC       chvalid.lo
  CC       pattern.lo
  CC       xmlsave.lo
  CC       xmlmodule.lo
  CC       schematron.lo
  CC       xzlib.lo
  CCLD     libxml2.la
  CC       testdso.lo
  CCLD     testdso.la
  CC       xmllint.o
  CCLD     xmllint
  CC       xmlcatalog.o
  CCLD     xmlcatalog
  CC       testSchemas.o
  CCLD     testSchemas
  CC       testRelax.o
  CCLD     testRelax
  CC       testSAX.o
  CCLD     testSAX
  CC       testHTML.o
  CCLD     testHTML
  CC       testXPath.o
  CCLD     testXPath
  CC       testURI.o
  CCLD     testURI
  CC       testThreads.o
  CCLD     testThreads
  CC       testC14N.o
  CCLD     testC14N
  CC       testAutomata.o
  CCLD     testAutomata
  CC       testRegexp.o
  CCLD     testRegexp
  CC       testReader.o
  CCLD     testReader
  CC       testapi.o
testapi.c:18040:25: warning: 'gen_xmlSchematronPtr' defined but not used [-Wunused-function]
 static xmlSchematronPtr gen_xmlSchematronPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
                         ^
testapi.c:18043:13: warning: 'des_xmlSchematronPtr' defined but not used [-Wunused-function]
 static void des_xmlSchematronPtr(int no ATTRIBUTE_UNUSED, xmlSchematronPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
             ^
testapi.c:18060:35: warning: 'gen_xmlSchematronParserCtxtPtr' defined but not used [-Wunused-function]
 static xmlSchematronParserCtxtPtr gen_xmlSchematronParserCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
                                   ^
testapi.c:18063:13: warning: 'des_xmlSchematronParserCtxtPtr' defined but not used [-Wunused-function]
 static void des_xmlSchematronParserCtxtPtr(int no ATTRIBUTE_UNUSED, xmlSchematronParserCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
             ^
testapi.c:18558:18: warning: 'gen_const_xmlBufPtr' defined but not used [-Wunused-function]
 static xmlBufPtr gen_const_xmlBufPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
                  ^
testapi.c:18561:13: warning: 'des_const_xmlBufPtr' defined but not used [-Wunused-function]
 static void des_const_xmlBufPtr(int no ATTRIBUTE_UNUSED, const xmlBufPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
             ^
testapi.c:34503:27: warning: 'gen_xmlSAXHandlerPtr_ptr' defined but not used [-Wunused-function]
 static xmlSAXHandlerPtr * gen_xmlSAXHandlerPtr_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
                           ^
testapi.c:34506:13: warning: 'des_xmlSAXHandlerPtr_ptr' defined but not used [-Wunused-function]
 static void des_xmlSAXHandlerPtr_ptr(int no ATTRIBUTE_UNUSED, xmlSAXHandlerPtr * val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
             ^
^A^[  CCLD     testapi
  CC       testModule.o
  CCLD     testModule
  CC       runtest.o
runtest.c: In function 'streamProcessTest':
runtest.c:2145:65: warning: unused parameter 'options' [-Wunused-parameter]
                   xmlTextReaderPtr reader, const char *rng, int options) {
                                                                 ^

Though, over here smtalks said it's safe to ignore these warnings...
 
Last edited:
Thanks cbservers, I removed HTTP2 and reinstalled apache, php and mysql with nginx + apache. Now everything is working blazing fast. I'll just wait on the official HTTP2 support from DA.
 
Back
Top