[GRASS-dev] Re: [GRASS GIS] #456: Undefined references when
building grass 6.4 rc2
GRASS GIS
trac at osgeo.org
Fri Jan 23 14:53:00 EST 2009
#456: Undefined references when building grass 6.4 rc2
------------------------+---------------------------------------------------
Reporter: fundawang | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: reopened
Priority: major | Milestone: 6.4.0
Component: default | Version: 6.4.0 RCs
Resolution: | Keywords:
Platform: Linux | Cpu: x86-64
------------------------+---------------------------------------------------
Comment (by neteler):
Replying to [comment:6 glynn]:
> More generally, it would have been preferable for the reporter to have
attached the error messages (or at least a representative sample of them),
All are looking like this:
{{{
gcc -shared -o /home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/lib/libgrass_driver.6.5.svn.so -L/home/neteler/grass64/dist.x86_64-
unknown-linux-gnu/lib -Wl,--no-undefined -Wl,--export-dynamic
-L/usr/lib64 -Wl,-rpath-link,/home/neteler/grass64/dist.x86_64-unknown-
linux-gnu/lib OBJ.x86_64-unknown-linux-gnu/Bitmap.o OBJ.x86_64-unknown-
linux-gnu/Box.o OBJ.x86_64-unknown-linux-gnu/Client.o OBJ.x86_64-unknown-
linux-gnu/Color.o OBJ.x86_64-unknown-linux-gnu/Cont.o OBJ.x86_64-unknown-
linux-gnu/Draw.o OBJ.x86_64-unknown-linux-gnu/Erase.o OBJ.x86_64-unknown-
linux-gnu/Font.o OBJ.x86_64-unknown-linux-gnu/Get_location.o OBJ.x86_64-
unknown-linux-gnu/Get_t_box.o OBJ.x86_64-unknown-linux-gnu/Graph.o OBJ.
x86_64-unknown-linux-gnu/Line_width.o OBJ.x86_64-unknown-linux-gnu/Move.o
OBJ.x86_64-unknown-linux-gnu/Panel.o OBJ.x86_64-unknown-linux-
gnu/Polydots.o OBJ.x86_64-unknown-linux-gnu/Polyline.o OBJ.x86_64-unknown-
linux-gnu/Polygon.o OBJ.x86_64-unknown-linux-gnu/Raster.o OBJ.x86_64-
unknown-linux-gnu/Respond.o OBJ.x86_64-unknown-linux-gnu/Returns.o OBJ.
x86_64-unknown-linux-gnu/Set_window.o OBJ.x86_64-unknown-linux-gnu/Text.o
OBJ.x86_64-unknown-linux-gnu/Text_size.o OBJ.x86_64-unknown-linux-
gnu/Work.o OBJ.x86_64-unknown-linux-gnu/font2.o OBJ.x86_64-unknown-linux-
gnu/font_freetype.o OBJ.x86_64-unknown-linux-gnu/init.o OBJ.x86_64-
unknown-linux-gnu/pad.o OBJ.x86_64-unknown-linux-gnu/parse_ftcap.o OBJ.
x86_64-unknown-linux-gnu/text2.o OBJ.x86_64-unknown-linux-gnu/text3.o OBJ.
x86_64-unknown-linux-gnu/main.o OBJ.x86_64-unknown-linux-gnu/command.o
OBJ.x86_64-unknown-linux-gnu/connect_sock.o -lgrass_gis -lgrass_datetime
-lz -lfreetype && \
(cd /home/neteler/grass64/dist.x86_64-unknown-linux-gnu/lib; ln -f
-s libgrass_driver.6.5.svn.so /home/neteler/grass64/dist.x86_64-unknown-
linux-gnu/lib/libgrass_driver.so)
OBJ.x86_64-unknown-linux-gnu/Polygon.o: In function `line':
/home/neteler/grass64/lib/driver/Polygon.c:54: undefined reference to
`floor'
OBJ.x86_64-unknown-linux-gnu/text2.o: In function `soft_text':
/home/neteler/grass64/lib/driver/text2.c:143: undefined reference to `sin'
/home/neteler/grass64/lib/driver/text2.c:144: undefined reference to `cos'
OBJ.x86_64-unknown-linux-gnu/text2.o: In function `onechar':
/home/neteler/grass64/lib/driver/text2.c:160: undefined reference to `sin'
/home/neteler/grass64/lib/driver/text2.c:161: undefined reference to `cos'
OBJ.x86_64-unknown-linux-gnu/text3.o: In function `set_matrix':
/home/neteler/grass64/lib/driver/text3.c:130: undefined reference to `cos'
/home/neteler/grass64/lib/driver/text3.c:131: undefined reference to `sin'
/home/neteler/grass64/lib/driver/text3.c:132: undefined reference to `sin'
/home/neteler/grass64/lib/driver/text3.c:133: undefined reference to `cos'
collect2: ld returned 1 exit status
make: *** [/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/lib/libgrass_driver.6.5.svn.so] Error 1
[neteler at host550 driver]$
}}}
The patch indicates the list of affected directories. Adding $(MATHLIB)
resolves it (maybe "resolves").
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/456#comment:9>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list