Problem with PROJ support in mapscript
imap at chesapeake.net
imap at chesapeake.net
Sun Feb 20 19:04:21 PST 2000
Brent, Gerald Evenden is the author and keeper of PROJ4.
I am re-addressing the email directly to him.
Gerald,
We (mapserver-users group) are writing concerning PROJ4.3.
The variable or structure "UV" has a conflict with PERL
(in perl.h) and Brent Fraser mentioned a conflict with
something in Windows. We'd like to propose a change
to the "official" PROJ4 source to rename "UV" to
something more unique. (see notes below)
Also (unrelated PROJ4 issue), while compiling
PROJ4.3 on a SGI Challenge XL with the SGI compiler, I
get an internal compiler error in biveval.c in the following
function:
UV /* general entry point selecting evaluation mode */
biveval(UV in, Tseries *T) {
return (T->power ? bpseval(in, T) : bcheval(in, T));
}
I had to change to the following:
UV /* general entry point selecting evaluation mode */
biveval(UV in, Tseries *T) {
if (T->power) {
return bpseval(in, T);
} else {
return bcheval(in, T);
}
}
This has something to do with the SGI C compiler... I had to make
the change when compiling on the big machines and the workstations
that I am using. I've compiled PROJ on many different machine and
have never seen that choke with any other compiler. Not critical,
but something for you to note.
Regards,
Chris Stuber
Brent Fraser wrote:
>
> I ran into that problem when compiling under Windows.
> I changed the PROJ4 source from UV to ptUV. I need
> to contact Frank W. about integrating the change into
> the "official" PROJ4 source...
>
> Brent
>
> ----- Original Message -----
> From: <imap at chesapeake.net>
> To: <mapserver-users at lists.gis.umn.edu>
> Sent: Saturday, February 19, 2000 10:03 PM
> Subject: Problem with PROJ support in mapscript
>
> >
> >
> > I have build a version of mapserv3.3_007 with PROJ4 support and
> > trying to make mapscript have the same options, so I edited
> > mapscript Makefile.PL to include the PROJ4 lib and includes,
> > but when I try to "make" it, I get this error:
> >
> > In file included from ../../mapproject.h:7,
> > from ../../mapshape.h:6,
> > from ../../map.h:23,
> > from mapscript_wrap.c:443:
> > /home/cstuber/PROJ.4/src/projects.h:43: conflicting types for `UV'
> > /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:841: previous declaration of
> > `UV'
> > make: *** [mapscript_wrap.o] Error 1
> >
> > Seems that both PROJ4 and PERL both declare the variable "UV"
> > which are distinctly different. I hate to hack up either, but
> > may have to in order to get the mapscript to compile. Any ideas
> > or suggestions from the usergroup?
> >
> >
--
Chris Stuber (mapsurfer)
Silicon Mapping Solutions, Inc.
More information about the MapServer-users
mailing list