LAPACK Archives

[Lapack] BLAS - undefined reference to `MAIN__'

Hi,

I'm trying to build the rgdal package on NetBSD 4.0. This package will
create rgdal library in R. I got the following error with BLAS when
compiling the rgdal program "/usr/pkg/lib/libblas.so.1: undefined
reference to `MAIN__' ". Could you please let me know how to fix this
error.
Thank you very much,

Co
******
Package CPP flags: -I/usr/pkg/include
Package LIBS: -L/usr/pkg/lib -lgdal
configure: creating ./config.status
config.status: creating src/Makevars
** libs
c++ -I/usr/pkg/lib/R/include -I/usr/pkg/include -I/usr/pkg/include
-I/usr/include      -O2 -I/usr/pkg/include -I/usr/include -c OGR_write.cpp
-o OGR_write.o
c++ -I/usr/pkg/lib/R/include -I/usr/pkg/include -I/usr/pkg/include
-I/usr/include      -O2 -I/usr/pkg/include -I/usr/include -c
gdal-bindings.cpp -o gdal-bindings.o
c++ -I/usr/pkg/lib/R/include -I/usr/pkg/include -I/usr/pkg/include
-I/usr/include      -O2 -I/usr/pkg/include -I/usr/include -c ogr_geom.cpp
-o ogr_geom.o
c++ -I/usr/pkg/lib/R/include -I/usr/pkg/include -I/usr/pkg/include
-I/usr/include      -O2 -I/usr/pkg/include -I/usr/include -c ogr_proj.cpp
-o ogr_proj.o
c++ -I/usr/pkg/lib/R/include -I/usr/pkg/include -I/usr/pkg/include
-I/usr/include      -O2 -I/usr/pkg/include -I/usr/include -c
ogrdrivers.cpp -o ogrdrivers.o
c++ -I/usr/pkg/lib/R/include -I/usr/pkg/include -I/usr/pkg/include
-I/usr/include      -O2 -I/usr/pkg/include -I/usr/include -c ogrsource.cpp
-o ogrsource.o
c++ -I/usr/pkg/lib/R/include -I/usr/pkg/include -I/usr/pkg/include
-I/usr/include      -O2 -I/usr/pkg/include -I/usr/include -c projectit.cpp
-o projectit.o
c++  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o
rgdal.so OGR_write.o gdal-bindings.o ogr_geom.o ogr_proj.o ogrdrivers.o
ogrsource.o projectit.o -L/usr/pkg/lib -lgdal -lproj 
-Wl,-R/usr/pkg/lib/R/lib -L/usr/pkg/lib/R/lib -lR
/pkg_comp/obj/pkgsrc/wip/R-rgdal/work.pkg_comp/.buildlink/lib/libgdal.so:
warning: warning: tempnam() possibly used unsafely, use mkstemp() or
mkdtemp()
/usr/pkg/lib/libblas.so.1: undefined reference to `MAIN__'
*** Error code 1

Stop.
make: stopped in /pkg_comp/obj/pkgsrc/wip/R-rgdal/work.pkg_comp/rgdal/src
***********


<Prev in Thread] Current Thread [Next in Thread>
  • [Lapack] BLAS - undefined reference to `MAIN__', cngo at nmsu.edu <=


For additional information you may use the LAPACK/ScaLAPACK Forum.
Or one of the mailing lists, or