[Rd] Error 1 : undefined first referenced symbol

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Wed Nov 29 16:49:31 CET 2006


Steiner, Julien wrote:
> Hello
>
>  
>
> I'm having trouble building R under Unix. I've searched for information
> about it on google or the R database but I didn't find any answer on my
> problem. I would be thankful if somebody could help me working that out.
>
>  
>
> The version of R I'm trying to build is R-2.4.0 and the architecture of
> solaris is sparc.
>
>  
>
> Here's what I type.
>
>  
>
> PATH=/opt/sfw/bin:$PATH
>
> export PATH
>
> That's for the C compiler
>
>  
>
> ./configure LDFLAGS="-L/opt/sfw/lib:/opt/sfw/lib/sparcv9"
>
>
>   
That doesn't look like correct syntax for LDFLAGS. Should it not be

"-L/opt/sfw/lib -L/opt/sfw/lib/sparcv9"

?

> Then I get : 
>
>  
>
> Source directory:          .
>
>   Installation directory:    /usr/local
>
>  
>
>   C compiler:                gcc  -g -O2 -std=gnu99
>
>   Fortran 77 compiler:       g77  -g -O2
>
>  
>
>   C++ compiler:              g++  -g -O2
>
>   Fortran 90/95 compiler:    g77 -g -O2
>
>  
>
>   Interfaces supported:      X11
>
>   External libraries:        readline
>
>   Additional capabilities:   PNG, JPEG, NLS
>
>   Options enabled:           shared BLAS, R profiling
>
>  
>
>   Recommended packages:      yes
>
>  
>
> configure: WARNING: you cannot build DVI versions of the R manuals
>
> configure: WARNING: you cannot build PDF versions of the R manuals
>
>  
>
> gmake
>
>  
>
> and then I get this error message
>
>  
>
> gmake[3]: Entering directory
>
> `/usr/local/R_HOME/R-2.4.0/src/main'
>
> gcc  -L/opt/sfw/lib:/opt/sfw/lib/sparcv9 -o R.bin Rmain.o CConverters.o
> CommandLineArgs.o Rdynload.o Renviron.o RNG.o apply.o arithmetic.o
> apse.o array.o attrib.o base.o bind.o builtin.o character.o coerce.o
> colors.o complex.o connections.o context.o cov.o cum.o dcf.o datetime.o
> debug.o deparse.o deriv.o dotcode.o dounzip.o dstruct.o duplicate.o
> engine.o envir.o errors.o eval.o format.o fourier.o gevents.o gram.o
> gram-ex.o graphics.o identical.o internet.o iosupport.o lapack.o list.o
> localecharset.o logic.o main.o mapply.o match.o memory.o model.o names.o
> objects.o optim.o optimize.o options.o par.o paste.o pcre.o platform.o
> plot.o plot3d.o plotmath.o print.o printarray.o printvector.o
> printutils.o qsort.o random.o regex.o registration.o relop.o rlocale.o
> saveload.o scan.o seq.o serialize.o size.o sort.o source.o split.o
> sprintf.o startup.o subassign.o subscript.o subset.o summary.o
> sysutils.o unique.o util.o version.o vfonts.o xxxpr.o  mkdtemp.o
> ../unix/libunix.a ./appl/libappl.a ../nmath/libnmath.a -L../../lib
> -lRblas
>
> -L/opt/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.2
>
> -L/usr/ccs/bin -L/opt/sfw/lib -lg2c -lm -lgcc_s ./extra/zlib/libz.a
> ../extra/bzip2/libbz2.a ./extra/pcre/libpcre.a  ../extra/intl/libintl.a
> -lreadline -lncurses  -lnsl -lsocket -ldl -lm
>
> Undefined                       first referenced
>
>  symbol                             in file
>
> __builtin_isnan                     arithmetic.o
>
> ld: fatal: Symbol referencing errors. No output written to R.bin
>
> collect2: ld returned 1 exit status
>
> gmake[3]: *** [R.bin] Error 1
>
> gmake[3]: Leaving directory
>
> `/usr/local/R_HOME/R-2.4.0/src/main'
>
> gmake[2]: *** [R] Error 2
>
> gmake[2]: Leaving directory
>
> `/usr/local/R_HOME/R-2.4.0/src/main'
>
> gmake[1]: *** [R] Error 1
>
> gmake[1]: Leaving directory `/usr/local/R_HOME/R-2.4.0/src'
>
> gmake: *** [R] Error 1
>
>  
>
>  
>
> In advance, thanks a lot if you mind helping me.
>
>  
>
>  
>
> Juien
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>   


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-devel mailing list