[GRASS-dev] diglib and x86_64 problems

Henning Lorenz henning.lorenz at geo.uu.se
Wed Mar 5 09:36:44 EST 2008


Hello!

I compiled GRASS 6.3.cvs for the x86_64 architecture about two weeks  
ago. After a svn update today (30478) I get the error "ld: symbol(s)  
not found for architecture x86_64". Have there been any changes which  
could cause this?

Cheers,

Henning

Below the complete output after "make" in the diglib directory:

Polaris-2:diglib hl$ make
make OBJ.i686-apple-darwin9.2.0/test
echo "==============TEST============="
==============TEST=============
gcc -L/Users/hl/Sources/grass_trunk/dist.i686-apple-darwin9.2.0/lib - 
Os -Os      -arch i386 -arch x86_64 -Os   -I/Library/Frameworks/ 
GDAL.framework/Versions/1.5/Headers  -I/Users/hl/Sources/grass_trunk/ 
dist.i686-apple-darwin9.2.0/include  -o OBJ.i686-apple-darwin9.2.0/ 
test test.c -lgrass_dig2 -lgrass_gis -lgrass_datetime -lz     - 
lgrass_rtree  -lgrass_rtree \
				-lgrass_gis -lgrass_datetime -lz     -lgrass_datetime  -lz
ld: warning in /Users/hl/Sources/grass_trunk/dist.i686-apple- 
darwin9.2.0/lib/libgrass_dig2.dylib, file is not of required  
architecture
ld: warning in /Users/hl/Sources/grass_trunk/dist.i686-apple- 
darwin9.2.0/lib/libgrass_gis.dylib, file is not of required architecture
ld: warning in /Users/hl/Sources/grass_trunk/dist.i686-apple- 
darwin9.2.0/lib/libgrass_datetime.dylib, file is not of required  
architecture
ld: warning in /Users/hl/Sources/grass_trunk/dist.i686-apple- 
darwin9.2.0/lib/libgrass_rtree.dylib, file is not of required  
architecture
Undefined symbols for architecture x86_64:
   "_dig_fflush", referenced from:
       _main in cctLQtvf.o
       _main in cctLQtvf.o
       _main in cctLQtvf.o
       _main in cctLQtvf.o
       _main in cctLQtvf.o
       _main in cctLQtvf.o
   "_dig_set_cur_port", referenced from:
       _main in cctLQtvf.o
   "_dig__fread_port_C", referenced from:
       _main in cctLQtvf.o
   "_dig__fread_port_D", referenced from:
       _main in cctLQtvf.o
   "_dig__fread_port_F", referenced from:
       _main in cctLQtvf.o
   "_dig__fread_port_I", referenced from:
       _main in cctLQtvf.o
   "_dig__fread_port_L", referenced from:
       _main in cctLQtvf.o
   "_dig__fread_port_S", referenced from:
       _main in cctLQtvf.o
   "_dig_fseek", referenced from:
       _main in cctLQtvf.o
       _main in cctLQtvf.o
       _main in cctLQtvf.o
       _main in cctLQtvf.o
       _main in cctLQtvf.o
       _main in cctLQtvf.o
       _main in cctLQtvf.o
       _main in cctLQtvf.o
       _main in cctLQtvf.o
       _main in cctLQtvf.o
       _main in cctLQtvf.o
       _main in cctLQtvf.o
   "_dig__fwrite_port_C", referenced from:
       _main in cctLQtvf.o
   "_dig__fwrite_port_D", referenced from:
       _main in cctLQtvf.o
   "_dig__fwrite_port_F", referenced from:
       _main in cctLQtvf.o
   "_dig__fwrite_port_I", referenced from:
       _main in cctLQtvf.o
   "_dig__fwrite_port_L", referenced from:
       _main in cctLQtvf.o
   "_dig__fwrite_port_S", referenced from:
       _main in cctLQtvf.o
   "_dig_init_portable", referenced from:
       _main in cctLQtvf.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/hn/hniBXFGLEVK0CDS-NSOTk+++ 
+TI/-Tmp-//ccdBgFfg.out (No such file or directory)
make[1]: *** [OBJ.i686-apple-darwin9.2.0/test] Error 1
make: *** [default] Error 2
Polaris-2:diglib hl$ make clean
rm -rf OBJ.i686-apple-darwin9.2.0
rm -f  *.tmp.html
if [ "" != "" ] ; then \
		for dir in  ; do \
			make -C $dir clean ; \
		done ; \
	fi
Polaris-2:diglib hl$


More information about the grass-dev mailing list