[GRASS-dev] diglib and x86_64 problems

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
   "_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
   "_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$

I don't know about the missing symbols problem, but are you aware of the OSX 64bit issue in diglib? There is a bug report (got stuck on the old gforge tracker, and is misnamed):

http://wald.intevation.org/tracker/index.php?func=detail&aid=572&group_id=21&atid=204

When you built it a couple weeks ago, did you see any problems running vector commands? I built from SVN sources a week ago and still had the problem.

On Mar 5, 2008, at 8:36 AM, Henning Lorenz wrote:

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:

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history."

- Hitchhiker's Guide to the Galaxy

William Kyngesburye wrote:

I don't know about the missing symbols problem, but are you aware of
the OSX 64bit issue in diglib? There is a bug report (got stuck on
the old gforge tracker, and is misnamed):

http://wald.intevation.org/tracker/index.php?func=detail&aid=572&group_id=21&atid=204

You can edit the report's description by editing the "summary" text box
and then clicking [Submit].

Hamish

      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