[R-SIG-Mac] R 2.1.1 available in DarwinPorts

Kjell Konis konis at stats.ox.ac.uk
Wed Sep 7 21:30:31 CEST 2005


Okay, I think I will just have to add -lcc_dynamic to LDFLAGS.  I'll  
test it here and if it doesn't cause any problems for me then I'll  
check it in to DP.  It would be nice if you could test it to just to  
make sure it resolves the whole problem.  To do so cut and paste this  
into the terminal.  It will create a directory in your home directory  
named R-test and copy the Portfile for R into it.

cd
mkdir R-test
cd R-test/
cp /opt/local/var/db/dports/sources/ 
rsync.rsync.opendarwin.org_dpupdate_dports/math/R/Portfile .

Now open the Portfile in a text editor make the the configure.env  
section look like this

configure.env    CPPFLAGS="-I${prefix}/include" \
                  LDFLAGS="-L${prefix}/lib -lcc_dynamic" \
                  CC=gcc-dp-3.4 \
                  CXX=g++-dp-3.4 \
                  F77=g77-dp-3.4

Basically you're just adding -lcc_dynamic to the LDFLAGS.  Save the  
changes.

Now, in the R-test directory, do the following.  This will clean out  
any clutter left from your previous attempts to build R and attempt a  
build using the local Portfile (notice R is NEVER in any of the port  
commands)

sudo port clean --archive
sudo port clean
sudo port -d -v install

Let me know if it works.
Thanks for your help.

Kjell



On 7 Sep 2005, at 10:24, elijah wright wrote:

