[mapserver-users] Mapserver compile error

Ivan Paoluzzi tesimap at hotmail.com
Sun Sep 15 02:56:41 PDT 2002


Hi Krung,
thanks for your help.
In compiling gd, in makefile.nt I had just changed, in list of OBJS, gdft.c 
in gdft.obj; and gd_gif_in.obj gd_gif_out.obj gd_biggif_out.obj 
gd_lzw_out.obj are all present.
And I have correct the bug in gd_wbmp.c

But I have this list of error in gdft.c:

        cl -I c:\projects\zlib -I c:\projects\libpng -I 
c:\projects\libttf\lib -
I c:\projects\libjpeg\src -O -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_TTF /c 
gdft.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

gdft.c
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2146: syntax error : 
mis
sing ')' before identifier 'owner'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2081: 'uid_t' : name 
in
formal parameter list illegal
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2061: syntax error : 
ide
ntifier 'owner'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2059: syntax error : 
';'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2059: syntax error : 
','
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2059: syntax error : 
')'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(48) : error C2061: syntax error : 
identifier 'fork'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(48) : error C2059: syntax error : 
';'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(48) : error C2059: syntax error : 
'type'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(50) : error C2061: syntax error : 
identifier 'getegid'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(50) : error C2059: syntax error : 
';'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(50) : error C2059: syntax error : 
'type'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(51) : error C2061: syntax error : 
identifier 'geteuid'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(51) : error C2059: syntax error : 
';'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(51) : error C2059: syntax error : 
'type'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(52) : error C2061: syntax error : 
ide
ntifier 'getgid'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(52) : error C2059: syntax error : 
';'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(52) : error C2059: syntax error : 
'type'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(54) : error C2061: syntax error : 
identifier 'getpid'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(54) : error C2059: syntax error : 
';'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(54) : error C2059: syntax error : 
'type'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(55) : error C2061: syntax error : 
identifier 'getuid'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(55) : error C2059: syntax error : 
';'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(55) : error C2059: syntax error : 
'type'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(60) : error C2146: syntax error : 
missing ')' before identifier 'group'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(60) : error C2061: syntax error : 
ide
ntifier 'group'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(60) : error C2059: syntax error : 
';'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(60) : error C2059: syntax error : 
')'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(61) : error C2146: syntax error : 
missing ')' before identifier 'user'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(61) : error C2061: syntax error : 
ide
ntifier 'user'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(61) : error C2059: syntax error : 
';'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(61) : error C2059: syntax error : 
')'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2146: syntax error : 
missing ')' before identifier 'owner'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2081: 'uid_t' : name 
informal parameter list illegal
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2061: syntax error : 
identifier 'owner'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2059: syntax error : 
';'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2059: syntax error : 
','
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2059: syntax error : 
')'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(74) : error C2146: syntax error : 
missing ')' before identifier 'group'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(74) : error C2061: syntax error : 
ide
ntifier 'group'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(74) : error C2059: syntax error : 
';'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(74) : error C2059: syntax error : 
')'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(75) : error C2146: syntax error : 
missing ')' before identifier 'user'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(75) : error C2061: syntax error : 
identifier 'user'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(75) : error C2059: syntax error : 
';'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(75) : error C2059: syntax error : 
')'

NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
-------

If I comment this section in gdft.c
#ifndef MSWIN32
#include <unistd.h>
#else
#define R_OK 2
#endif

I haven't those errors and it compile gd; this is a problem?
Sorry, I'm not a good C programmer...
Ivan




