Comments (5)
I confirm we have the same problem in Debian Sid.
Original comment by [email protected]
on 7 Jul 2012 at 10:46
from stardict-3.
Subject: Fixed compilation with zlib 1.2.6
--- a/src/libcommon.h
+++ b/src/libcommon.h
@@ -191,7 +191,7 @@
}
namespace zip {
-typedef ResourceWrapper<void, void*, int, gzclose> gzFile;
+ typedef ResourceWrapper<struct gzFile_s, struct gzFile_s *, int, gzclose>
gzFileWrapper;
}
--- a/src/libcommon.cpp
+++ b/src/libcommon.cpp
@@ -190,7 +190,7 @@
int unpack_zlib(const char* arch_file_name, const char* out_file_name, print_info_t print_info)
{
- zip::gzFile in(gzopen(arch_file_name, "rb"));
+ zip::gzFileWrapper in(gzopen(arch_file_name, "rb"));
if(!in) {
print_info("Unable to open archive file %s\n", arch_file_name);
return EXIT_FAILURE;
Original comment by [email protected]
on 20 Jul 2012 at 9:15
Attachments:
from stardict-3.
I downloaded the current version of StarDict in Mercurial and am still seeing
this compilation problem in Debian 64bit Testing. Are the changes by zhouwei to
libcommon.cpp and libcommon.h included in Mercurial?
Here is what I see:
root@debamos:~/stardict-3# make
Making all in lib
make[1]: Entering directory `/root/stardict-3/lib'
make all-recursive
make[2]: Entering directory `/root/stardict-3/lib'
Making all in src
make[3]: Entering directory `/root/stardict-3/lib/src'
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I..
-Wall -pthread -I/usr/include/gtk-2.0
-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/cairo
-I/usr/include/libxml2 -I.. -I.. -g -O2 -MT libcommon.lo -MD -MP -MF
.deps/libcommon.Tpo -c -o libcommon.lo libcommon.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -Wall -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/cairo
-I/usr/include/libxml2 -I.. -I.. -g -O2 -MT libcommon.lo -MD -MP -MF
.deps/libcommon.Tpo -c libcommon.cpp -fPIC -DPIC -o .libs/libcommon.o
In file included from libcommon.cpp:30:0:
libcommon.h:191:50: error: could not convert template argument 'gzclose' to
'int (*)(void*)'
libcommon.h:191:58: error: invalid type in declaration before ';' token
libcommon.cpp: In function 'int unpack_zlib(const char*, const char*)':
libcommon.cpp:602:45: error: invalid conversion from 'gzFile' to 'zip::gzFile
{aka int}' [-fpermissive]
libcommon.cpp:617:27: error: 'get_impl' was not declared in this scope
libcommon.cpp:617:27: note: suggested alternative:
libcommon.h:148:19: note: 'get_impl'
make[3]: *** [libcommon.lo] Error 1
make[3]: Leaving directory `/root/stardict-3/lib/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/stardict-3/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/stardict-3/lib'
make: *** [all-recursive] Error 1
Original comment by [email protected]
on 6 Nov 2012 at 4:54
from stardict-3.
Try use `abs` instead, I've submitted the patches to the Arch repository for a
while
Original comment by [email protected]
on 6 Nov 2012 at 11:46
from stardict-3.
Fixed. Patch merged!
Original comment by [email protected]
on 17 Apr 2013 at 3:13
- Changed state: Fixed
from stardict-3.
Related Issues (20)
- stardict 3.0.4 still can not scan words in win7 64 bit
- Update Russian translation HOT 1
- Move to GitHub HOT 1
- Stardict for iOS
- Opening in MacOSX shows only blocks (no text anywhere) HOT 8
- In offline mode send all data to ditc.cn HOT 1
- error: variable length array of non-POD element type 'std::vector<gchar *>' HOT 1
- Undefined symbols _g_module_close, _g_module_open, _g_module_symbol HOT 1
- Look up differs in pop-up and main windows HOT 1
- Festival plugin missing from Debian package HOT 1
- please try youdao-dict-for-ubuntu HOT 2
- Unicode phonetic symbols not processed
- Error, sametypesequence must be a single lower case letter, preferably 'm' HOT 1
- Hotkey for the translation of the selected words(issue 50 dublicate) HOT 2
- [patch] stardict 3.x is not compatible with zlib 1.2.5.2 and/or higher HOT 1
- 3.0.4 has missing linking to 'gmodule-2.0' for g_module_open HOT 2
- Please create an AppData file for StarDict HOT 2
- Fwd: [abrt] stardict: g_realloc(): stardict killed by SIGTRAP
- scan breaks selection on apostrophe HOT 3
- No uninstall for OsX HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stardict-3.