LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-04-2010, 12:34 AM   #1
verthex
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Rep: Reputation: 0
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
 
Old 01-04-2010, 12:58 AM   #2
verthex
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
addendum:

I did find this but I'm not sure what directory it goes into

http://www.cdc.informatik.tu-darmsta...st/001228.html
 
Old 01-04-2010, 01:37 AM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
Old 01-04-2010, 03:06 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 .
 
Old 01-04-2010, 03:17 AM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by knudfl View Post
The OP is double posting .. 2 x 'lidia' ..
http://www.linuxquestions.org/questi...9/#post3813240
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 View Post
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.
Old 01-04-2010, 05:42 PM   #6
verthex
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
  


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
[SOLVED] trying to install lidia-2.2.0 and I'm getting a configure error verthex Linux - Newbie 8 01-04-2010 01:59 AM
installation errors with git during 'make' and 'make install' etheria Linux - Newbie 5 11-27-2009 11:38 AM
libogg not installing, make and make install don't give errors, but fail lilmike Linux - Newbie 6 11-14-2009 07:33 PM
'Make install' errors lazwaz Red Hat 2 05-21-2005 05:03 PM
Chap 5 Binutils make LDFLAGS & make install errors shotokan Linux From Scratch 5 04-10-2005 03:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:58 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