[Rd] configure on mac

stefano iacus jago at mclink.it
Tue Aug 15 01:05:47 CEST 2006


It seems that there are symbols defined in more than one header. This  
causes problems on mac. You should define the symbol in one header  
and declare elsewhere as extern. You can find examples in main.c (if  
I remember well).
I'm not sure this is the problems, but it looks like
stefano

On 14/ago/06, at 18:36, roger koenker wrote:

> My prior message now seems a bit premature.  R seemed fine and, for
> example, installed my package SparseM without complaint, but  now
> trying to install  quantreg or Matrix, I'm getting:
>
> gcc -dynamiclib -Wl,-macosx_version_min -Wl,10.3 -undefined  
> dynamic_lookup -single_module -multiply_defined suppress -L/sw/lib - 
> L/usr/local/lib -o quantreg.so akj.o boot.o bound.o boundc.o  
> chlfct.o cholesky.o dsel05.o extract.o kuantile.o mcmb.o penalty.o  
> qrcens.o rls.o rq1.o rqbr.o rqfn.o rqfnb.o rqfnc.o sparskit2.o  
> srqfn.o srqfnc.o srtpai.o xlapack.o -L/Library/Frameworks/ 
> R.framework/Resources/lib -lRblas -L/usr/local/lib/gcc/powerpc- 
> apple-darwin8/4.0.0 -L/usr/local/lib/gcc -lgfortran -lgcc_s - 
> lSystemStubs -lmx -lSystem -F/Library/Frameworks/R.framework/.. - 
> framework R
> ld: multiple definitions of symbol __gfortran_filename
> /Library/Frameworks/R.framework/Resources/lib/libRblas.dylib(single  
> module) definition of __gfortran_filename
> /usr/local/lib/libgfortran.a(error.o) definition of  
> __gfortran_filename in section (__DATA,__data)
> ld: multiple definitions of symbol __gfortran_line
> /Library/Frameworks/R.framework/Resources/lib/libRblas.dylib(single  
> module) definition of __gfortran_line
> .
> .
> .
> /usr/bin/libtool: internal link edit command failed
> make: *** [quantreg.so] Error 1
> ERROR: compilation failed for package 'quantreg'
>
> Any further suggestions would be very welcome.
>
> Roger
>
> url:    www.econ.uiuc.edu/~roger            Roger Koenker
> email    rkoenker at uiuc.edu            Department of Economics
> vox:     217-333-4558                University of Illinois
> fax:       217-244-6678                Champaign, IL 61820
>
>
> On Aug 14, 2006, at 8:15 AM, roger koenker wrote:
>
>> Yes,  upgrading to Xcode 2.4  worked perfectly.  Thanks to all.
>>
>> url:    www.econ.uiuc.edu/~roger            Roger Koenker
>> email    rkoenker at uiuc.edu            Department of Economics
>> vox:     217-333-4558                University of Illinois
>> fax:       217-244-6678                Champaign, IL 61820
>>
>>
>> On Aug 14, 2006, at 8:07 AM, stefano iacus wrote:
>>
>>> Hi Roger,
>>> due to latest change in the build scripts, you need to get the  
>>> latest apple dev tools to correctly build r-devel. In particular,  
>>> libtool needs to be updated. This is contained in the latest  
>>> apple dev (XCode 2.3 as other mentioned) on apple developer web  
>>> site.
>>> stefano
>>>
>>> On 12/ago/06, at 18:56, roger koenker wrote:
>>>
>>>> I'm having trouble making yesterday's R-devel on my macs.
>>>>
>>>> ./configure seems fine, but eventually in make I get:
>>>>
>>>> gcc -dynamiclib -Wl,-macosx_version_min -Wl,10.3 -undefined
>>>> dynamic_lookup -single_module -multiply_defined suppress -L/sw/ 
>>>> lib -L/
>>>> usr/local/lib -install_name libR.dylib -compatibility_version  
>>>> 2.4.0  -
>>>> current_version 2.4.0  -headerpad_max_install_names -o libR.dylib
>>>> Rembedded.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   `ls ../appl/*.o ../ 
>>>> nmath/
>>>> *.o ../unix/*.o  2>/dev/null|grep -v /ext-` -framework vecLib -
>>>> lgfortran -lgcc_s -lSystemStubs -lmx -lSystem  ../extra/zlib/
>>>> libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a  -lintl -
>>>> liconv -Wl,-framework -Wl,CoreFoundation -lreadline  -lm -liconv
>>>> /usr/bin/libtool: unknown option character `m' in: - 
>>>> macosx_version_min
>>>> Usage: /usr/bin/libtool -static [-] file [...] [-filelist listfile
>>>> [,dirname]] [-arch_only arch] [-sacLT]
>>>> Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist listfile
>>>> [,dirname]] [-arch_only arch] [-o output] [-install_name name] [-
>>>> compatibility_version #] [-current_version #] [-seg1addr 0x#] [-
>>>> segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [- 
>>>> seg_addr_table
>>>> <filename>] [-seg_addr_table_filename <file_system_path>] [- 
>>>> all_load]
>>>> [-noall_load]
>>>> make[3]: *** [libR.dylib] Error 1
>>>> make[2]: *** [R] Error 2
>>>> make[1]: *** [R] Error 1
>>>> make: *** [R] Error 1
>>>>
>>>> This was ok  as of my last build which was:
>>>>
>>>>> version
>>>>                 _
>>>> platform       powerpc-apple-darwin8.7.0
>>>> arch           powerpc
>>>> os             darwin8.7.0
>>>> system         powerpc, darwin8.7.0
>>>> status         Under development (unstable)
>>>> major          2
>>>> minor          4.0
>>>> year           2006
>>>> month          07
>>>> day            28
>>>> svn rev        38710
>>>> language       R
>>>> version.string R version 2.4.0 Under development (unstable)
>>>> (2006-07-28 r38710)
>>>>
>>>> url:    www.econ.uiuc.edu/~roger                Roger Koenker
>>>> email   rkoenker at uiuc.edu                       Department of  
>>>> Economics
>>>> vox:    217-333-4558                            University of  
>>>> Illinois
>>>> fax:    217-244-6678                            Champaign, IL 61820
>>>>
>>>> ______________________________________________
>>>> R-devel at r-project.org mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>>
>
>



More information about the R-devel mailing list