Решено: Не собирается dev-db/mysql (ругается на zlib.....)

Sabayon, Calculate, Funtoo, Exherbo

Модератор: /dev/random

Аватара пользователя
CarelessAngel
Сообщения: 56
ОС: Gentoo linux amd64\~amd64

Решено: Не собирается dev-db/mysql

Сообщение CarelessAngel »

Ребят помогите решить проблему. Вообщем после очередного обновления мира, при сборке dev-db/mysql-5.6.27 вывалилась ошибка:
Spoiler
[ 73%] Linking C executable base64_test
cd /var/tmp/portage/dev-db/mysql-5.6.27/work/mysql-abi_x86_32.x86/mysys && /usr/bin/cmake -E cmake_link_script CMakeFiles/base64_test.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-gcc -m32 -march=core2 -O2 -pipe -fno-strict-aliasing -Wall -Wextra -Wformat-security -Wvla -Wwrite-strings -Wdeclaration-after-statement -DNDEBUG -DDBUG_OFF -Wl,-O1 -Wl,--as-needed CMakeFiles/base64_test.dir/base64.c.o -o base64_test -lpthread libmysys.a ../dbug/libdbug.a libmysys.a ../dbug/libdbug.a ../strings/libstrings.a /usr/local/lib/libz.so -lm -lpthread -Wl,-rpath,/usr/local/lib
/usr/local/lib/libz.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
mysys/CMakeFiles/base64_test.dir/build.make:100: recipe for target 'mysys/base64_test' failed
make[2]: *** [mysys/base64_test] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-db/mysql-5.6.27/work/mysql-abi_x86_32.x86'
CMakeFiles/Makefile2:661: recipe for target 'mysys/CMakeFiles/base64_test.dir/all' failed
make[1]: *** [mysys/CMakeFiles/base64_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 73%] Linking C executable queues
cd /var/tmp/portage/dev-db/mysql-5.6.27/work/mysql-abi_x86_32.x86/mysys && /usr/bin/cmake -E cmake_link_script CMakeFiles/queues.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-gcc -m32 -march=core2 -O2 -pipe -fno-strict-aliasing -Wall -Wextra -Wformat-security -Wvla -Wwrite-strings -Wdeclaration-after-statement -DNDEBUG -DDBUG_OFF -Wl,-O1 -Wl,--as-needed CMakeFiles/queues.dir/queues.c.o -o queues -lpthread libmysys.a ../dbug/libdbug.a libmysys.a ../dbug/libdbug.a ../strings/libstrings.a /usr/local/lib/libz.so -lm -lpthread -Wl,-rpath,/usr/local/lib
/usr/local/lib/libz.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
mysys/CMakeFiles/queues.dir/build.make:100: recipe for target 'mysys/queues' failed
make[2]: *** [mysys/queues] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-db/mysql-5.6.27/work/mysql-abi_x86_32.x86'
CMakeFiles/Makefile2:736: recipe for target 'mysys/CMakeFiles/queues.dir/all' failed
make[1]: *** [mysys/CMakeFiles/queues.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-db/mysql-5.6.27/work/mysql-abi_x86_32.x86'
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
* ERROR: dev-db/mysql-5.6.27::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=dev-db/mysql-5.6.27::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-db/mysql-5.6.27::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.6.27/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.6.27/temp/environment'.
* Working directory: '/var/tmp/portage/dev-db/mysql-5.6.27/work/mysql-abi_x86_32.x86'
* S: '/var/tmp/portage/dev-db/mysql-5.6.27/work/mysql'

если нужно, могу приложить полный лог сборки пакета.
Судя по логам понял что сборка вываливается после обращения к библиотеке zlib,
пересобрал zlib, по-новой запустил, то же самое((( revdep-rebuild молчит,
обновил до не стабильной версии toolchain-libtool-2.4.6-r1, glibc-2.22-r1, binutils-2.25.2-r1,
т.к. полгода назад ставил gcc-4.9.3, подумал может последствия?! graphite не включал,
т.к. где то читал что он код ломает. Вообщем, пересобрал toolchain, gcc, zlib. Запускаю сборку mysql
и опять та же ошибка.... Вспомнил, что стоял флаг static для zlib, нужен для FB. Убрал флаг, пересобрал,
опять все то же самое.... Решил пропустить, обновление этого пакета, пошел дальше по списку обновления,
vlc тоже обрывается при обращении к zlib (прикрепил файл)

Код:

equery u dev-db/mysql + - abi_x86_32 : 32-bit (x86) libraries - - debug : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Qualit...ance/Backtraces - - embedded : Build embedded server (libmysqld) - - extraengine : Add support for alternative storage engines (Archive, CSV, Blackhole, Federated(X), Partition) - - jemalloc : Use dev-libs/jemalloc for allocations. - - latin1 : Use LATIN1 encoding instead of UTF8 + - minimal : Install client programs only, no server + - openssl : Enable SSL connections and crypto functions using dev-libs/openssl + - perl : Add optional support/bindings for the Perl language - - profiling : Add support for statement profiling (requires USE=community). - - static : !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically - - static-libs : Build static versions of dynamic libraries as well - - systemtap : Build support for profiling and tracing using dev-util/systemtap - - tcmalloc : Use the dev-util/google-perftools libraries to replace the malloc() implementation with a possibly faster one - - test : Install upstream testsuites for end use. - - yassl : Enable SSL connections and crypto functions using the bundled yaSSL

У вас нет необходимых прав для просмотра вложений в этом сообщении.
я думаю...значит я жив...
Спасибо сказали:
Аватара пользователя
/dev/random
Администратор
Сообщения: 5405
ОС: Gentoo

Re: Решено: Не собирается dev-db/mysql

Сообщение /dev/random »

CarelessAngel писал(а):
03.12.2015 16:50
/usr/local/lib/libz.so

Эээ, /usr/local? Вы что-то в обход пакетного менеджера ставили?
Спасибо сказали:
Аватара пользователя
CarelessAngel
Сообщения: 56
ОС: Gentoo linux amd64\~amd64

Re: Решено: Не собирается dev-db/mysql

Сообщение CarelessAngel »

ЭЭээ, нет не ставил, может пакет там ищет? создать симлинк туда? Сходил по адресу.... Интересно, там стоит версия 1.2.7, дата правки 9 октября, может warthunder чего то туда мог поставить?
Хорошо, а почему системный пакет игнорируется тогда?
я думаю...значит я жив...
Спасибо сказали:
Аватара пользователя
/dev/random
Администратор
Сообщения: 5405
ОС: Gentoo

Re: Решено: Не собирается dev-db/mysql

Сообщение /dev/random »

CarelessAngel писал(а):
03.12.2015 16:55
ЭЭээ, нет не ставил, может пакет там ищет? создать симлинк туда?

Посмотрите, что это за файл и принадлежит ли он какому-нибудь пакету.
Спасибо сказали:
Аватара пользователя
CarelessAngel
Сообщения: 56
ОС: Gentoo linux amd64\~amd64

Re: Решено: Не собирается dev-db/mysql

Сообщение CarelessAngel »

equery b libz.so.1.2.7
результатов не дал

Код:

ls /usr/local/lib/ libz.a libz.so libz.so.1 libz.so.1.2.7
я думаю...значит я жив...
Спасибо сказали:
Аватара пользователя
/dev/random
Администратор
Сообщения: 5405
ОС: Gentoo

Re: Решено: Не собирается dev-db/mysql

Сообщение /dev/random »

CarelessAngel писал(а):
03.12.2015 17:12
equery b /usr/local/lib/libz.so.1.2.7
результатов не дал

Значит, ставилось в обход пакетного менеджера.

CarelessAngel писал(а):
03.12.2015 16:55
Хорошо, а почему системный пакет игнорируется тогда?

Значит, так прописано в каких-то конфигах. Может, в /etc/ld.so.conf, может, в pkgconfig, может, ещё где-то.

CarelessAngel писал(а):
03.12.2015 16:55
Интересно, там стоит версия 1.2.7, дата правки 9 октября, может warthunder чего то туда мог поставить?

Попробуйте разобраться, кто туда что и зачем ставил, и по возможности удалить.
Спасибо сказали:
Аватара пользователя
CarelessAngel
Сообщения: 56
ОС: Gentoo linux amd64\~amd64

Re: Решено: Не собирается dev-db/mysql

Сообщение CarelessAngel »

СпаааааааСибоООо!!!!! Огромное!!! Натолкнули на решение!!!!! вот честно почти неделю мучаюсь!!!! а все банально cat /etc/ld.so.conf , там приоритеты выставлены были.
В моем случае: удалил\забэкапил установленные библиотеки в /usr/local/lib/zlib*, позже проверю, какая прога начнет ругаться на отсутствие оных.
я думаю...значит я жив...
Спасибо сказали:
Аватара пользователя
CarelessAngel
Сообщения: 56
ОС: Gentoo linux amd64\~amd64

Re: Решено: Не собирается dev-db/mysql

Сообщение CarelessAngel »

Не было времени до этого написать.
И так, dev-db/mysql собрался нормально, после вышеупомянутых действий (Еще раз спасибо /dev/random ))) А вот media-video/vlc не хочет собираться в никакую, и тоже ругается на zlib/minizip :-(
Spoiler
libtool: link: echo "local: *; };" >> .libs/libtimecode_plugin.ver
libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -shared -fPIC -DPIC access/.libs/timecode.o -Wl,-rpath -Wl,/var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1/src/.libs ../compat/.libs/libcompat.a -L/usr/lib64/sidplay/builders/ ../src/.libs/libvlccore.so -lrt -lidn -lpthread -ldl -lm -ldbus-1 -Wl,--as-needed -march=core2 -O2 -Wl,-O1 -Wl,-soname -Wl,libtimecode_plugin.so -Wl,-version-script -Wl,.libs/libtimecode_plugin.ver -o .libs/libtimecode_plugin.so
libtool: link: ( cd ".libs" && rm -f "libtimecode_plugin.la" && ln -s "../libtimecode_plugin.la" "libtimecode_plugin.la" )
../doltlibtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DMODULE_STRING=\"$(p="access/zip/libzip_plugin_la-zipstream.lo"; p="${p##*/}"; p="${p#lib}"; p="${p%_plugin*}"; p="${p%.lo}"; echo "$p")\" -D__PLUGIN__ -I./access -I./codec -I../include -I../include -I/usr/include/minizip -march=core2 -O2 -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -fvisibility=hidden -c -o access/zip/libzip_plugin_la-zipstream.lo `test -f 'access/zip/zipstream.c' || echo './'`access/zip/zipstream.c
In file included from /usr/include/minizip/unzip.h:55:0,
from access/zip/zip.h:37,
from access/zip/zipstream.c:32:
/usr/include/minizip/ioapi.h:135:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
typedef voidpf (ZCALLBACK *open_file_func) _Z_OF((voidpf opaque, const char* filename, int mode));
^
/usr/include/minizip/ioapi.h:136:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
typedef uLong (ZCALLBACK *read_file_func) _Z_OF((voidpf opaque, voidpf stream, void* buf, uLong size));
^
/usr/include/minizip/ioapi.h:137:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
typedef uLong (ZCALLBACK *write_file_func) _Z_OF((voidpf opaque, voidpf stream, const void* buf, uLong size));
^
/usr/include/minizip/ioapi.h:138:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
typedef int (ZCALLBACK *close_file_func) _Z_OF((voidpf opaque, voidpf stream));
^
/usr/include/minizip/ioapi.h:139:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
typedef int (ZCALLBACK *testerror_file_func) _Z_OF((voidpf opaque, voidpf stream));
^
/usr/include/minizip/ioapi.h:141:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
typedef long (ZCALLBACK *tell_file_func) _Z_OF((voidpf opaque, voidpf stream));
^
/usr/include/minizip/ioapi.h:142:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
typedef long (ZCALLBACK *seek_file_func) _Z_OF((voidpf opaque, voidpf stream, uLong offset, int origin));
^
/usr/include/minizip/ioapi.h:148:5: error: unknown type name ‘open_file_func’
open_file_func zopen_file;
^
/usr/include/minizip/ioapi.h:149:5: error: unknown type name ‘read_file_func’
read_file_func zread_file;
^
/usr/include/minizip/ioapi.h:150:5: error: unknown type name ‘write_file_func’
write_file_func zwrite_file;
^
/usr/include/minizip/ioapi.h:151:5: error: unknown type name ‘tell_file_func’
tell_file_func ztell_file;
^
/usr/include/minizip/ioapi.h:152:5: error: unknown type name ‘seek_file_func’
seek_file_func zseek_file;
^
/usr/include/minizip/ioapi.h:153:5: error: unknown type name ‘close_file_func’
close_file_func zclose_file;
^
/usr/include/minizip/ioapi.h:154:5: error: unknown type name ‘testerror_file_func’
testerror_file_func zerror_file;
^
/usr/include/minizip/ioapi.h:158:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
typedef ZPOS64_T (ZCALLBACK *tell64_file_func) _Z_OF((voidpf opaque, voidpf stream));
^
/usr/include/minizip/ioapi.h:159:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
typedef long (ZCALLBACK *seek64_file_func) _Z_OF((voidpf opaque, voidpf stream, ZPOS64_T offset, int origin));
^
/usr/include/minizip/ioapi.h:160:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
typedef voidpf (ZCALLBACK *open64_file_func) _Z_OF((voidpf opaque, const void* filename, int mode));
^
/usr/include/minizip/ioapi.h:164:5: error: unknown type name ‘open64_file_func’
open64_file_func zopen64_file;
^
/usr/include/minizip/ioapi.h:165:5: error: unknown type name ‘read_file_func’
read_file_func zread_file;
^
/usr/include/minizip/ioapi.h:166:5: error: unknown type name ‘write_file_func’
write_file_func zwrite_file;
^
/usr/include/minizip/ioapi.h:167:5: error: unknown type name ‘tell64_file_func’
tell64_file_func ztell64_file;
^
/usr/include/minizip/ioapi.h:168:5: error: unknown type name ‘seek64_file_func’
seek64_file_func zseek64_file;
^
/usr/include/minizip/ioapi.h:169:5: error: unknown type name ‘close_file_func’
close_file_func zclose_file;
^
/usr/include/minizip/ioapi.h:170:5: error: unknown type name ‘testerror_file_func’
testerror_file_func zerror_file;
^
/usr/include/minizip/ioapi.h:174:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
void fill_fopen64_filefunc _Z_OF((zlib_filefunc64_def* pzlib_filefunc_def));
^
/usr/include/minizip/ioapi.h:175:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
void fill_fopen_filefunc _Z_OF((zlib_filefunc_def* pzlib_filefunc_def));
^
/usr/include/minizip/ioapi.h:181:5: error: unknown type name ‘open_file_func’
open_file_func zopen32_file;
^
/usr/include/minizip/ioapi.h:182:5: error: unknown type name ‘tell_file_func’
tell_file_func ztell32_file;
^
/usr/include/minizip/ioapi.h:183:5: error: unknown type name ‘seek_file_func’
seek_file_func zseek32_file;
^
/usr/include/minizip/ioapi.h:194:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
voidpf call_zopen64 _Z_OF((const zlib_filefunc64_32_def* pfilefunc,const void*filename,int mode));
^
/usr/include/minizip/ioapi.h:195:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
long call_zseek64 _Z_OF((const zlib_filefunc64_32_def* pfilefunc,voidpf filestream, ZPOS64_T offset, int origin));
^
/usr/include/minizip/ioapi.h:196:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
ZPOS64_T call_ztell64 _Z_OF((const zlib_filefunc64_32_def* pfilefunc,voidpf filestream));
^
In file included from access/zip/zip.h:37:0,
from access/zip/zipstream.c:32:
/usr/include/minizip/unzip.h:153:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzStringFileNameCompare _Z_OF ((const char* fileName1,
^
/usr/include/minizip/unzip.h:166:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern unzFile ZEXPORT unzOpen _Z_OF((const char *path));
^
/usr/include/minizip/unzip.h:167:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern unzFile ZEXPORT unzOpen64 _Z_OF((const void *path));
^
/usr/include/minizip/unzip.h:184:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern unzFile ZEXPORT unzOpen2 _Z_OF((const char *path,
^
/usr/include/minizip/unzip.h:191:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern unzFile ZEXPORT unzOpen2_64 _Z_OF((const void *path,
^
/usr/include/minizip/unzip.h:198:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzClose _Z_OF((unzFile file));
^
/usr/include/minizip/unzip.h:205:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzGetGlobalInfo _Z_OF((unzFile file,
^
/usr/include/minizip/unzip.h:208:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzGetGlobalInfo64 _Z_OF((unzFile file,
^
/usr/include/minizip/unzip.h:216:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzGetGlobalComment _Z_OF((unzFile file,
^
/usr/include/minizip/unzip.h:229:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzGoToFirstFile _Z_OF((unzFile file));
^
/usr/include/minizip/unzip.h:235:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzGoToNextFile _Z_OF((unzFile file));
^
/usr/include/minizip/unzip.h:242:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzLocateFile _Z_OF((unzFile file,
^
/usr/include/minizip/unzip.h:288:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzGetCurrentFileInfo64 _Z_OF((unzFile file,
^
/usr/include/minizip/unzip.h:297:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzGetCurrentFileInfo _Z_OF((unzFile file,
^
/usr/include/minizip/unzip.h:321:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64 _Z_OF((unzFile file));
^
/usr/include/minizip/unzip.h:331:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzOpenCurrentFile _Z_OF((unzFile file));
^
/usr/include/minizip/unzip.h:337:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzOpenCurrentFilePassword _Z_OF((unzFile file,
^
/usr/include/minizip/unzip.h:345:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzOpenCurrentFile2 _Z_OF((unzFile file,
^
/usr/include/minizip/unzip.h:358:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzOpenCurrentFile3 _Z_OF((unzFile file,
^
/usr/include/minizip/unzip.h:373:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzCloseCurrentFile _Z_OF((unzFile file));
^
/usr/include/minizip/unzip.h:379:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzReadCurrentFile _Z_OF((unzFile file,
^
/usr/include/minizip/unzip.h:393:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern z_off_t ZEXPORT unztell _Z_OF((unzFile file));
^
/usr/include/minizip/unzip.h:395:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern ZPOS64_T ZEXPORT unztell64 _Z_OF((unzFile file));
^
/usr/include/minizip/unzip.h:400:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzeof _Z_OF((unzFile file));
^
/usr/include/minizip/unzip.h:405:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_Z_OF’
extern int ZEXPORT unzGetLocalExtrafield _Z_OF((unzFile file,
^
access/zip/zipstream.c: In function ‘StreamOpen’:
access/zip/zipstream.c:193:40: warning: assignment makes integer from pointer without a cast
p_sys->fileFunctions->zopen_file = ZipIO_Open;
^
access/zip/zipstream.c:194:40: warning: assignment makes integer from pointer without a cast
p_sys->fileFunctions->zread_file = ZipIO_Read;
^
access/zip/zipstream.c:195:40: warning: assignment makes integer from pointer without a cast
p_sys->fileFunctions->zwrite_file = ZipIO_Write;
^
access/zip/zipstream.c:196:40: warning: assignment makes integer from pointer without a cast
p_sys->fileFunctions->ztell_file = ZipIO_Tell;
^
access/zip/zipstream.c:197:40: warning: assignment makes integer from pointer without a cast
p_sys->fileFunctions->zseek_file = ZipIO_Seek;
^
access/zip/zipstream.c:198:40: warning: assignment makes integer from pointer without a cast
p_sys->fileFunctions->zclose_file = ZipIO_Close;
^
access/zip/zipstream.c:199:40: warning: assignment makes integer from pointer without a cast
p_sys->fileFunctions->zerror_file = ZipIO_Error;
^
access/zip/zipstream.c:201:5: error: implicit declaration of function ‘unzOpen2’ [-Werror=implicit-function-declaration]
p_sys->zipFile = unzOpen2( NULL /* path */, p_sys->fileFunctions );
^
access/zip/zipstream.c:201:20: warning: assignment makes pointer from integer without a cast
p_sys->zipFile = unzOpen2( NULL /* path */, p_sys->fileFunctions );
^
access/zip/zipstream.c: In function ‘StreamClose’:
access/zip/zipstream.c:233:9: error: implicit declaration of function ‘unzClose’ [-Werror=implicit-function-declaration]
unzClose( p_sys->zipFile );
^
access/zip/zipstream.c: In function ‘GetFilesInZip’:
access/zip/zipstream.c:412:5: error: implicit declaration of function ‘unzGetGlobalInfo’ [-Werror=implicit-function-declaration]
if( unzGetGlobalInfo( file, &info ) != UNZ_OK )
^
access/zip/zipstream.c:419:5: error: implicit declaration of function ‘unzGoToFirstFile’ [-Werror=implicit-function-declaration]
unzGoToFirstFile( file );
^
access/zip/zipstream.c:434:9: error: implicit declaration of function ‘unzGetCurrentFileInfo’ [-Werror=implicit-function-declaration]
if( unzGetCurrentFileInfo( file, p_fileInfo, psz_fileName,
^
access/zip/zipstream.c:456:13: error: implicit declaration of function ‘unzGoToNextFile’ [-Werror=implicit-function-declaration]
if( unzGoToNextFile( file ) != UNZ_OK )
^
access/zip/zipstream.c: In function ‘ZipIO_Write’:
access/zip/zipstream.c:846:9: warning: unused variable ‘ERROR_zip_cannot_write_this_should_not_happen’ [-Wunused-variable]
int ERROR_zip_cannot_write_this_should_not_happen = 0;
^
cc1: some warnings being treated as errors
Makefile:9133: recipe for target 'access/zip/libzip_plugin_la-zipstream.lo' failed
make[4]: *** [access/zip/libzip_plugin_la-zipstream.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: link: /usr/bin/x86_64-pc-linux-gnu-nm -B access/.libs/vdr.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > .libs/libvdr_plugin.exp
libtool: link: /bin/grep -E -e "^vlc_entry" ".libs/libvdr_plugin.exp" > ".libs/libvdr_plugin.expT"
libtool: link: mv -f ".libs/libvdr_plugin.expT" ".libs/libvdr_plugin.exp"
libtool: link: echo "{ global:" > .libs/libvdr_plugin.ver
libtool: link: cat .libs/libvdr_plugin.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libvdr_plugin.ver
libtool: link: echo "local: *; };" >> .libs/libvdr_plugin.ver
libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -shared -fPIC -DPIC access/.libs/vdr.o -Wl,-rpath -Wl,/var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1/src/.libs ../compat/.libs/libcompat.a -L/usr/lib64/sidplay/builders/ ../src/.libs/libvlccore.so -lrt -lidn -lpthread -ldl -lm -ldbus-1 -Wl,--as-needed -march=core2 -O2 -Wl,-O1 -Wl,-soname -Wl,libvdr_plugin.so -Wl,-version-script -Wl,.libs/libvdr_plugin.ver -o .libs/libvdr_plugin.so
libtool: link: ( cd ".libs" && rm -f "libvdr_plugin.la" && ln -s "../libvdr_plugin.la" "libvdr_plugin.la" )
make[4]: Leaving directory '/var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1/modules'
Makefile:9653: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1/modules'
Makefile:4527: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1/modules'
Makefile:2262: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1'
Makefile:2147: recipe for target 'all' failed
make: *** [all] Error 2
* ERROR: media-video/vlc-2.2.1-r1::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=media-video/vlc-2.2.1-r1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-video/vlc-2.2.1-r1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-video/vlc-2.2.1-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/vlc-2.2.1-r1/temp/environment'.
* Working directory: '/var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1'
* S: '/var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1'

>>> Failed to emerge media-video/vlc-2.2.1-r1, Log file:

Перепробовал разные use на zlib, результат ноль( где то на просторах ТЫРнета, наткнулся на небольшое сообщение что разрабы vlc уже не раз последние сборки сабжа
затачивают под определенную (здесь=не всегда актуальную) версию zlib, но сообщение то было давной-давности, и все же, чего делать? В дереве, других версий нету zlib, ставить бинарники, скачанные откуда нибудь? подскажите пожалуйстО))))
(какая все таки вредная эта библиотека.....)
я думаю...значит я жив...
Спасибо сказали:
Аватара пользователя
/dev/random
Администратор
Сообщения: 5405
ОС: Gentoo

Re: Решено: Не собирается dev-db/mysql

Сообщение /dev/random »

Присутствует ли в /usr/include/zconf.h объявление макроса _Z_OF?
Присутствует ли оно в выводе команды gcc -dD -E /usr/include/minizip/unzip.h?
Нет ли файла с именем zconf.h где-нибудь, кроме /usr/include/zconf.h?
Спасибо сказали:
Аватара пользователя
CarelessAngel
Сообщения: 56
ОС: Gentoo linux amd64\~amd64

Re: Решено: Не собирается dev-db/mysql

Сообщение CarelessAngel »

Код:

cat /usr/include/zconf.h | grep Z_OF #ifndef _Z_OF /* function prototypes */ # define _Z_OF(args) args # define _Z_OF(args) ()

Код:

gcc -dD -E /usr/include/minizip/unzip.h | grep Z_OF typedef voidpf ( *open_file_func) _Z_OF((voidpf opaque, const char* filename, int mode)); typedef uLong ( *read_file_func) _Z_OF((voidpf opaque, voidpf stream, void* buf, uLong size)); typedef uLong ( *write_file_func) _Z_OF((voidpf opaque, voidpf stream, const void* buf, uLong size)); typedef int ( *close_file_func) _Z_OF((voidpf opaque, voidpf stream)); typedef int ( *testerror_file_func) _Z_OF((voidpf opaque, voidpf stream)); typedef long ( *tell_file_func) _Z_OF((voidpf opaque, voidpf stream)); typedef long ( *seek_file_func) _Z_OF((voidpf opaque, voidpf stream, uLong offset, int origin)); typedef ZPOS64_T ( *tell64_file_func) _Z_OF((voidpf opaque, voidpf stream)); typedef long ( *seek64_file_func) _Z_OF((voidpf opaque, voidpf stream, ZPOS64_T offset, int origin)); typedef voidpf ( *open64_file_func) _Z_OF((voidpf opaque, const void* filename, int mode)); void fill_fopen64_filefunc _Z_OF((zlib_filefunc64_def* pzlib_filefunc_def)); void fill_fopen_filefunc _Z_OF((zlib_filefunc_def* pzlib_filefunc_def)); voidpf call_zopen64 _Z_OF((const zlib_filefunc64_32_def* pfilefunc,const void*filename,int mode)); long call_zseek64 _Z_OF((const zlib_filefunc64_32_def* pfilefunc,voidpf filestream, ZPOS64_T offset, int origin)); ZPOS64_T call_ztell64 _Z_OF((const zlib_filefunc64_32_def* pfilefunc,voidpf filestream)); extern int unzStringFileNameCompare _Z_OF ((const char* fileName1, extern unzFile unzOpen _Z_OF((const char *path)); extern unzFile unzOpen64 _Z_OF((const void *path)); extern unzFile unzOpen2 _Z_OF((const char *path, extern unzFile unzOpen2_64 _Z_OF((const void *path, extern int unzClose _Z_OF((unzFile file)); extern int unzGetGlobalInfo _Z_OF((unzFile file, extern int unzGetGlobalInfo64 _Z_OF((unzFile file, extern int unzGetGlobalComment _Z_OF((unzFile file, extern int unzGoToFirstFile _Z_OF((unzFile file)); extern int unzGoToNextFile _Z_OF((unzFile file)); extern int unzLocateFile _Z_OF((unzFile file, extern int unzGetCurrentFileInfo64 _Z_OF((unzFile file, extern int unzGetCurrentFileInfo _Z_OF((unzFile file, extern ZPOS64_T unzGetCurrentFileZStreamPos64 _Z_OF((unzFile file)); extern int unzOpenCurrentFile _Z_OF((unzFile file)); extern int unzOpenCurrentFilePassword _Z_OF((unzFile file, extern int unzOpenCurrentFile2 _Z_OF((unzFile file, extern int unzOpenCurrentFile3 _Z_OF((unzFile file, extern int unzCloseCurrentFile _Z_OF((unzFile file)); extern int unzReadCurrentFile _Z_OF((unzFile file, extern off_t unztell _Z_OF((unzFile file)); extern ZPOS64_T unztell64 _Z_OF((unzFile file)); extern int unzeof _Z_OF((unzFile file)); extern int unzGetLocalExtrafield _Z_OF((unzFile file,

Код:

locate unzip.h /usr/include/hunspell/hunzip.hxx /usr/include/minizip/unzip.h

Код:

locate zconf.h /usr/include/zconf.h /usr/lib64/klibc/include/zconf.h


UPD.Запустил updatedb и сразу:

Код:

locate zconf.h /usr/include/zconf.h /usr/lib64/klibc/include/zconf.h /usr/local/include/zconf.h /usr/src/linux-4.2.1-gentoo/include/linux/zconf.h /usr/src/linux-4.2.1-gentoo/scripts/kconfig/zconf.hash.c /usr/src/linux-4.2.1-gentoo/scripts/kconfig/zconf.hash.c_shipped /usr/src/linux-4.3.0-gentoo/include/linux/zconf.h /usr/src/linux-4.3.0-gentoo/scripts/kconfig/zconf.hash.c /usr/src/linux-4.3.0-gentoo/scripts/kconfig/zconf.hash.c_shipped /usr/src/linux-4.3.2-gentoo/include/linux/zconf.h /usr/src/linux-4.3.2-gentoo/scripts/kconfig/zconf.hash.c_shipped

Я так понимаю /usr/local/include/zconf.h приоритетнее первого? и он тут левый..... ща проверим....
UPD2. ОНО ЗАВЕЛОСЬ!!!!!И ПОЛЕТЕЛО!!!!! Спасибо /dev/random!!!!
(говорила мне мама-не ставь чужие бинарники, тем более если они и проприетарные......
я думаю...значит я жив...
Спасибо сказали: