LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-17-2007, 05:26 PM   #16
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30

yes:
Quote:
../index/csguess.cpp:82: error: invalid conversion from `const char**' to `char**
could it be that you use gcc 4 ?

if you don't have experience with c++, you best wait until the authors release a version that compiles cleanly.
 
Old 05-17-2007, 06:10 PM   #17
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Rep: Reputation: 43
Quote:
Originally Posted by erklaerbaer
yes:

could it be that you use gcc 4 ?
No, 3.4.6.
Quote:
Originally Posted by erklaerbaer
if you don't have experience with c++, you best wait until the authors release a version that compiles cleanly.
No experience whatsoever...
 
Old 05-17-2007, 06:49 PM   #18
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Try changing line 80 from:
Code:
(char **)&rp,
to:
Code:
(const char **)&rp,
It might just work ... dunno if this will introduce a bug tho.

Last edited by H_TeXMeX_H; 05-17-2007 at 06:50 PM.
 
Old 05-18-2007, 03:10 AM   #19
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
Quote:
Originally Posted by adriv
I installed antiword, unrtf and xapian, but recoll won't compile.
Running MAKE gives this:
Code:
bash-3.2$ make
cd lib; make
make[1]: Entering directory `/home/adri/Desktop/recoll-1.8.1/lib'
g++ -g -O2 -Wall -Wno-unused  -I. -I../aspell -I../bincimapmime -I../common -I../index -I../internfile -I../rcldb -I../unac -I../utils -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -DRECOLL_DATADIR=\"/usr/local/share/recoll\" -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -D_GNU_SOURCE -DPUTENV_ARG_NOT_CONST -DHAVE_VASPRINTF=1 -DHAVE_MKDTEMP=1 -c ../index/csguess.cpp
../index/csguess.cpp: In function `int transcodeErrCnt(const char*, int, const char*, const char*)':
../index/csguess.cpp:82: error: invalid conversion from `const char**' to `char**'
../index/csguess.cpp:82: error:   initializing argument 2 of `size_t libiconv(void*, char**, size_t*, char**, size_t*)'
make[1]: *** [csguess.o] Error 1
make[1]: Leaving directory `/home/adri/Desktop/recoll-1.8.1/lib'
make: *** [all] Error 2
bash-3.2$
Anyone an idea what's wrong?
Sorry to hear that. It compiles clean as a whistle here with the three apps mentioned and I hope that it's not an additional dependency I incidently met. I would check the configure output -- are there warnings, where are "no"s as result found ...

Only difference: I installed all four apps to /usr instead of /usr/local like you seem you did. Had to change the Makefile for antiword (changed line to "GLOBAL_INSTALL_DIR = /usr/bin" where /usr/local/bin was hardcoded) and configured the others with --prefix=/usr. But honestly I don't know if that makes a big difference.

EDIT: This program has by far the shortest configure output I've seen. If you want to compare ... aspell and xapian-config are the only ones that seem to be checked here:

Code:
configure: WARNING: you should use --build, --host, --target
checking for aspell... /usr/bin/aspell
withAspell = yes
configure: inotify monitoring disabled
checking for i486-slackware-linux-gcc... i486-slackware-linux-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 i486-slackware-linux-gcc accepts -g... yes
checking for i486-slackware-linux-gcc option to accept ANSI C... none needed
checking for iconv_open in -liconv... no
checking for iconv_open in -liconv... no
checking for iconv_open in -lc... yes
checking for xapian-config... /usr/bin/xapian-config
configure: rcl_cv_qt4 no
checking for qmake... /usr/lib/qt/bin/qmake
checking how to run the C preprocessor... i486-slackware-linux-gcc -E
checking for X... libraries /usr/X11/lib, headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
configure: creating ./config.status
config.status: creating mk/localdefs
config.status: creating recollinstall
config.status: creating Makefile
config.status: creating sampleconf/recoll.conf
config.status: creating qtgui/recoll.pro
config.status: creating common/autoconfig.h

Last edited by titopoquito; 05-18-2007 at 03:14 AM.
 
Old 05-18-2007, 06:18 AM   #20
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Rep: Reputation: 43
OK, so here's the output from ./configure:
Code:
checking for aspell... /usr/bin/aspell
withAspell = yes
configure: inotify monitoring disabled
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 iconv_open in -liconv... yes
checking for xapian-config... /usr/local/bin/xapian-config
configure: rcl_cv_qt4 no
checking for qmake... /usr/lib/qt/bin/qmake
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
configure: creating ./config.status
config.status: creating mk/localdefs
config.status: creating recollinstall
config.status: creating Makefile
config.status: creating sampleconf/recoll.conf
config.status: creating qtgui/recoll.pro
config.status: creating common/autoconfig.h
config.status: common/autoconfig.h is unchanged
I don't see anything strange in it.
Quote:
Originally Posted by H_TeXMeX_H
Try changing line 80 from:

Code:
(char **)&rp,
to:
Code:
(const char **)&rp,

It might just work ... dunno if this will introduce a bug tho.
You mean of the makefile?
Don't see those lines there anywhere, except for lines 22-24:
Code:
common/rclversion.h: VERSION
	echo 'static const char *rclversion = "'`cat VERSION`'";' \
	   > common/rclversion.h
 
