[R-SIG-Mac] persistent problem with devQuartz.o bldg devel from source

Simon Urbanek simon.urbanek at r-project.org
Wed Feb 20 21:51:15 CET 2008


On Feb 20, 2008, at 2:58 PM, Vincent Carey 525-2265 wrote:

> this is a totally fresh checkout -- simply did rsync-recommended in  
> tools,
> ./configure --enable-R-shlib --with-tcltk
> make
>
> it fails at:
>
> gcc -std=gnu99 -dynamiclib -flat_namespace -undefined suppress - 
> single_module -m
> ultiply_defined suppress -L/usr/local/lib -o grDevices.so chull.o  
> devNull.o devP
> icTeX.o devPS.o devQuartz.o init.o  qdBitmap.o qdPDF.o qdCocoa.o - 
> framework AppK
> it  -L../../../../lib -lR -dylib_file libRblas.dylib:../../../../lib/ 
> libRblas.dy
> lib
> ld: multiple definitions of symbol _getQuartzAPI
> devQuartz.o definition of _getQuartzAPI in section (__TEXT,__text)
> ../../../../lib/libR.dylib(single module) definition of _getQuartzAPI
> /usr/bin/libtool: internal link edit command failed
> make[5]: *** [grDevices.so] Error 1
> make[4]: *** [all] Error 2
> make[3]: *** [all] Error 1
> make[2]: *** [R] Error 1
> make[1]: *** [R] Error 1
> make: *** [R] Error 1
> W0034619:~/Work/ExternalSoft/fresh stvjc$ svn up
> At revision 44551.
>
> i wonder if my xcode tools are out of date

It is highly likely, because flat namespace is used only when the  
linker doesn't resolve dynamic symbols correctly (old Xcode had that  
problem).

Nonetheless it exposes a potential problem on older systems, so thanks  
for the report - I'll address the issue ...


> but i do not know how to determine the version.

Start Xcode, click on "Xcode" -> "About Xcode". There are many other  
indirect ways - e.g. compiler build number (2.5=5531) or xcodebuild - 
version (2.5=798.0).

Cheers,
Simon

>
> On Wed, 20 Feb 2008, Simon Urbanek wrote:
>
>> Vince,
>>
>> can you send me the full output, please? The actual command is
>> unfortunately missing from your post. It builds fine for me as you  
>> can
>> see on
>> http://r.research.att.com/
>> Please make sure you are doing a fresh checkout+build.
>>
>> Thanks,
>> Simon
>>
>> On Feb 20, 2008, at 11:52 AM, Vincent Carey 525-2265 wrote:
>>
>>> For the past few days, attempts to build R 2.7.0 from source
>>> on macosx 10.4.11 have run into:
>>>
>>> ld: multiple definitions of symbol _getQuartzAPI
>>> devQuartz.o definition of _getQuartzAPI in section (__TEXT,__text)
>>> ../../../../lib/libR.dylib(single module) definition of  
>>> _getQuartzAPI
>>> /usr/bin/libtool: internal link edit command failed
>>> make[5]: *** [grDevices.so] Error 1
>>> make[4]: *** [all] Error 2
>>> make[3]: *** [all] Error 1
>>> make[2]: *** [R] Error 1
>>> make[1]: *** [R] Error 1
>>> make: *** [R] Error 1
>>> W0034619:~/Work/ExternalSoft/R-devel stvjc$ gcc -v
>>> Using built-in specs.
>>> Target: i686-apple-darwin8
>>> Configured with: ../gcc-4.0.3/configure --prefix=/usr/local/gcc4.0  
>>> --
>>> disable-che
>>> cking --enable-languages=c,objc,c++,f95 --program-transform-name=/
>>> ^[cg][^.-]*$/s
>>> /$/-4.0/ --build=i686-apple-darwin8 --with-arch=pentium-m --with-
>>> tune=prescott -
>>> -program-prefix= --host=i686-apple-darwin8 --target=i686-apple- 
>>> darwin8
>>> Thread model: posix
>>> gcc version 4.0.3
>>> W0034619:~/Work/ExternalSoft/R-devel stvjc$ gfortran -v
>>> Using built-in specs.
>>> Target: i686-apple-darwin8
>>>
>>> Any suggestions on how to get around this?  Thanks
>>>
>>> ---
>>> Vince Carey, PhD
>>> Assoc. Prof Med (Biostatistics)
>>> Harvard Medical School
>>> Channing Laboratory - ph 6175252265 fa 6177311541
>>> 181 Longwood Ave Boston MA 02115 USA
>>> stvjc at channing.harvard.edu
>>>
>>> The information transmitted in this electronic communica... 
>>> {{dropped:
>>> 10}}
>>>
>>> _______________________________________________
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac at stat.math.ethz.ch
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>>
>>>
>>
>>
>
> The information transmitted in this electronic communication is  
> intended only
> for the person or entity to whom it is addressed and may contain  
> confidential
> and/or privileged material. Any review, retransmission,  
> dissemination or other
> use of or taking of any action in reliance upon this information by  
> persons or
> entities other than the intended recipient is prohibited. If you  
> received this
> information in error, please contact the Compliance HelpLine at  
> 800-856-1983 and
> properly dispose of this information.
>
>
>
>



More information about the R-SIG-Mac mailing list