Opened 10 years ago

Closed 10 years ago

#2589 closed defect (fixed)

HP-UX aCC - rt_api.c compilation fails for void pointer arithmetic

Reported by: HAkhtar Owned by: Bborie Park
Priority: medium Milestone: PostGIS 2.0.5
Component: raster Version: 2.0.x
Keywords: history Cc:

Description

I have found that PostGIS is not getting compiled on HPUX with aCC compiler.

PostGIS compilation is failing with the following error: ============== "rt_api.c", line 8446: error #2852: expression must be a pointer to a complete object type

ptr += (nXValid * ptlen);

1 error detected in the compilation of "rt_api.c". make[2]: * [rt_api.o] Error 2 make[2]: Leaving directory `/dev/postgis/postgis/raster/rt_core' make[1]: * [corelib] Error 2 make[1]: Leaving directory `/dev/postgis/postgis/raster' make: * [all] Error 1 ==============

GCC works fine at it treats void pointer as char pointer in arithmetic operations.

Attachments (1)

hpux_acc_rt_api_c.patch (351 bytes ) - added by HAkhtar 10 years ago.
A possible fix for the problem

Download all attachments as: .zip

Change History (3)

by HAkhtar, 10 years ago

Attachment: hpux_acc_rt_api_c.patch added

A possible fix for the problem

comment:1 by Bborie Park, 10 years ago

Component: postgisraster
Owner: changed from pramsey to Bborie Park

comment:2 by Bborie Park, 10 years ago

Keywords: history added; aCC HP-UX Compilation Failure rt_api.c removed
Resolution: fixed
Status: newclosed

Fixed in r12175 for -2.0. r12176 for -2.1. r12177 for -trunk.

Note: See TracTickets for help on using tickets.