[GRASS5] 5.7: compilation shared libs on Mac OSX failure

Markus Neteler neteler at itc.it
Mon Nov 17 07:59:03 EST 2003


Today I gave another try to the compilation of GRASS 5.7 with shared libs
on Mac OSX. All libraries compile, but compilation stops at
'driver' lib needed for XDRIVER:

cd display/drivers/lib
make
gcc -L/sw/lib -L/grass57exp/dist.powerpc-apple-darwin6.8/lib    -dynamiclib
-Wl,-flat_namespace,-U,_cuserid -L/sw/lib
-L/grass57exp/dist.powerpc-apple-darwin6.8/lib      \
        OBJ.powerpc-apple-darwin6.8/Box_abs.o
OBJ.powerpc-apple-darwin6.8/Box_rel.o OBJ.powerpc-apple-darwin6.8/Client.o
OBJ.powerpc-apple-darwin6.8/Clr_table.o OBJ.powerpc-apple-darwin6.8/Color.o
OBJ.powerpc-apple-darwin6.8/Cont_abs.o
OBJ.powerpc-apple-darwin6.8/Cont_rel.o OBJ.powerpc-apple-darwin6.8/Erase.o
OBJ.powerpc-apple-darwin6.8/Font_get.o
OBJ.powerpc-apple-darwin6.8/Get_t_box.o
OBJ.powerpc-apple-darwin6.8/Linemod.o OBJ.powerpc-apple-darwin6.8/Move_abs.o
OBJ.powerpc-apple-darwin6.8/Move_rel.o
OBJ.powerpc-apple-darwin6.8/Num_colors.o
OBJ.powerpc-apple-darwin6.8/Plydts_abs.o
OBJ.powerpc-apple-darwin6.8/Plydts_rel.o
OBJ.powerpc-apple-darwin6.8/Plylne_abs.o
OBJ.powerpc-apple-darwin6.8/Plylne_rel.o
OBJ.powerpc-apple-darwin6.8/Polygn_rel.o
OBJ.powerpc-apple-darwin6.8/Raster_int.o
OBJ.powerpc-apple-darwin6.8/Raster_chr.o
OBJ.powerpc-apple-darwin6.8/Raster_def.o
OBJ.powerpc-apple-darwin6.8/Reset_clrs.o
OBJ.powerpc-apple-darwin6.8/Respond.o OBJ.powerpc-apple-darwin6.8/Returns.o
OBJ.powerpc-apple-darwin6.8/Set_window.o OBJ.powerpc-apple-darwin6.8/Text.o
OBJ.powerpc-apple-darwin6.8/Text_size.o OBJ.powerpc-apple-darwin6.8/Work.o
OBJ.powerpc-apple-darwin6.8/clip.o OBJ.powerpc-apple-darwin6.8/color_supp.o
OBJ.powerpc-apple-darwin6.8/command.o
OBJ.powerpc-apple-darwin6.8/connect_fifo.o
OBJ.powerpc-apple-darwin6.8/connect_sock.o
OBJ.powerpc-apple-darwin6.8/font.o OBJ.powerpc-apple-darwin6.8/main.o
OBJ.powerpc-apple-darwin6.8/pad.o OBJ.powerpc-apple-darwin6.8/utils.o
OBJ.powerpc-apple-darwin6.8/RGB.o OBJ.powerpc-apple-darwin6.8/Text2.o
-lgrass_raster -lgrass_display -lgrass_gis -lgrass_datetime  -lintl -o
/grass57exp/dist.powerpc-apple-darwin6.8/lib/libgrass_driver.dylib
ld: Undefined symbols:
_Polygon_abs
_can_do_float
_reset_color
_color
_draw_line
_Get_location_with_box2
_Get_location_with_line2
_Get_location_with_pointer2
_Graph_Close
_Panel_delete
_Panel_restore
_Panel_save
_Graph_Set

The functions are in ../XDRIVER/XDRIVER24/ which is to be compiled later.
Should these functions be moved into the driver lib (how?)?

Without XDRIVER, GRASS 5.7 isn't that funny...

Markus




More information about the grass-dev mailing list