I can explain Robert's error. When I adapted the code so as to compile with gcc4,2, one function whose signature changed is initprimes() since gcc4,2 complained about char* parameters. This was changed in the (new) cremona* package, but has not been changed in the (old) mwrank* package, which shares a lot of the same code. It looks as though one version of initprimes has been found by the compiler but not by the linker.
This will all go away when mwrank* is replaced by cremona* -- as it should be since (1) all the code in mwrank* is also in cremona*, and (2) I am no longer supporting mwrank* ! John On 05/12/2007, Robert Miller <[EMAIL PROTECTED]> wrote: > > Probably too late, but maybe this will help. > > On thing I did that may have caused this is change branches on one > terminal while doing a maketest in another window. > > I haven't moved sage root since install, so I don't know how relevant > #1358 is. > > 1. Tried to install cremona, ran into the same problem: > > g++ -o ./tcurve tcurve_n.o curve_n.o curvedata_n.o curvered_n.o > curvemod_n.o pointsmod_n.o ffmod_n.o -lpari -L/Volumes/HOME/sage/ > local/lib -ljcntl -L../lib -L/Volumes/HOME/sage/local/lib -lntl -L../ > lib -lgmp -lpari -ljcntl -lm > Undefined symbols: > "initprimes(char*, int)", referenced from: > _main in tcurve_n.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > make[1]: *** [tcurve] Error 1 > make: *** [all] Error 2 > Error building cremona > > real 1m55.506s > user 1m36.765s > sys 0m9.635s > sage: An error occurred while installing cremona-20071116 > > 2. Forced rebuild of gmp: > > real 4m3.257s > user 1m14.718s > sys 2m53.891s > Successfully installed gmp-4.2.1.p12 > > 3. Forced rebuild of ntl: > > real 5m39.132s > user 5m6.040s > sys 0m17.611s > Successfully installed ntl-5.4.1.p7 > > 4. Forced rebuild of cremona, ran into the same problem: > > g++ -o ./tcurve tcurve_n.o curve_n.o curvedata_n.o curvered_n.o > curvemod_n.o pointsmod_n.o ffmod_n.o -lpari -L/Volumes/HOME/sage/ > local/lib -ljcntl -L../lib -L/Volumes/HOME/sage/local/lib -lntl -L../ > lib -lgmp -lpari -ljcntl -lm > Undefined symbols: > "initprimes(char*, int)", referenced from: > _main in tcurve_n.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > make[1]: *** [tcurve] Error 1 > make: *** [all] Error 2 > Error building cremona > > real 2m4.148s > user 1m36.826s > sys 0m9.547s > sage: An error occurred while installing cremona-20071116 > > > On Dec 4, 11:43 am, mabshoff <[EMAIL PROTECTED] > dortmund.de> wrote: > > On Dec 4, 8:30 pm, Robert Miller <[EMAIL PROTECTED]> wrote:> I don't know > > if this is specific to my current install, but I thought > > > it could be useful to someone. Also, I'm not noticing any problems > > > resulting from this. During upgrade from 2.8.14 on Intel OS X 10.5.1: > > > > > g++ -fPIC -shared -o libntl.so FFT.o FacVec.o GF2.o GF2E.o GF2EX.o > > > > ^^^^^^^^^^^^^^^ > > > > Arrg, these flags are wrong. I hate it when you figure out the problem > > right after one hits send. Let me check the spkg-install, maybe I can > > come up with something. > > > > Cheers, > > > > Michael > > > > > GF2EXFactoring.o GF2X.o GF2X1.o GF2XFactoring.o GF2XVec.o GetTime.o > > > HNF.o ctools.o LLL.o LLL_FP.o LLL_QP.o LLL_RR.o LLL_XD.o RR.o > > > WordVector.o ZZ.o ZZVec.o ZZX.o ZZX1.o ZZXCharPoly.o ZZXFactoring.o > > > ZZ_p.o ZZ_pE.o ZZ_pEX.o ZZ_pEXFactoring.o ZZ_pX.o ZZ_pX1.o > > > ZZ_pXCharPoly.o ZZ_pXFactoring.o fileio.o lip.o lzz_p.o lzz_pE.o > > > lzz_pEX.o lzz_pEXFactoring.o lzz_pX.o lzz_pX1.o lzz_pXCharPoly.o > > > lzz_pXFactoring.o mat_GF2.o mat_GF2E.o mat_RR.o mat_ZZ.o mat_ZZ_p.o > > > mat_ZZ_pE.o mat_lzz_p.o mat_lzz_pE.o mat_poly_ZZ.o mat_poly_ZZ_p.o > > > mat_poly_lzz_p.o pair_GF2EX_long.o pair_GF2X_long.o pair_ZZX_long.o > > > pair_ZZ_pEX_long.o pair_ZZ_pX_long.o pair_lzz_pEX_long.o > > > pair_lzz_pX_long.o quad_float.o tools.o vec_GF2.o vec_GF2E.o > > > vec_GF2XVec.o vec_RR.o vec_ZZ.o vec_ZZVec.o vec_ZZ_p.o vec_ZZ_pE.o > > > vec_double.o vec_long.o vec_lzz_p.o vec_lzz_pE.o vec_quad_float.o > > > vec_vec_GF2.o vec_vec_GF2E.o vec_vec_RR.o vec_vec_ZZ.o vec_vec_ZZ_p.o > > > vec_vec_ZZ_pE.o vec_vec_long.o vec_vec_lzz_p.o vec_vec_lzz_pE.o > > > vec_xdouble.o xdouble.o G_LLL_FP.o G_LLL_QP.o G_LLL_XD.o G_LLL_RR.o > > > vec_ulong.o vec_vec_ulong.o > > > Undefined symbols: > > > "___gmpn_sub_n", referenced from: > > > _redc in lip.o > > > "___gmpn_add", referenced from: > > > __ntl_gadd in lip.o > > > __ntl_gsub in lip.o > > > "___gmpn_cmp", referenced from: > > > __ntl_gcompare in lip.o > > > __ntl_gcompare in lip.o > > > __ntl_gadd in lip.o > > > __ntl_gsub in lip.o > > > __ntl_gexteucl in lip.o > > > "___gmpn_gcd", referenced from: > > > __ntl_ggcd in lip.o > > > "___gmpn_mul", referenced from: > > > __ntl_gmul in lip.o > > > __ntl_gmul in lip.o > > > "___gmpn_sub", referenced from: > > > __ntl_gadd in lip.o > > > __ntl_gadd in lip.o > > > __ntl_gsub in lip.o > > > __ntl_gsub in lip.o > > > __ntl_gsubpos in lip.o > > > "_main", referenced from: > > > start in crt1.10.5.o > > > "___gmpn_rshift", referenced from: > > > __ntl_grshift in lip.o > > > __ntl_gsdiv in lip.o > > > "___gmpn_sqrtrem", referenced from: > > > __ntl_gsqrt in lip.o > > > __ntl_gsqrts in lip.o > > > "___gmpn_addmul_1", referenced from: > > > _redc in lip.o > > > __ntl_gcrt_struct_eval in lip.o > > > __ntl_gcrt_struct_eval in lip.o > > > "___gmpn_divrem_1", referenced from: > > > __ntl_gsdiv in lip.o > > > "___gmpn_gcdext", referenced from: > > > __ntl_gexteucl in lip.o > > > __ntl_ginv in lip.o > > > "___gmpn_mod_1", referenced from: > > > __ntl_gsmod in lip.o > > > __ntl_gcrt_struct_init in lip.o > > > __ntl_grem_struct_eval in lip.o > > > __ntl_grem_struct_eval in lip.o > > > __ntl_grem_struct_eval in lip.o > > > "___gmpn_mul_1", referenced from: > > > __ntl_gsmul in lip.o > > > "___gmpn_lshift", referenced from: > > > __ntl_glshift in lip.o > > > __ntl_gsmul in lip.o > > > "___gmpn_tdiv_qr", referenced from: > > > __ntl_gdiv in lip.o > > > _gmod_simple in lip.o > > > ld: symbol(s) not found > > > collect2: ld returned 1 exit status > > > make[2]: *** [libntl.so] Error 1 > > > make[1]: *** [lib] Error 2 > > > ---------------------------------------- > > > Error building libntl.so > > > ---------------------------------------- > > > -- John Cremona --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---