[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gmp-4.1.2 compilation problem (full rpt)

From: Law Chong Fatt
Subject: gmp-4.1.2 compilation problem (full rpt)
Date: Fri, 9 May 2003 11:22:16 +0800

I didn't receive any response for my last mail, presumbly b'cos it wasn't a 
"full" rpt. So I've posted the same problem, with more details.
gmp version no.: gmp-4.1.2
test program: example.c as provided in package's INSTALL file.
what went wrong:
After installation, I tried compiling the eg provided in the package 
(example.c) using: 
gcc -g -I/home/cflaw/tools/gmp-4.1.2/include -L/home/cflaw/tools/gmp-4.1.2/lib 
-lgmp -v example.c
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/specs
gcc version 2.95.3 20010315 (release)
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/cpp0 -lang-c -v 
-I/home/cflaw/tools/gmp-4.1.2/include -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dsparc 
-Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ 
-D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -g 
-D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) example.c 
GNU CPP version 2.95.3 20010315 (release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/cc1 /var/tmp/ccb0Fk5o.i 
-quiet -dumpbase example.c -g -version -o /var/tmp/ccc6RoMK.s
GNU C version 2.95.3 20010315 (release) (sparc-sun-solaris2.6) compiled by GNU 
C version 2.95.3 20010315 (release).
 /usr/ccs/bin/as -V -Qy -s -o /var/tmp/ccVu2SYj.o /var/tmp/ccc6RoMK.s
/usr/ccs/bin/as: WorkShop Compilers 5.0 98/12/21
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/collect2 -V -Y 
P,/usr/ccs/lib:/usr/lib -Qy 
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3 -L/usr/ccs/bin 
-L/usr/ccs/lib -L/usr/local/lib -lgmp /var/tmp/ccVu2SYj.o -lgcc -lc -lgcc 
ld: Software Generation Utilities - Solaris-ELF (4.0)
Undefined                       first referenced
 symbol                             in file
__gmpz_init_set_str                 /var/tmp/ccVu2SYj.o
__gmpz_init                         /var/tmp/ccVu2SYj.o
__gmpz_clear                        /var/tmp/ccVu2SYj.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
crash? no.
config options: prefix for installation directory.
gcc version: gcc version 2.95.3 20010315
Could someone help? 
Chongfatt Law

reply via email to

[Prev in Thread] Current Thread [Next in Thread]