Neero

компиляция

4 сообщения в этой теме

Опубликовано: (изменено)

при компиляции выдает такую ошибку:

checking whether gcc can actually use -Wno-pointer-sign... yes
checking whether gcc supports -Wno-switch... yes
checking whether gcc supports -fPIC... yes
checking how to make shared objects...
checking whether gcc needs -fPIC for shared objects... no, but fails for another reason
configure: error: compiler is unable to compile shared objects for an unhandled reason, please report this with attached config.log... stopping
[email protected]://home/admin/eamod#
 

содержимое файла config.log:

Скрытый текст

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = vps13502ru
uname -m = x86_64
uname -r = 2.6.32-042stab127.2
uname -s = Linux
uname -v = #1 SMP Thu Jan 4 16:41:44 MSK 2018

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/local/vesta/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1585: checking whether make sets $(MAKE)
configure:1605: result: yes
configure:1660: checking for gcc
configure:1676: found /usr/bin/gcc
configure:1686: result: gcc
configure:1930: checking for C compiler version
configure:1933: gcc --version </dev/null >&5
gcc (Debian 4.9.2-10+deb8u1) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1936: $? = 0
configure:1938: gcc -v </dev/null >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10+deb8u1' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.2 (Debian 4.9.2-10+deb8u1) 
configure:1941: $? = 0
configure:1943: gcc -V </dev/null >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:1946: $? = 4
configure:1969: checking for C compiler default output file name
configure:1972: gcc    conftest.c  >&5
configure:1975: $? = 0
configure:2021: result: a.out
configure:2026: checking whether the C compiler works
configure:2032: ./a.out
configure:2035: $? = 0
configure:2052: result: yes
configure:2059: checking whether we are cross compiling
configure:2061: result: no
configure:2064: checking for suffix of executables
configure:2066: gcc -o conftest    conftest.c  >&5
configure:2069: $? = 0
configure:2094: result: 
configure:2100: checking for suffix of object files
configure:2121: gcc -c   conftest.c >&5
configure:2124: $? = 0
configure:2146: result: o
configure:2150: checking whether we are using the GNU C compiler
configure:2174: gcc -c   conftest.c >&5
configure:2180: $? = 0
configure:2184: test -z 
             || test ! -s conftest.err
configure:2187: $? = 0
configure:2190: test -s conftest.o
configure:2193: $? = 0
configure:2206: result: yes
configure:2212: checking whether gcc accepts -g
configure:2233: gcc -c -g  conftest.c >&5
configure:2239: $? = 0
configure:2243: test -z 
             || test ! -s conftest.err
configure:2246: $? = 0
configure:2249: test -s conftest.o
configure:2252: $? = 0
configure:2263: result: yes
configure:2280: checking for gcc option to accept ANSI C
configure:2350: gcc  -c -g -O2  conftest.c >&5
configure:2356: $? = 0
configure:2360: test -z 
             || test ! -s conftest.err
configure:2363: $? = 0
configure:2366: test -s conftest.o
configure:2369: $? = 0
configure:2387: result: none needed
configure:2405: gcc -c -g -O2  conftest.c >&5
conftest.c:2:3: error: unknown type name 'choke'
   choke me
   ^
conftest.c:2:3: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
configure:2411: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:2549: checking how to run the C preprocessor
configure:2584: gcc -E  conftest.c
configure:2590: $? = 0
configure:2622: gcc -E  conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
                            ^
compilation terminated.
configure:2628: $? = 1
configure: failed program was:
| /* confdefs.h.  */

| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2667: result: gcc -E
configure:2691: gcc -E  conftest.c
configure:2697: $? = 0
configure:2729: gcc -E  conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
                            ^
compilation terminated.
configure:2735: $? = 1
configure: failed program was:
| /* confdefs.h.  */

| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2795: checking whether byte ordering is bigendian
configure:2822: gcc -c -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare  -I../common conftest.c >&5
configure:2828: $? = 0
configure:2832: test -z 
             || test ! -s conftest.err
configure:2835: $? = 0
configure:2838: test -s conftest.o
configure:2841: $? = 0
configure:2865: gcc -c -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare  -I../common conftest.c >&5
conftest.c: In function 'main':
conftest.c:16:2: error: unknown type name 'not'
  not big endian
  ^
