Opened 18 years ago

Closed 18 years ago

#1529 closed defect (fixed)

Win32 compilation

Reported by: fsimon@… Owned by: assefa
Priority: high Milestone:
Component: Build Problems Version: 4.6
Severity: normal Keywords:
Cc: sgillies@…

Description

Some problems appear to compile the JavaMapscript when the WMS server is not 
defined in the nmake.

The output of the problem:
mapscript_wrap.c
        link /dll /debug  mapscript_wrap.obj c:/projects/gdwin32/bgd.lib
  C:\Projects\gdal-1.3.1/gdal_i.lib           
C:\Oracle\Client\10.2/oci/lib/msvc
/oci.lib    ..\..\mapserver_i.lib /NODEFAULTLIB:"MSVCRTD" /NODEFAULTLIB:libcd /
N
ODEFAULTLIB:libcmtd /NODEFAULTLIB:msvcrtd /NODEFAULTLIB:LIBC /DEBUG /def:..\..\
m
apserver.def  /out:mapscript.dll /implib:mapscript_i.lib
Microsoft (R) Incremental Linker Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
 
   Creating library mapscript_i.lib and object mapscript_i.exp
mapscript_wrap.obj : error LNK2001: unresolved external symbol _msGMLWriteQuery
mapscript.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.

This is related with the define for WMS_SVR in mapows.h

Change History (5)

comment:1 by dmorissette, 18 years ago

Cc: dmorissette@… added
Owner: changed from mapserverbugs to assefa
Assefa, can you please have a look (since this relates to WMS and Windows)? If
you can't do anything about this then the bug should be reassigned to the owner
of the MapScript component (Sean).

comment:2 by assefa, 18 years ago

Cc: sgillies@… added
Status: newassigned
Adding Sean in CC.

I think the fix is simply removing the ifdef USE_WMS_SVR around the declaration
of msGMLWriteQuery in mapows.h. The function already has these same ifdef.
I did not remove it before Sean comments on this. 

comment:3 by fsimon@…, 18 years ago

Hi folks,
    This bug I, Frank and Sean talked in the IRC channel last week. The 
solution is what Assefa suggested. Just removing the msGMLWriteQuery from the 
#ifdef solve the problem. In the same chat Frank suggested me to commit the 
code, but I wanted to submit the bug id before commit it.
     

comment:4 by fsimon@…, 18 years ago

Sorry guys I forgot to commit it before the RC-1, this fix can be include 
before the 4.8 final? I am out of the lab until next 16, can anyone commit the 
solution?
The solution is what Assefa suggested, Just removing the msGMLWriteQuery from 
the #ifdef in mapows.h.

comment:5 by assefa, 18 years ago

Resolution: fixed
Status: assignedclosed
commited the changes to mapows.h
Note: See TracTickets for help on using tickets.