this bug's URL: http://intevation.de/rt/webrt?serial_num=2373
-------------------------------------------------------------------------
Subject: undefined reference in libgrass_driver.so
Platform: Solaris2.X/Sparc
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 5.7_exp_2004_03_20
Hi again,
I'm trying to compile grass 5.7 from a CVS snapshot (3/20/04), and the current problem (the one I hit the wall on :p) is that make craps out with:
gcc -L/export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/lib -o /export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/driver/XDRIVER -L/export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/lib OBJ.sparc-sun-solaris2.8/Box_abs.o OBJ.sparc-sun-solaris2.8/Can_do.o OBJ.sparc-sun-solaris2.8/Client.o OBJ.sparc-sun-solaris2.8/Clr_table.o OBJ.sparc-sun-solaris2.8/Color.o OBJ.sparc-sun-solaris2.8/Draw_line.o OBJ.sparc-sun-solaris2.8/Get_w_box.o OBJ.sparc-sun-solaris2.8/Get_w_line.o OBJ.sparc-sun-solaris2.8/Get_w_pnt.o OBJ.sparc-sun-solaris2.8/Graph_Clse.o OBJ.sparc-sun-solaris2.8/Graph_Set.o OBJ.sparc-sun-solaris2.8/Panel.o OBJ.sparc-sun-solaris2.8/Plylne_abs.o OBJ.sparc-sun-solaris2.8/Polygn_abs.o OBJ.sparc-sun-solaris2.8/Raster.o OBJ.sparc-sun-solaris2.8/Raster_RGB.o OBJ.sparc-sun-solaris2.8/Respond.o OBJ.sparc-sun-solaris2.8/Serve_Xevent.o OBJ.sparc-sun-solaris2.8/Work.o OBJ.sparc-sun-solaris2.8/alloc.o -lgras
s_driver -lgrass_D -lgrass_display -lgrass_raster -lgrass_gis -lgrass_datetime -lnsl -lz -lsocket -L/usr/openwin/lib -R/usr/openwin/lib -lSM -lICE -lX11 -lsocket -lnsl -lm -lnsl -lz
/export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/lib/libgrass_driver.so: undefined reference to `nanosleep'
collect2: ld returned 1 exit status
make[4]: *** [/export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/driver/XDRIVER] Error 1
make[4]: Leaving directory `/export/home/gwurman/Codes/grass57_exp_2004_03_20/display/drivers/XDRIVER/XDRIVER24'
I can't figure out where the nanosleep reference comes from or why it's broken. Any help is appreciated.
Thanks much,
Gilead Wurman
ASU Active Tectonics
-------------------------------------------- Managed by Request Tracker
Request Tracker wrote:
this bug's URL: http://intevation.de/rt/webrt?serial_num=2373
Subject: undefined reference in libgrass_driver.so
Platform: Solaris2.X/Sparc
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 5.7_exp_2004_03_20
I'm trying to compile grass 5.7 from a CVS snapshot (3/20/04), and
the current problem (the one I hit the wall on :p) is that make
craps out with:
gcc -L/export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/lib -o /export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/driver/XDRIVER -L/export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/lib OBJ.sparc-sun-solaris2.8/Box_abs.o OBJ.sparc-sun-solaris2.8/Can_do.o OBJ.sparc-sun-solaris2.8/Client.o OBJ.sparc-sun-solaris2.8/Clr_table.o OBJ.sparc-sun-solaris2.8/Color.o OBJ.sparc-sun-solaris2.8/Draw_line.o OBJ.sparc-sun-solaris2.8/Get_w_box.o OBJ.sparc-sun-solaris2.8/Get_w_line.o OBJ.sparc-sun-solaris2.8/Get_w_pnt.o OBJ.sparc-sun-solaris2.8/Graph_Clse.o OBJ.sparc-sun-solaris2.8/Graph_Set.o OBJ.sparc-sun-solaris2.8/Panel.o OBJ.sparc-sun-solaris2.8/Plylne_abs.o OBJ.sparc-sun-solaris2.8/Polygn_abs.o OBJ.sparc-sun-solaris2.8/Raster.o OBJ.sparc-sun-solaris2.8/Raster_RGB.o OBJ.sparc-sun-solaris2.8/Respond.o OBJ.sparc-sun-solaris2.8/Serve_Xevent.o OBJ.sparc-sun-solaris2.8/Work.o OBJ.sparc-sun-solaris2.8/alloc.o -lgrass_driver -lgrass_D -lgrass_display -lgrass_raster -lgrass_gis -lgrass_datetime -lnsl -lz -lsocket -L/usr/openwin/lib -R/usr/openwin/lib -lSM -lICE -lX11 -lsocket -lnsl -lm -lnsl -lz
/export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/lib/libgrass_driver.so: undefined reference to `nanosleep'
collect2: ld returned 1 exit status
make[4]: *** [/export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/driver/XDRIVER] Error 1
make[4]: Leaving directory `/export/home/gwurman/Codes/grass57_exp_2004_03_20/display/drivers/XDRIVER/XDRIVER24'
I can't figure out where the nanosleep reference comes from or why
it's broken. Any help is appreciated.
The use of nanosleep() is part of the (badly broken) attempt to extend
the behaviour of the R_get_location_with_* functions. The calls can be
found in the three GET_LOCATION_WITH_* cases in process_command(), in
display/drivers/lib/command.c.
Apart from the fact that using polling (instead of e.g. select()) is a
bad idea in itself, there's also the fact that nanosleep() isn't
portable. Unfortunately, the other common alternative, i.e. usleep(),
isn't portable either, and the only portable "sleep" function is
sleep(), which sleeps for a whole number of seconds (which is probably
too coarse).
--
Glynn Clements <glynn.clements@virgin.net>
On Fri, 2 Apr 2004, Glynn Clements wrote:
[...]
> I can't figure out where the nanosleep reference comes from or why
> it's broken. Any help is appreciated.
The use of nanosleep() is part of the (badly broken) attempt to extend
the behaviour of the R_get_location_with_* functions. The calls can be
It isn't there any more though. I updated from CVS today and couldn't find
any references to nanosleep so I wondered what this was about.
Use the latest CVS to solve the problem.
A few days later the 'nanosleep' has been removed.
So simply update the version you have from CVS.
Cheers
Markus
On Fri, Apr 02, 2004 at 08:38:00PM +0200, Request Tracker wrote:
this bug's URL: http://intevation.de/rt/webrt?serial_num=2373
-------------------------------------------------------------------------
Subject: undefined reference in libgrass_driver.so
Platform: Solaris2.X/Sparc
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 5.7_exp_2004_03_20
Hi again,
I'm trying to compile grass 5.7 from a CVS snapshot (3/20/04), and the current problem (the one I hit the wall on :p) is that make craps out with:
gcc -L/export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/lib -o /export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/driver/XDRIVER -L/export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/lib OBJ.sparc-sun-solaris2.8/Box_abs.o OBJ.sparc-sun-solaris2.8/Can_do.o OBJ.sparc-sun-solaris2.8/Client.o OBJ.sparc-sun-solaris2.8/Clr_table.o OBJ.sparc-sun-solaris2.8/Color.o OBJ.sparc-sun-solaris2.8/Draw_line.o OBJ.sparc-sun-solaris2.8/Get_w_box.o OBJ.sparc-sun-solaris2.8/Get_w_line.o OBJ.sparc-sun-solaris2.8/Get_w_pnt.o OBJ.sparc-sun-solaris2.8/Graph_Clse.o OBJ.sparc-sun-solaris2.8/Graph_Set.o OBJ.sparc-sun-solaris2.8/Panel.o OBJ.sparc-sun-solaris2.8/Plylne_abs.o OBJ.sparc-sun-solaris2.8/Polygn_abs.o OBJ.sparc-sun-solaris2.8/Raster.o OBJ.sparc-sun-solaris2.8/Raster_RGB.o OBJ.sparc-sun-solaris2.8/Respond.o OBJ.sparc-sun-solaris2.8/Serve_Xevent.o OBJ.sparc-sun-solaris2.8/Work.o OBJ.sparc-sun-solaris2.8/alloc.o -lgras
s_driver -lgrass_D -lgrass_display -lgrass_raster -lgrass_gis -lgrass_datetime -lnsl -lz -lsocket -L/usr/openwin/lib -R/usr/openwin/lib -lSM -lICE -lX11 -lsocket -lnsl -lm -lnsl -lz
/export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/lib/libgrass_driver.so: undefined reference to `nanosleep'
collect2: ld returned 1 exit status
make[4]: *** [/export/home/gwurman/Codes/grass57_exp_2004_03_20/dist.sparc-sun-solaris2.8/driver/XDRIVER] Error 1
make[4]: Leaving directory `/export/home/gwurman/Codes/grass57_exp_2004_03_20/display/drivers/XDRIVER/XDRIVER24'
I can't figure out where the nanosleep reference comes from or why it's broken. Any help is appreciated.
Thanks much,
Gilead Wurman
ASU Active Tectonics
-------------------------------------------- Managed by Request Tracker
_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5
--
Markus Neteler <neteler itc it> http://mpa.itc.it
ITC-irst - Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18 - 38050 Povo (Trento), Italy