Old 05-18-2007, 06:35 AM   #21
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
Quote:
Originally Posted by adriv
OK, so here's the output from ./configure:
Code:
checking for aspell... /usr/bin/aspell
withAspell = yes
configure: inotify monitoring disabled
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 iconv_open in -liconv... yes
checking for xapian-config... /usr/local/bin/xapian-config
configure: rcl_cv_qt4 no
checking for qmake... /usr/lib/qt/bin/qmake
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
configure: creating ./config.status
config.status: creating mk/localdefs
config.status: creating recollinstall
config.status: creating Makefile
config.status: creating sampleconf/recoll.conf
config.status: creating qtgui/recoll.pro
config.status: creating common/autoconfig.h
config.status: common/autoconfig.h is unchanged
I don't see anything strange in it.
I don't see anything too, looks basically the same

Quote:
You mean of the makefile?
No, H_TeXMeX_H meant the file index/csguess.cpp.
 
Old 05-18-2007, 07:50 AM   #22
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Rep: Reputation: 43
Thanks, but I'm afraid it doesn't help much:
Code:
bash-3.2$ make
cd lib; make
make[1]: Entering directory `/home/adri/Desktop/recoll-1.8.1/lib'
g++ -M -g -O2 -Wall -Wno-unused  -I. -I../aspell -I../bincimapmime -I../common -I../index -I../internfile -I../rcldb -I../unac -I../utils -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -DRECOLL_DATADIR=\"/usr/local/share/recoll\" -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -D_GNU_SOURCE -DPUTENV_ARG_NOT_CONST -DHAVE_VASPRINTF=1 -DHAVE_MKDTEMP=1 ../index/csguess.cpp > csguess.dep
touch csguess.dep.stamp
g++ -g -O2 -Wall -Wno-unused  -I. -I../aspell -I../bincimapmime -I../common -I../index -I../internfile -I../rcldb -I../unac -I../utils -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -DRECOLL_DATADIR=\"/usr/local/share/recoll\" -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -D_GNU_SOURCE -DPUTENV_ARG_NOT_CONST -DHAVE_VASPRINTF=1 -DHAVE_MKDTEMP=1 -c ../index/csguess.cpp
../index/csguess.cpp: In function `int transcodeErrCnt(const char*, int, const char*, const char*)':
../index/csguess.cpp:82: error: invalid conversion from `const char**' to `char**'
../index/csguess.cpp:82: error:   initializing argument 2 of `size_t libiconv(void*, char**, size_t*, char**, size_t*)'
make[1]: *** [csguess.o] Error 1
make[1]: Leaving directory `/home/adri/Desktop/recoll-1.8.1/lib'
make: *** [all] Error 2
bash-3.2$
Like I said, I don't know anything about coding, so completely stuck...
 
Old 05-18-2007, 08:07 AM   #23
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
It's not a real solution to the error you get, but I could send you my Slackbuild scripts I used or even the packages of all four via email. Don't know how to solve the error other way ...
 
Old 05-18-2007, 08:11 AM   #24
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Titopoquito, you could send them at linuxpackages so others could use them too.
 
Old 05-18-2007, 08:15 AM   #25
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
Generally a good (or very good) idea. The problem is I don't have the time now to clean them up from highly idiosyncratic stuff and get them tidy so that they would get accepted at linuxpackages.net or slackbuild.org. Maybe next week, but definitely not this weekend And I guess it would take some more time for them to be reviewed and accepted.
 
Old 05-18-2007, 10:25 AM   #26
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I am interested in recoll myself, so the review time at SlackBuilds.org would be fairly short :-) In fact I was already prepared to build the packages for my own repository (http://www.slackware.com/~alien/slackbuilds/) but to have your SlackBuilds on SBo is a good addition.

Eric
 
Old 05-18-2007, 11:50 AM   #27
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 306

Rep: Reputation: 47
Quote:
Originally Posted by titopoquito
It's not a real solution to the error you get, but I could send you my Slackbuild scripts I used or even the packages of all four via email. Don't know how to solve the error other way ...
I also got the same error on compiling. would you please do me a favor to send the package and slackbuild to my email address? My Email: kitelau at gmail dot com

Thanks.
 
Old 05-18-2007, 11:56 AM   #28
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
If it absolutely won't compile, you could try 'rpm2tgz' then 'installpkg' on an rpm build of it.
 
Old 05-18-2007, 01:13 PM   #29
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
Ok, I will try to prepare the scripts for submission on slackbuild.org, so that others could get them if they want. kite, I will send you the packages, then maybe in some days the build scripts will be available anyway ...
 
Old 05-18-2007, 03:30 PM   #30
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Rep: Reputation: 43
Quote:
Originally Posted by H_TeXMeX_H
If it absolutely won't compile, you could try 'rpm2tgz' then 'installpkg' on an rpm build of it.
Why didn't I think of that?

But, a little later... no such luck.
I tried src2pkg as well and that didn't work either.
Quote:
Originally Posted by titopoquito
It's not a real solution to the error you get, but I could send you my Slackbuild scripts I used or even the packages of all four via email. Don't know how to solve the error other way ...
Thanks!
I'll wait for the script at SlackBuilds.org, there's no hurry. And I have just a hunch that it won't last very long before we see it there.

By the way: I tried Kat, but that's horrible. Eats up all your memory and Slack is sloooooooooooooooooooooow with Kat on the background (not to mention the two crashes of Kat).
So I got rid of it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Desktop search-Will slocate work? greauxe Linux - Software 9 11-03-2005 09:50 PM
using google to search LQ dr_zayus69 Linux - General 1 03-23-2005 08:23 AM
Looking for a Google Desktop Search for linux Boffy Linux - Software 1 02-25-2005 04:52 PM
Google search on CD Zuggy General 1 12-17-2004 09:55 AM
Try this Google search the_imax General 11 12-12-2004 04:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration