[GRASS5] MacOS X compilation errors
Eric Mitchell
emitchell at altaira.com
Sat Nov 11 00:34:47 EST 2000
The linker is looking for the standard floating point math
library, either libm.so or libm.a, probably in /lib or /usr/lib.
It's possible that macosx doesn't require linking against the
math library, some platforms don't. You'll have to tweak the
CMD/head/head file to remove -lm from your linker switches.
Just search for "-lm", delete it, and see if programs start
linking properly.
Jeshua Lacock wrote:
>
> So, I got the ./configure thing working properly, and after issuing a "make install", most of it
> seems to look good initially, but then I started to notice a lot of "make" errors. It complains
> about "/usr/bin/ld: can't locate file for: -lm".
>
> I do not understand what the -lm switch does, and why it can't locate the file it needs.
>
> By the way, I am not using CVS because I cannot get PPP working on the MacOS X machine....
>
> If I get this part working, I think we will soon have MacOS X binaries!!
>
> Heres a the shell output of a typical module:
>
> #################################################################
> /Users/jeshua/grass5/src/display/d.rast.arrow
> mkdir OBJ.powerpc-apple-bsd
> make -f OBJ.powerpc-apple-bsd/make.rules
>
> rm -f OBJ.powerpc-apple-bsd/arrow.o
> cc -g -O2 -I/Users/jeshua/grass5/src/include -c arrow.c
> mv arrow.o OBJ.powerpc-apple-bsd/arrow.o
> cc -o /usr/local/grass-5.0b/etc/bin/main/cmd/d.rast.arrow OBJ.powerpc-apple-bsd/arrow.o
> /Users/jeshua/grass5/src/libes/LIB.powerpc-apple-bsd/libdisplay.a
> /Users/jeshua/grass5/src/libes/LIB.powerpc-apple-bsd/libraster.a
> /Users/jeshua/grass5/src/libes/LIB.powerpc-apple-bsd/libgis.a -lm
> /usr/bin/ld: can't locate file for: -lm
> make[1]: *** [/usr/local/grass-5.0b/etc/bin/main/cmd/d.rast.arrow] Error 1
> GISGEN failure at STEP: src/display/d.rast.arrow
>
> GISGEN: src/display/d.rast.edit - Fri Nov 10 18:48:52 PST 2000
>
> #################################################################
>
> Thanks!
> --
> Jeshua Lacock
> Cartographer/Owner
> http://SierraMaps.com
> http://3dTopoMaps.com
> Telephone: (760) 935-4481
--
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Eric B. Mitchell mailto:emitchell at altaira.com |
| tel: (301) 809 - 3534 Altair Aerospace Corporation |
| tel: (800) 7 - ALTAIR 4201 Northview Dr. Suite 410 |
| fax: (301) 805 - 8122 Bowie, MD 20716 |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
,___
/"\ / o=\ /"""---===/
/ \_/ \__/ ---===/
| //\ || /""TT""/ //\ || ||""\
| // \ || || // \ || ||__/
| //--==\ |L--/ || //--==\ || || "=,
\ ---===/
\____---===/
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list