FreeBSD Port: R-2.5.0

Joey Mingrone joey at mingrone.org
Wed May 30 18:03:31 UTC 2007


On 5/30/07, Eric van Gyzen <eric at vangyzen.net> wrote:
> Joey Mingrone wrote:
> > Hi Eric,
> >
> > I sent you a message a while back about some linking errors when
> > upgrading to R-2.4.1.  I don't recall changing anything, but it
> > installed after updating my ports tree a few days later.  I'm having
> > the same problems upgrading to 2.5.0.  The linking error is below.
> > Any suggestions? *Note*, there are no linking errors when running the
> > erroneous command below with gfortran.
> >
> > Thanks,
> >
> > Joey
> >
> > ...
> > ...
> > cc -std=gnu99 -export-dynamic -L/usr/local/lib -o R.bin Rmain.o -L../../lib
> > -lR
> > /usr/local/lib/gcc-4.2.1/libgfortran.so.2: undefined reference to
> > `__mulxc3 at GCC_4.0.0'
> > /usr/local/lib/gcc-4.2.1/libgfortran.so.2: undefined reference to
> > `__mulsc3 at GCC_4.0.0'
> > /usr/local/lib/gcc-4.2.1/libgfortran.so.2: undefined reference to
> > `__divsc3 at GCC_4.0.0'
> > /usr/local/lib/gcc-4.2.1/libgfortran.so.2: undefined reference to
> > `__muldc3 at GCC_4.0.0'
> > /usr/local/lib/gcc-4.2.1/libgfortran.so.2: undefined reference to
> > `__divdc3 at GCC_4.0.0'
> > /usr/local/lib/gcc-4.2.1/libgfortran.so.2: undefined reference to
> > `__divxc3 at GCC_4.0.0'
>
> Joey,
>
> I'm curious:  Instead of linking with gfortran, try gcc42.
>
> Eric
>

Linking with gcc42 gives the same errors.  Also, I should note, it was
gfortran42, which linked without errors:

>/usr/ports/math/R/work/R-2.5.0/src/main$ gfortran42 -std=gnu99
-export-dynamic -L/usr/local/lib -o R.bin Rmain.o -L../../lib -lR
>

Joey


More information about the freebsd-ports mailing list