Ticket #1370 (closed defect: fixed)

Opened 18 months ago

Last modified 18 months ago

[raster] undefined references to GDAL library

Reported by: strk Owned by: pracine
Priority: blocker Milestone: PostGIS 2.0.0
Component: raster Version: trunk
Keywords: Cc:

Description (last modified by strk) (diff)

raster/loader/raster2pgsql.c:695: undefined reference to `GDALOpenShared'
raster/loader/raster2pgsql.c:701: undefined reference to `GDALGetRasterCount'
raster/loader/raster2pgsql.c:718: undefined reference to `GDALGetProjectionRef'
...

Many more. As of r8375

Change History

Changed 18 months ago by strk

  • description modified (diff)

Changed 18 months ago by strk

Somehow LDFLAGS gets eaten here. Changing name to the variable fixes the issue for me (like: ALL_LDFLAGS)

Changed 18 months ago by strk

Droppin the PGXS include also fixes this. Do we really need it for raster2pgsql ?

Changed 18 months ago by dustymugs

PGXS isn't needed for raster2pgsql. Removed as of r8383.

Changed 18 months ago by dustymugs

  • summary changed from undefined references to GDAL library to [raster] undefined references to GDAL library

Changed 18 months ago by dustymugs

Reverted changes made in r8383 in r8384. PGXS is need to properly install the loader as without it, the bindir variable isn't set. Need to dig at what's happening.

Changed 18 months ago by strk

  • status changed from new to closed
  • resolution set to fixed

works here

Changed 18 months ago by strk

  • status changed from closed to reopened
  • resolution fixed deleted

Oops, sorry, I had local modifications to Makefile. It still fails as of r8383

Changed 18 months ago by dustymugs

Can you attach the output of the make? I can't seem to understand what could be going wrong.

Changed 18 months ago by strk

The output clearly shows LDFLAG evaluating to the empty string. I don't think you're doing anything bad, it's more likely PGXS is. Just replacing LDFLAGS with ALL_LDFLAGS (both in definition and use) fixes it for me. I could commit that change but maybe you want to figure out why PGXS is doing that (with postgresql 8.4). Let me know.

Changed 18 months ago by dustymugs

OK. I'll do some testing with 8.4 as it works fine in 9.0. Will need to test 9.1 as well.

Changed 18 months ago by dustymugs

Fixed in r8388.

Changed 18 months ago by strk

  • status changed from reopened to closed
  • resolution set to fixed

confirmed. thanks.

Note: See TracTickets for help on using tickets.