zhuravskiy / wl500g

Automatically exported from code.google.com/p/wl500g
0 stars 0 forks source link

lzma zlib compilation failure #332

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Сборка прошивки фейлится на стадии make install:
make -C /home/mva/wl500g/build/broadcom/src/lzma4xx/CPP/7zip/Compress/LZMA_Lib 
CC=gcc CXX=g++
make[1]: Entering directory 
`/home/mva/wl500g/build/broadcom/src/lzma4xx/CPP/7zip/Compress/LZMA_Lib'
g++ -c -O3 -Wall ZLib.cpp
ZLib.cpp:185:31: error: expected initializer before ‘OF’
make[1]: *** [ZLib.o] Error 1
make[1]: Leaving directory 
`/home/mva/wl500g/build/broadcom/src/lzma4xx/CPP/7zip/Compress/LZMA_Lib'
make: *** [mksquashfs] Ошибка 2

Согласно гуглу, помогает открыть Zlib.cpp и 
убрать оттуда обёртку OF() вокруг параметров 
функции на строках 185-187 и 262-263.
Закоммитьте кто-нибудь патч, пожалуйста? :) 
А то theMIROn не отвчает ни в ирце, ни в джаббере 
:(

Original issue reported on code.google.com by mva.name on 22 Jun 2012 at 12:33

GoogleCodeExporter commented 8 years ago
послал патч theMIROn'у. Обещал влить в транк. 
Ждём :)

Original comment by mva.name on 22 Jun 2012 at 4:01

GoogleCodeExporter commented 8 years ago
First of all, you must provide host gcc version, you are used.

Second, you must provide zlib(zlib-devel) package version on your host. zlib 
1.2 provide & uses OF() macro.

Original comment by lly.dev on 22 Jun 2012 at 6:08

GoogleCodeExporter commented 8 years ago
OF() macro should be in zconf.h, if zlib is replaced with something else/broken 
- it's safe to have own copy if it
fixed with r4398

Original comment by themiron.ru on 23 Jun 2012 at 7:42