Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 580250 Details for
Bug 816282
/usr/include/ogdi/ecs_util.h:108:22: fatal error: projects.h: No such file or directory
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
switch to proj_api.h
ogdi-3.2.0.beta2-proj.patch (text/plain), 8.82 KB, created by
Dan Horák
on 2012-04-25 18:50:39 UTC
(
hide
)
Description:
switch to proj_api.h
Filename:
MIME Type:
Creator:
Dan Horák
Created:
2012-04-25 18:50:39 UTC
Size:
8.82 KB
patch
obsolete
>diff -up ogdi-3.2.0.beta2/configure.in.proj ogdi-3.2.0.beta2/configure.in >--- ogdi-3.2.0.beta2/configure.in.proj 2008-05-30 19:45:30.000000000 +0200 >+++ ogdi-3.2.0.beta2/configure.in 2012-04-25 20:16:37.802114825 +0200 >@@ -81,13 +81,13 @@ AC_ARG_WITH(proj,[ --with-proj[=ARG] > if test "$with_proj" = "yes" ; then > > AC_CHECK_LIB(proj,pj_init,PROJ_SETTING=external,PROJ_SETTING=missing,) >- AC_CHECK_HEADERS(projects.h) >+ AC_CHECK_HEADERS(proj_api.h) > > if test $PROJ_SETTING = missing ; then > AC_MSG_ERROR([Unable to find external PROJ.4 library, give path or use default internal library.]) > fi > if test "$ac_cv_header_projects_h" = no ; then >- AC_MSG_ERROR([Unable to find external PROJ.4 projects.h file, give path or use default internal library.]) >+ AC_MSG_ERROR([Unable to find external PROJ.4 proj_api.h file, give path or use default internal library.]) > fi > > PROJ_SETTING=external >@@ -95,11 +95,11 @@ if test "$with_proj" = "yes" ; then > > elif test "$with_proj" != "no" -a "$with_proj" != "" ; then > >- if test -r $with_proj/include/projects.h ; then >- echo "checking for $with_proj/include/projects.h ... found" >+ if test -r $with_proj/include/projapi.h ; then >+ echo "checking for $with_proj/include/proj_api.h ... found" > PROJ_INCLUDE=-I$with_proj/include > else >- AC_MSG_ERROR([Unable to find $with_proj/include/projects.h]) >+ AC_MSG_ERROR([Unable to find $with_proj/include/proj_api.h]) > fi > > if test -r $with_proj/lib/libproj.so ; then >diff -up ogdi-3.2.0.beta2/configure.proj ogdi-3.2.0.beta2/configure >--- ogdi-3.2.0.beta2/configure.proj 2008-05-30 19:49:06.000000000 +0200 >+++ ogdi-3.2.0.beta2/configure 2012-04-25 20:16:37.804114793 +0200 >@@ -3939,7 +3939,7 @@ else > fi > > >-for ac_header in projects.h >+for ac_header in proj_api.h > do > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` > if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then >@@ -4085,8 +4085,8 @@ echo "$as_me: error: Unable to find exte > { (exit 1); exit 1; }; } > fi > if test "$ac_cv_header_projects_h" = no ; then >- { { echo "$as_me:$LINENO: error: Unable to find external PROJ.4 projects.h file, give path or use default internal library." >&5 >-echo "$as_me: error: Unable to find external PROJ.4 projects.h file, give path or use default internal library." >&2;} >+ { { echo "$as_me:$LINENO: error: Unable to find external PROJ.4 proj_api.h file, give path or use default internal library." >&5 >+echo "$as_me: error: Unable to find external PROJ.4 proj_api.h file, give path or use default internal library." >&2;} > { (exit 1); exit 1; }; } > fi > >@@ -4095,12 +4095,12 @@ echo "$as_me: error: Unable to find exte > > elif test "$with_proj" != "no" -a "$with_proj" != "" ; then > >- if test -r $with_proj/include/projects.h ; then >- echo "checking for $with_proj/include/projects.h ... found" >+ if test -r $with_proj/include/proj_api.h ; then >+ echo "checking for $with_proj/include/proj_api.h ... found" > PROJ_INCLUDE=-I$with_proj/include > else >- { { echo "$as_me:$LINENO: error: Unable to find $with_proj/include/projects.h" >&5 >-echo "$as_me: error: Unable to find $with_proj/include/projects.h" >&2;} >+ { { echo "$as_me:$LINENO: error: Unable to find $with_proj/include/proj_api.h" >&5 >+echo "$as_me: error: Unable to find $with_proj/include/proj_api.h" >&2;} > { (exit 1); exit 1; }; } > fi > >diff -up ogdi-3.2.0.beta2/ogdi/c-api/client.c.proj ogdi-3.2.0.beta2/ogdi/c-api/client.c >--- ogdi-3.2.0.beta2/ogdi/c-api/client.c.proj 2012-04-25 20:42:12.968923028 +0200 >+++ ogdi-3.2.0.beta2/ogdi/c-api/client.c 2012-04-25 20:43:19.774827827 +0200 >@@ -1576,7 +1576,7 @@ ecs_Result *cln_SetServerProjection(Clie > char *error_message; > ecs_CtlPoints *cpts; > ecs_Result *res; >- PJ *tempproj; >+ projPJ tempproj; > > if (multiblock != 0) { > res = &cln_dummy_result; >@@ -1598,7 +1598,7 @@ ecs_Result *cln_SetServerProjection(Clie > /* Check if the projection is valid */ > > if (strncmp(projection,PROJ_LONGLAT,13) != 0) { >- tempproj = (PJ *) cln_ProjInit(projection); >+ tempproj = (projPJ) cln_ProjInit(projection); > if(tempproj == NULL) { > res = &cln_dummy_result; > ecs_SetError(res,1,"This projection string is invalid"); >@@ -1775,7 +1775,7 @@ ecs_Result *cln_SetClientProjection(Clie > ecs_Result *res; > register ecs_Client *cln; > char *server_proj; >- PJ *oldtarget,*oldsource; >+ projPJ oldtarget,oldsource; > ecs_Region oldreg; > int oldisprojequal; > int oldisTargetLL; >@@ -1874,7 +1874,7 @@ ecs_Result *cln_SetClientProjection(Clie > > if (strncmp(projection,PROJ_LONGLAT,13) != 0) { > cln->isTargetLL = FALSE; >- cln->target = (PJ *) cln_ProjInit(projection); >+ cln->target = (projPJ) cln_ProjInit(projection); > if(cln->target == NULL) { > goto setprojerror; > } >@@ -1920,7 +1920,7 @@ ecs_Result *cln_SetClientProjection(Clie > > if (strncmp(server_proj,PROJ_LONGLAT,13) != 0) { > cln->isSourceLL = FALSE; >- cln->source = (PJ *) cln_ProjInit(server_proj); >+ cln->source = (projPJ) cln_ProjInit(server_proj); > if(cln->source == NULL) { > goto setprojerror; > } >@@ -2328,13 +2328,13 @@ char *cln_GetTclProc(ClientID) > * char *d: Projection name > * > * OUT >- * return PJ *: New projection structure. If NULL, the operation >+ * return projPJ: New projection structure. If NULL, the operation > * is a failure. > * > *---------------------------------------------------------------------- > */ > >-PJ *cln_ProjInit(d) >+projPJ cln_ProjInit(d) > char *d; > { > int i,n; >@@ -2343,7 +2343,7 @@ PJ *cln_ProjInit(d) > char *l; > int longueur; > char *c; >- PJ *retour; >+ projPJ retour; > > if ((c = (char *) malloc(strlen(d)+3)) == NULL) { > return NULL; >@@ -2378,7 +2378,7 @@ PJ *cln_ProjInit(d) > n++; > } > >- retour = (PJ *) pj_init(n, (char **) tableau); >+ retour = (projPJ) pj_init(n, (char **) tableau); > free(c); > free(tableau); > >diff -up ogdi-3.2.0.beta2/ogdi/c-api/ecsgeo.c.proj ogdi-3.2.0.beta2/ogdi/c-api/ecsgeo.c >--- ogdi-3.2.0.beta2/ogdi/c-api/ecsgeo.c.proj 2012-04-25 20:35:38.045391469 +0200 >+++ ogdi-3.2.0.beta2/ogdi/c-api/ecsgeo.c 2012-04-25 20:35:48.783215711 +0200 >@@ -310,7 +310,7 @@ ecs_distance_meters (projection,X1, Y1, > char *projection; > double X1,Y1,X2,Y2; > { >- PJ *proj; >+ projPJ proj; > char **argv; > int argc; > double lon1,lat1,lon2,lat2; >diff -up ogdi-3.2.0.beta2/ogdi/datum_driver/usa/dtusa.c.proj ogdi-3.2.0.beta2/ogdi/datum_driver/usa/dtusa.c >--- ogdi-3.2.0.beta2/ogdi/datum_driver/usa/dtusa.c.proj 2012-04-25 20:43:42.298458566 +0200 >+++ ogdi-3.2.0.beta2/ogdi/datum_driver/usa/dtusa.c 2012-04-25 20:44:16.002905952 +0200 >@@ -26,7 +26,7 @@ > ********************************************************************/ > > #include "ecs.h" >-#include "projects.h" >+#include "proj_api.h" > > typedef struct { > struct CTABLE *dtptr; >diff -up ogdi-3.2.0.beta2/ogdi/include/ecs_util.h.proj ogdi-3.2.0.beta2/ogdi/include/ecs_util.h >--- ogdi-3.2.0.beta2/ogdi/include/ecs_util.h.proj 2008-05-28 03:47:03.000000000 +0200 >+++ ogdi-3.2.0.beta2/ogdi/include/ecs_util.h 2012-04-25 20:41:52.361260622 +0200 >@@ -105,12 +105,7 @@ > #include <sys/types.h> > #include <sys/stat.h> > >-#include "projects.h" >- >-/* Ensure we are compatible with PROJ.4.4.x and PROJ.4.3.x */ >-#ifndef USE_PROJUV >-# define projUV UV >-#endif >+#include "proj_api.h" > > #include "ecs.h" > >@@ -1054,8 +1049,8 @@ typedef struct { > ecs_Family currentSelectionFamily: Current layer selection type > char *tclprocname: attribute callback procedure for tcl > char *target_proj: Projection descriptor >- PJ *target: target (c interface) projection descriptors >- PJ *source: source (driver) projection descriptors >+ projPJ target: target (c interface) projection descriptors >+ projPJ source: source (driver) projection descriptors > ecs_Datum targetdatum: target datum information > ecs_Datum sourcedatum: source datum information > void *dthandle: Handle to the datum driver >@@ -1092,8 +1087,8 @@ typedef struct { > ecs_Family currentSelectionFamily; /* Current layer selection type */ > char *tclprocname; /* attribute callback procedure for tcl */ > char *target_proj; >- PJ *target; /* source and target projection descriptors */ >- PJ *source; >+ projPJ target; /* source and target projection descriptors */ >+ projPJ source; > int isSourceLL; /* flags to avoid unnecessary computation */ > int isTargetLL; > int isProjEqual; >@@ -1165,7 +1160,7 @@ char *cln_GetTclProc _AN > > /* Projection conversion functions */ > >-PJ *cln_ProjInit _ANSI_ARGS_((char *d)); >+projPJ cln_ProjInit _ANSI_ARGS_((char *d)); > int cln_CompareProjections _ANSI_ARGS_((int ClientID)); > int cln_UpdateMaxRegion _ANSI_ARGS_((int ClientID, double x, double y, ecs_Region *gr, int sens, int first)); > int cln_ConvRegion _ANSI_ARGS_((int ClientID, ecs_Region *gr, int sens));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 816282
:
580233
| 580250 |
589954