>From: "Krung Saengpole" <saengpole at excite.com>
>Reply-To: saengpole at excite.com
>To: tesimap at hotmail.com
>Subject: Re: [mapserver-users] Mapserver compile error
>Date: Sat, 14 Sep 2002 00:43:44 -0400 (EDT)
>
>  Hi Ivan, I used to have problems like you last week. In compiling 
>regex-0.12, you have to use command like: cl /c /DHAVE_STRING_H 
>/DREGEX_MALLOC regex.c And in gd compiling. Check again in makefile.nt that 
>gdft.c had changed to gdft.obj in OBJS = gd.obj gd_gd.obj .....   
>.................................gdft.obj ................... near the end 
>of file. And another thing to do, if it wasn't there, if there are 
>gd_gif_in.obj, gd_gif_out.obj ,gd_biggif_out.obj and gd_lzw_out.obj in this 
>statement like the following: OBJS = gd.obj gd_gd.obj 
>.........gd_gif_in.obj gd_gif_out.obj gd_biggif_out.obj gd_lzw_out.obj 
>.....................................gdft.obj................................. 
>Oh, I forgot to tell you that I used patched gd-1.8.4 version downloaded 
>from http://www.rime.com.au/gd. Again, don't forget to delete .obj file 
>before recompiling. And did you correct the known bugs as: In 
>gd_wbmp.c:change  #include <gd.h>#include <gd_fonts.h> to 
>#include "gd.h"#include "gd_fonts.h" HTHKrung--- On Fri 09/13, Ivan 
>Paoluzzi < tesimap at hotmail.com > wrote:From: Ivan Paoluzzi [mailto: 
>tesimap at hotmail.com]To: assefa at dmsolutions.ca, 
>mapserver-users at lists.gis.umn.eduDate: Fri, 13 Sep 2002 17:12:03 
>+0200Subject: Re: [mapserver-users] Mapserver compile errorHi,I have 
>removed the gd target from the makefile, as you have told.But I have a new 
>error:----------------cl /nologo /Zi -I../gd -I../tiff/libtiff 
>-I../libjpeg/src -I../proj/src-I../regex -I..\gdal/ogr/ogrsf_frmts 
>-I..\gdal/ogr -I..\gdal/ogr/../port -DHAVE_STRING_H -DREGEX_MALLOC 
>-DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H 
>-DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP 
>-DUSE_GD_TTF -DUSE_GD_TTF -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_WMS /c 
>mapserv.c /Fomapserv.objmapserv.clink /NODEFAULTLIB:libcd mapserv.obj 
>mapserver.lib ../gd/gd.lib ../libjpeg/src/libjpeg.lib ../libpng/libpng.lib 
>../zlib/zlib.lib ../libttf/lib/libttf.lib ../tiff/libtiff/libtiff.lib 
>../libjpeg/src/libjpeg.lib 
>../proj/src/proj.lib..\gdal/ogr/ogrsf_frmts/ogrsf_frmts.lib 
>..\gdal/ogr/ogrsf_frmts/ogrsf_frmts_sup.lib ..\gdal/ogr/ogr.lib 
>..\gdal/ogr/../port/cpl.libMicrosoft (R) Incremental Linker Version 
>6.00.8168Copyright (C) Microsoft Corp 1992-1998. All rights 
>reserved.Creating library mapserv.lib and object 
>mapserv.expmapserver.lib(regex.obj) : error LNK2001: unresolved external 
>symbol _allocamapserver.lib(maputil.obj) : error LNK2001: unresolved 
>external symbol _gdImageWBMPgd.lib(gd.obj) : error LNK2001: unresolved 
>external symbol _gdCallocgd.lib(gd_jpeg.obj) : error LNK2001: unresolved 
>external symbol _gdCallocgd.lib(gd_io_ss.obj) : error LNK2001: unresolved 
>external symbol _gdMallocgd.lib(gd.obj) : error LNK2001: unresolved 
>external symbol _gdMallocgd.lib(gd_png.obj) : error LNK2001: unresolved 
>external symbol _gdMallocgd.lib(gd_io_file.obj) : error LNK2001: unresolved 
>external symbol _gdMallocgd.lib(gd_io_dp.obj) : error LNK2001: unresolved 
>external symbol _gdMallocgd.lib(gd_io_dp.obj) : error LNK2001: unresolved 
>external symbol _gdFreegd.lib(gd_io_ss.obj) : error LNK2001: unresolved 
>external symbol _gdFreegd.lib(gd.obj) : error LNK2001: unresolved external 
>symbol _gdFreegd.lib(gd_jpeg.obj) : error LNK2001: unresolved external 
>symbol _gdFreegd.lib(gd_png.obj) : error LNK2001: unresolved external 
>symbol _gdFreegd.lib(gd_io_file.obj) : error LNK2001: unresolved external 
>symbol _gdFreegd.lib(gd.obj) : error LNK2001: unresolved external symbol 
>_gdReallocgd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol 
>_gdReallocmapserv.exe : fatal error LNK1120: 6 unresolved externalsNMAKE : 
>fatal error U1077: 'link' : return code '0x460'Stop.---------------I think 
>to have compiled correctly gd, but I don't understand what's this extenal 
>symbol...Thanks in advanceIvan>From: Yewondwossen Assefa >To: Ivan 
>Paoluzzi >CC: mapserver-users at lists.gis.umn.edu>Subject: Re: 
>[mapserver-users] Mapserver compile error>Date: Thu, 12 Sep 2002 
>14:05:59 -0400>>You actually do not need to compile gd from 
>mapserver. It was done for >earlier>versions of mapserver. I have 
>removed the gd target from the makefile.vc in >the>CVS version. If 
>your are not compiling from the CVS version, just remove >the>whole 
>gd target code as well as the MAKE_GD statement. (all you will need >is 
>to>link it with the GD library that you have compiled. Make sur that the 
>flags>GD_INC and GD_LIB are set properly in the 
>makefile)>>Later,>>Ivan Paoluzzi wrote:>> > Hi,> 
>> I want to compile MS 3.5 on Win XP, but I have this error message:> 
>>> > Microsoft (R) Program Maintenance Utility Version 
>6.00.8168.0> > Copyright (C) Microsoft Corp 1988-1998. All rights 
>reserved.> >> > cd gd> > NMAKE : fatal error U1077: 'cd' 
>: return code '0x1'> > Stop.> >> > ------> >> 
>> In makefile.vc I have changed> > gd::> > cd gd-1.2> 
>> nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)"> > cd ..> 
>>> > in> > gd:> > cd gd> > nmake /f makefile.nt 
>OPTFLAGS="$(OPTFLAGS)"> > cd ..> >> > but I have the same 
>problem.> > Where is the error?> > I have just compiled 
>correctly gd,freetype,proj,ecc. and I have changed >the> > path, 
>in makefile, of these package.> > I use gd-1.8.4 and this is in 
>c:\projects\gd> >> > Regards> > Ivan> >> > 
>_________________________________________________________________> > 
>Chiacchiera con gli amici online, prova MSN Messenger:> > 
>http://messenger.msn.it>>-->---------------------------------------------------------------->Assefa 
>Yewondwossen>Software Analyst>>Email: 
>assefa at dmsolutions.ca>http://www.dmsolutions.ca/>>Phone: (613) 
>565-5056 (ext 14)>Fax: (613) 
>565-0925>----------------------------------------------------------------_________________________________________________________________MSN 
>Foto è il sistema più facile per condividere e stampare foto online: 
>http://photos.msn.it
>
>------------------------------------------------
>Changed your e-mail?  Keep your contacts!  Use this free e-mail change of 
>address service from Return Path.  Register now!




_________________________________________________________________
Chiacchiera con gli amici online, prova MSN Messenger: 
http://messenger.msn.it




More information about the MapServer-users mailing list