conftest.c:16:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'endian'
  not big endian
          ^
configure:2871: $? = 1
configure: failed program was:
| /* confdefs.h.  */

| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <sys/types.h>
| #include <sys/param.h>

| int
| main ()
| {
| #if BYTE_ORDER != BIG_ENDIAN
|  not big endian
| #endif

|   ;
|   return 0;
| }
configure:3006: result: no
configure:3024: checking whether pointers can be stored in ints (old code)
configure:3043: gcc -c -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare  -I../common conftest.c >&5
conftest.c:9:12: error: size of array 'test_array' is negative
 static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void*)) ? 1 : -1];
            ^
conftest.c:9:12: warning: 'test_array' defined but not used [-Wunused-variable]
configure:3049: $? = 1
configure: failed program was:
| /* confdefs.h.  */

| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void*)) ? 1 : -1];
| int
| main ()
| {

|   ;
|   return 0;
| }
configure:3092: gcc -c -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -m32  -I../common conftest.c >&5
conftest.c:9:12: warning: 'test_array' defined but not used [-Wunused-variable]
 static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void *)) ? 1 : -1];
            ^
configure:3098: $? = 0
configure:3102: test -z 
             || test ! -s conftest.err
configure:3105: $? = 0
configure:3108: test -s conftest.o
configure:3111: $? = 0
configure:3123: result: yes (with -m32)
configure:3133: checking whether gcc supports -Wno-unused-parameter
configure:3141: gcc -c -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -m32 -Wno-unused-parameter  -I../common conftest.c >&5
configure:3147: $? = 0
configure:3151: test -z 
             || test ! -s conftest.err
configure:3154: $? = 0
configure:3157: test -s conftest.o
configure:3160: $? = 0
configure:3162: result: yes
configure:3178: checking whether gcc supports -Wno-pointer-sign
configure:3186: gcc -c -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -m32 -Wno-unused-parameter -Wno-pointer-sign  -I../common conftest.c >&5
configure:3192: $? = 0
configure:3196: test -z 
             || test ! -s conftest.err
configure:3199: $? = 0
configure:3202: test -s conftest.o
configure:3205: $? = 0
configure:3208: result: yes
configure:3210: checking whether gcc can actually use -Wno-pointer-sign
configure:3219: gcc -c -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -m32 -Wno-unused-parameter -Werror -Wno-pointer-sign  -I../common conftest.c >&5
configure:3225: $? = 0
configure:3229: test -z 
             || test ! -s conftest.err
configure:3232: $? = 0
configure:3235: test -s conftest.o
configure:3238: $? = 0
configure:3241: result: yes
configure:3272: checking whether gcc supports -Wno-switch
configure:3280: gcc -c -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -m32 -Wno-unused-parameter -Wno-pointer-sign -Wno-switch  -I../common conftest.c >&5
configure:3286: $? = 0
configure:3290: test -z 
             || test ! -s conftest.err
configure:3293: $? = 0
configure:3296: test -s conftest.o
configure:3299: $? = 0
configure:3301: result: yes
configure:3317: checking whether gcc supports -fPIC
configure:3325: gcc -c -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -m32 -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC  -I../common conftest.c >&5
configure:3331: $? = 0
configure:3335: test -z 
             || test ! -s conftest.err
configure:3338: $? = 0
configure:3341: test -s conftest.o
configure:3344: $? = 0
configure:3347: result: yes
configure:3369: checking how to make shared objects
configure:3389: gcc -o conftest -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -m32 -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC -shared  -I../common  -m32 conftest.c  >&5
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find -lc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:3395: $? = 1
configure: failed program was:

|         int bar = 0;

|         int foo(void)
|         {
|             return bar;
|         }

configure:3434: gcc -o conftest -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -m32 -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC -nostart  -I../common  -m32 conftest.c  >&5
gcc: error: unrecognized command line option '-nostart'
configure:3440: $? = 1
configure: failed program was:

|         int bar = 0;

|         int foo(void)
|         {
|             return bar;
|         }

