Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-04-2010, 12:34 AM
|
#1
|
LQ Newbie
Registered: Jan 2010
Posts: 7
Rep:
|
make errors trying to install lidia 2.2.0
Hello
I'm trying to compile lidia 2.2.0 and I'm getting this error.
I also ran make check afterwards to get more info.
[root@localhost lidia-2.2.0]# make
cd library && make all
make[1]: Entering directory `/home/c/Desktop/lidia-2.2.0/library'
Making all in base
make[2]: Entering directory `/home/c/Desktop/lidia-2.2.0/library/base'
if g++ -DHAVE_CONFIG_H -I../../include -I../../src/base/include -I./../../src/base/include -O2 -MT bytes_to_int_flag_generator.o -MD -MP -MF ".deps/bytes_to_int_flag_generator.Tpo" -c -o bytes_to_int_flag_generator.o `test -f '../../src/portability/bytes_to_int_flag_generator.cc' || echo './'`../../src/portability/bytes_to_int_flag_generator.cc; \
then mv -f ".deps/bytes_to_int_flag_generator.Tpo" ".deps/bytes_to_int_flag_generator.Po"; else rm -f ".deps/bytes_to_int_flag_generator.Tpo"; exit 1; fi
/bin/sh ../../libtool --tag=CXX --mode=link g++ -O2 -o bytes_to_int_flag_generator bytes_to_int_flag_generator.o
mkdir .libs
g++ -O2 -o bytes_to_int_flag_generator bytes_to_int_flag_generator.o
./bytes_to_int_flag_generator > ../../include/bytes_to_int_flag.h
make all-am
make[3]: Entering directory `/home/c/Desktop/lidia-2.2.0/library/base'
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../include -I../../src/base/include -I./../../src/base/include -O2 -MT sf_check_gcd.lo -MD -MP -MF ".deps/sf_check_gcd.Tpo" -c -o sf_check_gcd.lo `test -f '../../src/base/factorization/bigint/sf_check_gcd.cc' || echo './'`../../src/base/factorization/bigint/sf_check_gcd.cc; \
then mv -f ".deps/sf_check_gcd.Tpo" ".deps/sf_check_gcd.Plo"; else rm -f ".deps/sf_check_gcd.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I../../include -I../../src/base/include -I./../../src/base/include -O2 -MT sf_check_gcd.lo -MD -MP -MF .deps/sf_check_gcd.Tpo -c ../../src/base/factorization/bigint/sf_check_gcd.cc -o sf_check_gcd.o
In file included from ../../src/base/factorization/bigint/sf_check_gcd.cc:24:
../../src/base/include/LiDIA/bigmod.h:62: error: declaration of 'static LiDIA::residue_class<LiDIA::bigint>* LiDIA::bigmod::residue_class()'
../../src/base/include/LiDIA/base/residue_class_list.h:39: error: changes meaning of 'residue_class' from 'class LiDIA::residue_class<LiDIA::bigint>'
make[3]: *** [sf_check_gcd.lo] Error 1
make[3]: Leaving directory `/home/c/Desktop/lidia-2.2.0/library/base'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/c/Desktop/lidia-2.2.0/library/base'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/c/Desktop/lidia-2.2.0/library'
make: *** [all-subdirs] Error 2
this is the make check error
[root@localhost lidia-2.2.0]# make check
cd library && make check # updates the lib
make[1]: Entering directory `/home/c/Desktop/lidia-2.2.0/library'
Making check in base
make[2]: Entering directory `/home/c/Desktop/lidia-2.2.0/library/base'
make check-am
make[3]: Entering directory `/home/c/Desktop/lidia-2.2.0/library/base'
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../include -I../../src/base/include -I./../../src/base/include -O2 -MT sf_check_gcd.lo -MD -MP -MF ".deps/sf_check_gcd.Tpo" -c -o sf_check_gcd.lo `test -f '../../src/base/factorization/bigint/sf_check_gcd.cc' || echo './'`../../src/base/factorization/bigint/sf_check_gcd.cc; \
then mv -f ".deps/sf_check_gcd.Tpo" ".deps/sf_check_gcd.Plo"; else rm -f ".deps/sf_check_gcd.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I../../include -I../../src/base/include -I./../../src/base/include -O2 -MT sf_check_gcd.lo -MD -MP -MF .deps/sf_check_gcd.Tpo -c ../../src/base/factorization/bigint/sf_check_gcd.cc -o sf_check_gcd.o
In file included from ../../src/base/factorization/bigint/sf_check_gcd.cc:24:
../../src/base/include/LiDIA/bigmod.h:62: error: declaration of 'static LiDIA::residue_class<LiDIA::bigint>* LiDIA::bigmod::residue_class()'
../../src/base/include/LiDIA/base/residue_class_list.h:39: error: changes meaning of 'residue_class' from 'class LiDIA::residue_class<LiDIA::bigint>'
make[3]: *** [sf_check_gcd.lo] Error 1
make[3]: Leaving directory `/home/c/Desktop/lidia-2.2.0/library/base'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/home/c/Desktop/lidia-2.2.0/library/base'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/c/Desktop/lidia-2.2.0/library'
make: *** [check-subdirs] Error 2
|
|
|
01-04-2010, 01:37 AM
|
#3
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
I had a quick look. Here is what I did:
Code:
mkdir foo
cd foo
wget http://www.cdc.informatik.tu-darmstadt.de/TI/LiDIA/ftp/LiDIA/current/lidia-2.2.0.tar.gz
wget http://www.cdc.informatik.tu-darmstadt.de/pipermail/lidia/attachments/20080806/a1b6daac/attachment.bin
mv attachment.bin lidia2.2.0-gcc4.3.patch.gz
gunzip lidia2.2.0-gcc4.3.patch.gz
tar xzf lidia-2.2.0.tar.gz
cd lidia-2.2.0
patch -p2 < ../lidia2.2.0-gcc4.3.patch
./configure
make
It is currently compiling with g++ 4.4.2 ...
Cheers,
Evo2.
PS. I did all the above in my normal user account. You should too.
Last edited by evo2; 01-04-2010 at 01:42 AM.
Reason: PS.
|
|
1 members found this post helpful.
|
01-04-2010, 03:06 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
The OP is double posting .. 2 x 'lidia' ..
http://www.linuxquestions.org/questi...9/#post3813240
Apparently the lidia-2.2.0-gcc-4.4.0.diff patch works too,
at least with gcc-4.4.1 .
|
|
|
01-04-2010, 03:17 AM
|
#5
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Quote:
Originally Posted by knudfl
|
The OPs other thread was about configure errors. Once he got the required libs sorted, he started a new thread here about the g++ 4.x problems.
verthex: Can you please mark your other thread as "solved".
Quote:
Originally Posted by knudfl
Apparently the lidia-2.2.0-gcc-4.4.0.diff patch works too,
at least with gcc-4.4.1 .
|
Ohh, probably better to use the newer patch that you found.
Cheers,
Evo2.
|
|
1 members found this post helpful.
|
01-04-2010, 05:42 PM
|
#6
|
LQ Newbie
Registered: Jan 2010
Posts: 7
Original Poster
Rep:
|
Quote:
Can you please mark your other thread as "solved".
|
wheres the button for it?
oops, nevermind found it.
Last edited by verthex; 01-04-2010 at 05:44 PM.
|
|
|
All times are GMT -5. The time now is 08:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|