You are not logged in.

#1 2011-09-26 02:57:22

wanghonglou82
Member
Registered: 2011-09-26
Posts: 7

[SOLVED]compiling problem about sdcv

hi.I get archlinux(Current Release: 2011.08.19) installed recently.It's so simple and cute to my taste.
And i now get a problem about compiling sdcv installation here.Would anyone help?

And next is the output of the compiling installation process.
-------------------------------------------------------------------------------------------

Next the sdcv directory list

$ls ./sdcv-0.4.2
-----------------------
ABOUT-NLS
aclocal.m4
AUTHORS
BUGS
ChangeLog
config.guess
config.h
config.h.in
config.log
config.rpath
config.status
config.sub
configure
configure.ac
COPYING
depcomp
doc
INSTALL
install-sh
m4
Makefile
Makefile.am
Makefile.in
missing
mkinstalldirs
NEWS
po
README
src
stamp-h1
tests
TODO

--------------------------------
Next the ./configure command output
--------------------------------

./configure
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... yes
checking for GNU gettext in libintl... no
checking whether to use NLS... no
checking for iconv... (cached) yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for zlibVersion in -lz... yes
checking whether readline via "-lreadline" is present and sane... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SDCV... yes
checking for LIB_STARDICT... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating m4/Makefile
config.status: creating src/lib/Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating doc/uk/Makefile
config.status: creating po/Makefile.in
config.status: creating tests/Makefile
config.status: creating tests/stardict-test_dict-2.4.2/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile


Type "make" to compile.

---------------------------------
Next is "make" command outputs
---------------------------------

make
lib.cpp: In member function 鈥榗onst gchar* offset_index::read_first_on_page_key(glong)鈥?
lib.cpp:516:64: error: no matching function for call to 鈥榤in(long unsigned int, guint32&)鈥?
lib.cpp:516:64: note: candidates are:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../include/c++/4.6.1/bits/stl_algobase.h:187:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../include/c++/4.6.1/bits/stl_algobase.h:233:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
make[3]: *** [lib.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
_0.4.2/src/lib'
make[2]: Leaving directory `/home/me/data/tmp/sdcv_0.4.2/src'
make[1]: Leaving directory `/home/me/data/tmp/sdcv_0.4.2'

---------------------------
And this is my env setting--->
---------------------------

$env
XDG_DATA_HOME=/home/me/.local/share
SHELL=/bin/bash
TERM=linux
HUSHLOGIN=FALSE
OLDPWD=/home/me/data/tmp
USER=me
XDG_CONFIG_DIRS=/etc/xdg
MAIL=/var/spool/mail/me
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl
PWD=/home/me/data/tmp/sdcv_0.4.2
LANG=en_US.UTF-8
SHLVL=1
HOME=/home/me
XDG_CONFIG_HOME=/home/me/.config
XDG_CACHE_HOME=/home/me/.cache
LOGNAME=me
XDG_DATA_DIRS=/usr/share/:/usr/local/share/
G_BROKEN_FILENAMES=1
_=/usr/bin/env

Last edited by wanghonglou82 (2011-09-27 05:54:40)

Offline

#2 2011-09-26 03:07:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]compiling problem about sdcv

wanghonglou82, please edit your post.
When pasting code, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and more convenient to scroll through.



Are you using makepkg to compile https://aur.archlinux.org/packages.php?ID=14934 ? It works for me.
You shouldn't be compiling by hand as it goes against managing your packages with pacman.

You're probably missing

sed -i 's|guint32 page_size|guint64 page_size|' src/lib/lib.cpp

included in the PKGBUILD https://aur.archlinux.org/packages/sd/sdcv/PKGBUILD

Please read https://wiki.archlinux.org/index.php/Ar … Repository before trying to install anything from AUR.

Last edited by karol (2011-09-26 03:13:45)

Offline

#3 2011-09-26 04:32:12

wanghonglou82
Member
Registered: 2011-09-26
Posts: 7

Re: [SOLVED]compiling problem about sdcv

karol wrote:

wanghonglou82, please edit your post.
When pasting code, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and more convenient to scroll through.



Are you using makepkg to compile https://aur.archlinux.org/packages.php?ID=14934 ? It works for me.
You shouldn't be compiling by hand as it goes against managing your packages with pacman.

You're probably missing

sed -i 's|guint32 page_size|guint64 page_size|' src/lib/lib.cpp

included in the PKGBUILD https://aur.archlinux.org/packages/sd/sdcv/PKGBUILD

Please read https://wiki.archlinux.org/index.php/Ar … Repository before trying to install anything from AUR.

I'm sorry for not being familliar with the posting rules.
And thank you.
I'll try.Hope it will be done.And I'll come back to mark this problem "solved".

Offline

Board footer

Powered by FluxBB