configure:3475: result: 
configure:3483: checking whether gcc needs -fPIC for shared objects
configure:3499: gcc -o conftest -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -m32 -Wno-unused-parameter -Wno-pointer-sign -Wno-switch    -I../common  -m32 conftest.c  >&5
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find -lc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:3505: $? = 1
configure: failed program was:

|         int bar = 0;

|         int foo(void)
|         {
|             return bar;
|         }

configure:3544: gcc -o conftest -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -m32 -Wno-unused-parameter -Wno-pointer-sign -Wno-switch   -fPIC  -I../common  -m32 conftest.c  >&5
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find -lc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:3550: $? = 1
configure: failed program was:

|                     int bar = 0;

|                     int foo(void)
|                     {
|                         return bar;
|                     }

configure:3575: result: no, but fails for another reason
configure:3577: error: compiler is unable to compile shared objects for an unhandled reason, please report this with attached config.log... stopping

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_objext=o
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='gcc'
CFLAGS='-g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -m32 -Wno-unused-parameter -Wno-pointer-sign -Wno-switch   -fPIC'
CPP='gcc -E'
CPPFLAGS=' -I../common'
DEFS=''
DLLEXT=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
HAVE_MYSQL=''
HAVE_PCRE=''
LDFLAGS=' -m32'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MYSQL_CFLAGS=''
MYSQL_CONFIG_HOME=''
MYSQL_LIBS=''
MYSQL_VERSION=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PCRE_CFLAGS=''
PCRE_LIBS=''
SET_MAKE=''
SHELL='/bin/bash'
SOFLAGS=' '
WITH_PLUGINS='yes'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 1
 

в чем может быть проблема?

Изменено пользователем Neero
0

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Опубликовано: (изменено)

9 часов назад, Neero сказал:

configure: error: compiler is unable to compile shared objects for an unhandled reason, please report this with attached config.log... stopping

говорит что lib библиотеки не найдены, установите на впске всё что касается gcc++ компилятора

если хорошо владеете то вот ссылка, но можно и проще emerge gcc++ на дебиане вроде так

или можно в ручную прописать путь к библиотекам если вы знаете где они

/etc/ld.so.conf тут нужно конкретно указать путь к библиотекам gcc++

 

 

Изменено пользователем ucell-uz
0

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Опубликовано: (изменено)

нашел решение проблемы:

./configure --enable-64bit

сейчас возникла другая: уже при запуске самого серва. он запускается, но при попытке зайти на сервер:

: DB error - MySQL server has gone away
[Debug]: at ipban_sql.c:259 - DELETE FROM `ipbanlist` WHERE `rtime` <= NOW()
[SQL]: DB error - MySQL server has gone away
[Debug]: at mapreg_sql.c:60 - INSERT INTO `mapreg`(`varname`,`index`,`value`) VALUES ('$DTS_Time','0','1')
[SQL]: DB error - MySQL server has gone away
[Debug]: at ipban_sql.c:217 - SELECT count(*) FROM `ipbanlist` WHERE `rtime` > NOW() AND (`list` = '109.*.*.*' OR `list` = '109.172.*.*' OR `list` = '109.172.15.*' OR `list` = '109.172.15.5')
[Status]: Connection refused: IP isn't authorised (deny/allow, ip: 109.172.15.5).
[SQL]: DB error - MySQL server has gone away
[Debug]: at loginlog_sql.c:76 - INSERT INTO `loginlog`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '109.172.15.5', 'unknown', '-3', 'ip banned')
[Info]: Closed connection from '109.172.15.5'.
 

в чем может быть проблема?

 

Изменено пользователем Neero
0

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах
DB error - MySQL server has gone away

Эта тема возникает когда мускул не может обработать запрос, в настройках попробуй увеличить тайм-ауты..

[Status]: Connection refused: IP isn't authorised (deny/allow, ip: 109.172.15.5).

А тут пишет что айпи не разрешен.. покажи конфиги серва..

0

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Создайте аккаунт или войдите для комментирования

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйтесь для получения аккаунта. Это просто!


Зарегистрировать аккаунт

Войти

Уже зарегистрированы? Войдите здесь.


Войти сейчас