[R-SIG-Mac] R-1.7.1 with gcc-3.3 and --with-x
Alex Buerkle
buerkla at uwec.edu
Wed Jul 9 11:14:54 MEST 2003
Sorry for not seeing the error and instead mentioning the warning that
occurs in the same place.
You are correct that it was a problem with dlcompat, but it is a bug in
configure that causes it to not be found. I have dlcompat installed
from fink, so the files are in /sw/lib. If I use LDFLAGS='-lcc_dynamic
-L/sw/lib' the build works fine.
The bug in configure is that the test below doesn't pick up the LDFLAGS
(line 2059).
if test -f "/sw/etc/fink.conf"; then
: ${CPPFLAGS="-I/sw/include -I/usr/local/include"}
: ${LDFLAGS="-L/sw/lib -L/usr/local/lib"}
else
: ${CPPFLAGS="-I/usr/local/include"}
: ${LDFLAGS="-L/usr/local/lib"}
fi
If it is changed to the following it works properly.
if test -f "/sw/etc/fink.conf"; then
CPPFLAGS="${CPPFLAGS} -I/sw/include -I/usr/local/include"
LDFLAGS="${LDFLAGS} -L/sw/lib -L/usr/local/lib"
else
CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
LDFLAGS="${LDFLAGS} -L/usr/local/lib"
fi
To recap, the change described above in configure or something
equivalent (if dlcompat is installed from fink) and the one line change
in devQuartz.c are required to build R-1.7.1 with X11.
Thanks for the help.
-Alex
On Wednesday, Jul 9, 2003, at 09:11 US/Central, Jan de Leeuw wrote:
> That's just a warning, which is expected. It breaks because you do not
> have dlcompat
> installed, so it cannot find dlopen and friends. If you do have it
> installed,
> add -ldl to the link.
>
> On Wednesday, Jul 9, 2003, at 07:06 US/Pacific, Alex Buerkle wrote:
>
>> Stefano's change to devQuartz.c gets the build process much further
>> along, but it now fails on a conflict in the definition of _xerbla_
>> between print.o and vecLib. For some reason the compiler command for
>> this line of the build has "-framework Carbon" in it.
>>
>> -Alex
>>
>> ----------------- details ---------------
>>
>> make
>>
>> [....]
>>
>> gcc -I../../src/extra/bzip2 -I../../src/extra/pcre -no-cpp-precomp
>> -I. -I../../
>> src/include -I../../src/include -I/sw/include -I/usr/local/include
>> -DHAVE_CONFIG
>> _H -g -O2 -c vfonts.c -o vfonts.o
>> gcc -I../../src/extra/bzip2 -I../../src/extra/pcre -no-cpp-precomp
>> -I. -I../../
>> src/include -I../../src/include -I/sw/include -I/usr/local/include
>> -DHAVE_CONFIG
>> _H -g -O2 -c registration.c -o registration.o
>> g77 -c xxxpr.f -o xxxpr.o
>> gcc -framework Carbon -mdynamic-no-pic -lcc_dynamic -o R.bin
>> CConverters.o Rdyn
>> load.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 dc
>> f.o datetime.o debug.o devPS.o devPicTeX.o deparse.o deriv.o
>> devices.o dotcode.o
>> dounzip.o dstruct.o duplicate.o engine.o envir.o errors.o eval.o
>> format.o fouri
>> er.o gram.o gram-ex.o graphics.o identical.o internet.o iosupport.o
>> lapack.o lis
>> t.o logic.o main.o mapply.o match.o memory.o model.o names.o
>> objects.o optim.o o
>> ptimize.o options.o par.o paste.o pcre.o platform.o plot.o plot3d.o
>> plotmath.o p
>> rint.o printarray.o printvector.o printutils.o qsort.o random.o
>> regex.o relop.o
>> saveload.o scan.o seq.o serialize.o size.o sort.o source.o split.o
>> sprintf.o sub
>> assign.o subscript.o subset.o summary.o unique.o util.o version.o
>> vfonts.o regis
>> tration.o xxxpr.o ../unix/libunix.a ../appl/libappl.a
>> ../nmath/libnmath.a -fram
>> ework vecLib ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a -lz
>> -lncurses -l
>> m
>> ld: warning multiple definitions of symbol _xerbla_
>> print.o definition of _xerbla_ in section (__TEXT,__text)
>> /System/Library/Frameworks/vecLib.framework/
>> vecLib(ProjectBuilderMasterObjectFil
>> e.o) definition of _xerbla_
>> ld: Undefined symbols:
>> _dlclose
>> _dlerror
>> _dlopen
>> _dlsym
>> make[3]: *** [R.bin] Error 1
>> make[2]: *** [R] Error 2
>> make[1]: *** [R] Error 1
>> make: *** [R] Error 1
>>
More information about the R-SIG-Mac
mailing list