[Gdal-dev] Solaris/GDAL/Kakadu compile wierdness

Chris G. Nicholas cgn at globexplorer.com
Fri May 27 16:04:36 EDT 2005


Hmmm - (apologies if this has been answered before..) 
when I try to use the resultant libgdal in a subsequent build of GRASS, getting strange ld warnings and unresolved kdu lib issues...

thanks in advance for any suggestions
Chris
---------------------------------------
bigsur.globexplorer.com-> pwd
/export/home/webdemo/src/grass-6.0.0/raster/r.in.gdal

bigsur.globexplorer.com-> make
gcc  -L/export/home/webdemo/src/grass-6.0.0/dist.sparc-sun-solaris2.9/lib        -DPACKAGE=\""grassmods"\" -o /export/home/webdemo/src/grass-6.0.0/dist.sparc-sun-solaris2.9/bin/r.in.gdal OBJ.sparc-sun-solaris2.9/main.o -lgrass_gproj -lproj  /usr/local/lib/libgdal.so   -L/usr/local/lib -lgeos -L/usr/local/hdf/lib -ljpeg -ltiff -lpng -lz -lm -ldl -lkdu -lmfhdf -ldf -ludport -lnsl -L/usr/local/pgsql/lib -lpq -lgrass_gis -lgrass_datetime -lnsl    -lz  -lsocket  -lgrass_I -lgrass_vask -lcurses  /usr/local/lib/libgdal.so   -L/usr/local/lib -lgeos -L/usr/local/hdf/lib -ljpeg -ltiff -lpng -lz -lm -ldl -lkdu -lmfhdf -ldf -ludport -lnsl -L/usr/local/pgsql/lib -lpq -lgrass_gmath     -lm  -lnsl    -lz
ld: warning: file /usr/local/lib/libgdal.so: attempted multiple inclusion of file
ld: warning: symbol `sigfpe' has differing types:
        (file /export/home/webdemo/src/grass-6.0.0/dist.sparc-sun-solaris2.9/lib/libgrass_I.so type=OBJT; file /usr/lib/libc.so type=FUNC);
        /export/home/webdemo/src/grass-6.0.0/dist.sparc-sun-solaris2.9/lib/libgrass_I.so definition taken
Undefined                       first referenced
 symbol                             in file
jp2_dimensions::init(siz_params*, bool) /usr/local/lib/libgdal.so
kdu_roi_rect::kdu_roi_rect[in-charge](kdu_codestream, kdu_dims)/usr/local/lib/libgdal.so
jp2_source::access_palette()        /usr/local/lib/libgdal.so
vtable for jp2_input_box            /usr/local/lib/libgdal.so


:

...
jp2_channels::set_opacity_mapping(int, int, int, int)/usr/local/lib/libgdal.so
jp2_channels::get_opacity_mapping(int, int&, int&, int&)/usr/local/lib/libgdal.so
jp2_colour::init(jp2_colour_space)      /usr/local/lib/libgdal.so
....

going back to kakadu itself, 

bigsur.globexplorer.com# ls -l libkd*
-rw-r--r--   1 root     other     830268 May 20 22:17 libkdu.a
lrwxrwxrwx   1 root     other         29 May 24 21:43 libkdu.so -> /usr/local/lib/libkdu_v45R.so
-rwxr-xr-x   1 root     other     662264 May 25 12:13 libkdu_v45R.so
bigsur.globexplorer.com# nm libkdu_v45R.so | grep jp2_channels
bigsur.globexplorer.com# nm libkdu.a | grep jp2_channels
bigsur.globexplorer.com#





More information about the Gdal-dev mailing list