View Single Post
Old 2011-03-13, 00:33   #2
graysky
 
graysky's Avatar
 
Jul 2004

3·13 Posts
Default

Source: ftp://mersenne.org/gimps/source265.zip

For me it errors out on the make step.

Code:
$ pwd
/dev/shm/linux64
$ cd linux64
$ make
[ ! -e ../security.h ] && touch ../security.h || true
[ ! -e ../security.c ] && touch ../security.c || true
[ ! -e ../secure5.c ] && touch ../secure5.c || true
gcc -I.. -I../gwnum -DX86_64 -O2 -Wno-unused-result -c prime.c
gcc -I.. -I../gwnum -DX86_64 -O2 -Wno-unused-result -c menu.c
gcc -Wl,-M -o mprime prime.o menu.o factor64.o ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread -Wl,-Bstatic -lcurl -lrt -lssl -lcrypto -ldl -lz   -lstdc++ -Wl,-Bdynamic -ldl
gcc: ../gwnum/gwnum.a: No such file or directory
make: *** [mprime] Error 1
Tried moving that file to the specified dir but no joy.

Code:
$ cp ../gwnum/linux64/gwnum.a ../gwnum/
$ make
<<cut>>
menu.o: In function `torture':
menu.c:(.text+0x2318): undefined reference to `CPU_HYPERTHREADS'
menu.c:(.text+0x235c): undefined reference to `CPU_HYPERTHREADS'
menu.c:(.text+0x23f2): undefined reference to `CPU_FLAGS'
menu.c:(.text+0x2423): undefined reference to `CPU_FLAGS'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../lib/libdl.a(dlopen.o): In function `dlopen':
(.text+0x5): undefined reference to `__dlopen'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../lib/libdl.a(dlclose.o): In function `dlclose':
(.text+0x1): undefined reference to `__dlclose'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../lib/libdl.a(dlsym.o): In function `dlsym':
(.text+0x5): undefined reference to `__dlsym'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../lib/libdl.a(dlerror.o): In function `dlerror':
(.text+0x1): undefined reference to `__dlerror'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../lib/libdl.a(dladdr.o): In function `dladdr':
(.text+0x1): undefined reference to `__dladdr'
collect2: ld returned 1 exit status
make: *** [mprime] Error 1
Thoughts and suggestions are welcomed!

Last fiddled with by graysky on 2011-03-13 at 00:47
graysky is offline   Reply With Quote