Giter VIP home page Giter VIP logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Fixed. Patch merged!

Original comment by [email protected] on 17 Apr 2013 at 3:13

  • Changed state: Fixed

from stardict-3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.