[mapserver-users] Mapserver compile error

Ivan Paoluzzi tesimap at hotmail.com
Sun Sep 15 05:56:41 EDT 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 &lt;gd.h&gt;#include &lt;gd_fonts.h&gt; to 
>#include "gd.h"#include "gd_fonts.h" HTHKrung--- On Fri 09/13, Ivan 
>Paoluzzi &lt; tesimap at hotmail.com &gt; 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&gt;From: Yewondwossen Assefa &gt;To: Ivan 
>Paoluzzi &gt;CC: mapserver-users at lists.gis.umn.edu&gt;Subject: Re: 
>[mapserver-users] Mapserver compile error&gt;Date: Thu, 12 Sep 2002 
>14:05:59 -0400&gt;&gt;You actually do not need to compile gd from 
>mapserver. It was done for &gt;earlier&gt;versions of mapserver. I have 
>removed the gd target from the makefile.vc in &gt;the&gt;CVS version. If 
>your are not compiling from the CVS version, just remove &gt;the&gt;whole 
>gd target code as well as the MAKE_GD statement. (all you will need &gt;is 
>to&gt;link it with the GD library that you have compiled. Make sur that the 
>flags&gt;GD_INC and GD_LIB are set properly in the 
>makefile)&gt;&gt;Later,&gt;&gt;Ivan Paoluzzi wrote:&gt;&gt; &gt; Hi,&gt; 
>&gt; I want to compile MS 3.5 on Win XP, but I have this error message:&gt; 
>&gt;&gt; &gt; Microsoft (R) Program Maintenance Utility Version 
>6.00.8168.0&gt; &gt; Copyright (C) Microsoft Corp 1988-1998. All rights 
>reserved.&gt; &gt;&gt; &gt; cd gd&gt; &gt; NMAKE : fatal error U1077: 'cd' 
>: return code '0x1'&gt; &gt; Stop.&gt; &gt;&gt; &gt; ------&gt; &gt;&gt; 
>&gt; In makefile.vc I have changed&gt; &gt; gd::&gt; &gt; cd gd-1.2&gt; 
>&gt; nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)"&gt; &gt; cd ..&gt; 
>&gt;&gt; &gt; in&gt; &gt; gd:&gt; &gt; cd gd&gt; &gt; nmake /f makefile.nt 
>OPTFLAGS="$(OPTFLAGS)"&gt; &gt; cd ..&gt; &gt;&gt; &gt; but I have the same 
>problem.&gt; &gt; Where is the error?&gt; &gt; I have just compiled 
>correctly gd,freetype,proj,ecc. and I have changed &gt;the&gt; &gt; path, 
>in makefile, of these package.&gt; &gt; I use gd-1.8.4 and this is in 
>c:\projects\gd&gt; &gt;&gt; &gt; Regards&gt; &gt; Ivan&gt; &gt;&gt; &gt; 
>_________________________________________________________________&gt; &gt; 
>Chiacchiera con gli amici online, prova MSN Messenger:&gt; &gt; 
>http://messenger.msn.it&gt;&gt;--&gt;----------------------------------------------------------------&gt;Assefa 
>Yewondwossen&gt;Software Analyst&gt;&gt;Email: 
>assefa at dmsolutions.ca&gt;http://www.dmsolutions.ca/&gt;&gt;Phone: (613) 
>565-5056 (ext 14)&gt;Fax: (613) 
>565-0925&gt;----------------------------------------------------------------_________________________________________________________________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