On May 3, 7:37 pm, "David Joyner" <[EMAIL PROTECTED]> wrote:
Hi David, > Sorry. Here it ishttp://sage.math.washington.edu/home/wdj/patches/install.log > (or will be in a few minutes - it's still uploading). I think I found it: The working version of mwrank.so is compiled with g ++, while the non-working version is compiled with gcc. I would guess on Gary's and many other systems gcc does the right thing, but on your system it doesn't link to the C++ code of eclib. mwrank.c is a pure C wrapper for eclib's C++ code, so I guess in the end the linker is the key player here. Switching the mwrank.so extension to be build with C+ + should fix the issue. Working: g++ -pthread -shared build/temp.linux-x86_64-2.5/sage/libs/mwrank/ mwrank.o build/temp.linux-x86_64-2.5/sage/libs/mwrank/wrap .o -L/scratch/mabshoff/release-cycle/sage-3.0.1.final/local//lib - lcsage -lcurvesntl -lg0nntl -ljcntl -lrankntl -lntl -lgmp -lgmpxx -lstdc++ -lm -lpari -lstdc++ -lntl -o build/lib.linux- x86_64-2.5/sage/libs/mwrank/mwrank.so Non-working: gcc -O3 -g -fwrapv -shared -fno-strict-aliasing /mnt/drive_hda1/ sagefiles/sage-3.0.1.rc0/devel/sage/build/temp/sage/libs/mwr ank/mwrank.o -L/home/wdj/wdj/sagefiles/sage-3.0.1.rc0/local/lib - lcsage -lcurvesntl -lg0nntl -ljcntl -lrankntl -lntl -lgmp -lgmpxx -lstdc++ -lm -lpari -lstdc++ -lntl -o /mnt/ drive_hda1/sagefiles/sage-3.0.1.rc0/devel/sage-main/build/sa ge/libs/mwrank/mwrank.so Gary? Cheers, Michael --~--~---------~--~----~------------~-------~--~----~ 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://www.sagemath.org -~----------~----~----~----~------~----~------~--~---