>
>
>> At some point port just started noticing when cc_dynamic is  
>> required and linking against it.  Until yesterday I thought this  
>> was a "feature" but maybe it's just a (lucky) misconfiguration  
>> somewhere in my system. (For a brief period I was using gcc 4.0 to  
>> to compile and cc_dynamic was not necessary - when I reverted to  
>> 3.3 I didn't put cc-dynamic in the Portfile because it was already  
>> being found.)
>>
>> Anyway, let me know if updating solves the problem.
>>
>
>
> i'm up to date now.  and i just updated libiconv from 1.09 to 1.10  
> -- which is a little tricky, since you have to deactivate one in  
> order for the other to build successfully.  [libiconv port bug?]
>
> here's what happens when i try to do a `port install R` now:
>
> gcc-3.3 -I../../src/extra/zlib -I../../src/extra/bzip2 -I../../src/ 
> extra/pcre  -no-cpp-precomp -I. -I../../src/include -I../../src/ 
> include -I/opt/local/include -DHAVE_CONFIG_H  -fno-common  -g -O2 - 
> c vfonts.c -o vfonts.lo
> g77-dp-3.4  -fno-common  -g -O2 -c xxxpr.f -o xxxpr.lo
> gcc-3.3 -dynamiclib -L/opt/local/lib -dynamiclib -install_name  
> libR.dylib -compatibility_version 2.1.0  -current_version 2.1.1 - 
> headerpad_max_install_names -o libR.dylib  Rembedded.lo  
> CConverters.lo CommandLineArgs.lo Rdynload.lo Renviron.lo RNG.lo  
> apply.lo arithmetic.lo apse.lo array.lo attrib.lo base.lo bind.lo  
> builtin.lo character.lo coerce.lo colors.lo complex.lo  
> connections.lo context.lo cov.lo cum.lo dcf.lo datetime.lo debug.lo  
> deparse.lo deriv.lo dotcode.lo dounzip.lo dstruct.lo duplicate.lo  
> engine.lo envir.lo errors.lo eval.lo format.lo fourier.lo  
> gevents.lo gram.lo gram-ex.lo graphics.lo identical.lo internet.lo  
> iosupport.lo lapack.lo list.lo logic.lo main.lo mapply.lo match.lo  
> memory.lo model.lo names.lo objects.lo optim.lo optimize.lo  
> options.lo par.lo paste.lo pcre.lo platform.lo plot.lo plot3d.lo  
> plotmath.lo print.lo printarray.lo printvector.lo printutils.lo  
> qsort.lo random.lo regex.lo registration.lo relop.lo saveload.lo  
> scan.lo seq.lo serialize.lo size.lo sort.lo source.lo split.lo  
> sprintf.lo startup.lo subassign.lo subscript.lo subset.lo  
> summary.lo sysutils.lo unique.lo util.lo version.lo vfonts.lo  
> xxxpr.lo `ls ../appl/*.lo ../nmath/*.lo ../unix/*.lo  2>/dev/null` - 
> framework vecLib -L/opt/local/lib/gcc-3.4/gcc/powerpc-apple- 
> darwin8.2.0/3.4.4 -L/opt/local/lib/gcc-3.4 -lg2c -lgcc_s - 
> lSystemStubs -lSystem ../extra/zlib/libz.a ../extra/bzip2/ 
> libbz2.a ../extra/pcre/libpcre.a -lintl -liconv -lc  -lreadline  - 
> lm -liconv
> ld: warning prebinding disabled because dependent library: /opt/ 
> local/lib/gcc-3.4/libg2c.0.dylib is not prebound
> ld: warning multiple definitions of symbol _xerbla_
> print.lo definition of _xerbla_ in section (__TEXT,__text)
> /System/Library/Frameworks/Accelerate.framework/Versions/A/ 
> Frameworks/vecLib.framework/Versions/A/libBLAS.dylib(single module)  
> definition of _xerbla_
> ld: warning multiple definitions of symbol _locale_charset
> /opt/local/lib/libiconv.dylib(localcharset.o) definition of  
> _locale_charset
> /opt/local/lib/libintl.dylib(localcharset.o) definition of  
> _locale_charset
> ld: warning multiple definitions of symbol _signgam
> ../nmath/lgamma.lo definition of _signgam in section (__DATA,__common)
> /usr/lib/libSystem.dylib(gamma9.o) definition of _signgam
> ld: Undefined symbols:
> restFP
> saveFP
> /usr/bin/libtool: internal link edit command failed
> make[3]: *** [libR.dylib] Error 1
> make[2]: *** [R] Error 2
> make[1]: *** [R] Error 1
> make: *** [R] Error 1
>
>
>
> i gotta run to class now, but will try to follow up afterwards.
>
> --elijah
>
>
>
>>>> Subject: Re: [R-SIG-Mac] R 2.1.1 available in DarwinPorts
>>>> I just tried building from darwin ports today, and got the error  
>>>> below while bulding R.  To confirm, this is for darwin ports on  
>>>> Tiger, right? Any help appreciated, looks like there is some  
>>>> kind of symbol conflict.
>>>>
>>> i got the same error when i tried a build a couple of days ago --  
>>> i hadn't had time to get back to it yet.  [and i have a radmind  
>>> overload of darwinports that contains a working R (from previous  
>>> build attempt), so i wasn't in a hurry to break it either...]
>>> Kjell, are there things we can do to help you?  Other than to  
>>> continue testing?  :)
>>> --elijah
>>>
>>>> gcc-3.3 -dynamiclib -L/opt/local/lib -dynamiclib -install_name
>>>> libR.dylib -compatibility_version 2.1.0  -current_version 2.1.1  -
>>>> headerpad_max_install_names -o libR.dylib  Rembedded.lo
>>>> CConverters.lo CommandLineArgs.lo Rdynload.lo Renviron.lo RNG.lo
>>>> apply.lo arithmetic.lo apse.lo array.lo attrib.lo base.lo bind.lo
>>>> builtin.lo character.lo coerce.lo colors.lo complex.lo  
>>>> connections.lo
>>>> context.lo cov.lo cum.lo dcf.lo datetime.lo debug.lo deparse.lo
>>>> deriv.lo dotcode.lo dounzip.lo dstruct.lo duplicate.lo engine.lo
>>>> envir.lo errors.lo eval.lo format.lo fourier.lo gevents.lo gram.lo
>>>> gram-ex.lo graphics.lo identical.lo internet.lo iosupport.lo
>>>> lapack.lo list.lo logic.lo main.lo mapply.lo match.lo memory.lo
>>>> model.lo names.lo objects.lo optim.lo optimize.lo options.lo par.lo
>>>> paste.lo pcre.lo platform.lo plot.lo plot3d.lo plotmath.lo print.lo
>>>> printarray.lo printvector.lo printutils.lo qsort.lo random.lo
>>>> regex.lo registration.lo relop.lo saveload.lo scan.lo seq.lo
>>>> serialize.lo size.lo sort.lo source.lo split.lo sprintf.lo  
>>>> startup.lo
>>>> subassign.lo subscript.lo subset.lo summary.lo sysutils.lo  
>>>> unique.lo
>>>> util.lo version.lo vfonts.lo xxxpr.lo `ls ../appl/*.lo ../nmath/
>>>> *.lo ../unix/*.lo  2>/dev/null` -framework vecLib -L/opt/local/lib/
>>>> gcc-3.4/gcc/powerpc-apple-darwin8.2.0/3.4.4 -L/opt/local/lib/ 
>>>> gcc-3.4 -
>>>> lg2c -lgcc_s -lSystemStubs -lSystem  ../extra/zlib/libz.a ../extra/
>>>> bzip2/libbz2.a ../extra/pcre/libpcre.a  -lintl -liconv -lc  -
>>>> lreadline  -lm -liconv
>>>>
>>
>>
>> Here is cc_dynamic, right between readline and math:
>>
>> gcc-3.3 -dynamiclib -L/opt/local/lib -dynamiclib -install_name  
>> libR.dylib -compatibility_version 2.1.0  -current_version 2.1.1 - 
>> headerpad_max_install_names -o libR.dylib  Rembedded.lo  
>> CConverters.lo CommandLineArgs.lo Rdynload.lo Renviron.lo RNG.lo  
>> apply.lo arithmetic.lo apse.lo array.lo attrib.lo base.lo bind.lo  
>> builtin.lo character.lo coerce.lo colors.lo complex.lo  
>> connections.lo context.lo cov.lo cum.lo dcf.lo datetime.lo  
>> debug.lo deparse.lo deriv.lo dotcode.lo dounzip.lo dstruct.lo  
>> duplicate.lo engine.lo envir.lo errors.lo eval.lo format.lo  
>> fourier.lo gevents.lo gram.lo gram-ex.lo graphics.lo identical.lo  
>> internet.lo iosupport.lo lapack.lo list.lo logic.lo main.lo  
>> mapply.lo match.lo memory.lo model.lo names.lo objects.lo optim.lo  
>> optimize.lo options.lo par.lo paste.lo pcre.lo platform.lo plot.lo  
>> plot3d.lo plotmath.lo print.lo printarray.lo printvector.lo  
>> printutils.lo qsort.lo random.lo regex.lo registration.lo relop.lo  
>> saveload.lo scan.lo seq.lo serialize.lo size.lo sort.lo source.lo  
>> split.lo sprintf.lo startup.lo subassign.lo subscript.lo subset.lo  
>> summary.lo sysutils.lo unique.lo util.lo version.lo vfonts.lo  
>> xxxpr.lo `ls ../appl/*.lo ../nmath/*.lo ../unix/*.lo  2>/dev/null`  
>> -framework vecLib -L/Volumes/muffin/DarwinPorts/lib/gcc-3.4/gcc/ 
>> powerpc-apple-darwin8.2.0/3.4.4 -L/Volumes/muffin/DarwinPorts/lib/ 
>> gcc-3.4/gcc -L/Volumes/muffin/DarwinPorts/lib/gcc-3.4 -lg2c - 
>> lgcc_s -lSystemStubs -lSystem  ../extra/zlib/libz.a ../extra/bzip2/ 
>> libbz2.a ../extra/pcre/libpcre.a  -lintl -liconv -lc  -lreadline  - 
>> lcc_dynamic -lm -liconv
>



More information about the R-SIG-Mac mailing list