Ticket #2428 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

maplexer.c r7013 doesn't work on Ubunto 6

Reported by: dmorissette Assigned to: dmorissette
Priority: normal Milestone: 5.0.1 release
Component: MapServer C Library Version: 5.0
Severity: blocker Keywords:
Cc: sdlime,warmerdam

Description

The version of maplexer.c committed in r7013 (branch-5-0) does not work for me on Ubunto 6. I get the following errors:

maplexer.l: In function ‘yylex’:
maplexer.l:69: warning: implicit declaration of function ‘msyy_scan_string’
maplexer.l:70: error: ‘msyyin’ undeclared (first use in this function)
maplexer.l:70: error: (Each undeclared identifier is reported only once
maplexer.l:70: error: for each function it appears in.)
maplexer.l:94: warning: implicit declaration of function ‘msyy_delete_buffer’
maplexer.l:374: error: ‘msyytext’ undeclared (first use in this function)
maplexer.l:465: warning: implicit declaration of function ‘msyy_switch_to_buffer’
maplexer.l:465: warning: implicit declaration of function ‘msyy_create_buffer’

Could this be related to the same source as #2373, i.e. files generated on the Mac not working on other platforms?

Can I simply replace maplexer.c with a new version generated with flex 2.5.31 on Linux?

Change History

12/10/07 06:11:20 changed by tbonfort

fyi same here on ubuntu 7.10

12/10/07 09:57:29 changed by dmorissette

  • status changed from new to assigned.

sdlime wrote on mapserver-dev:

What does the generated code say the flex version was that created it? I thought we committed a linux-based version of the lexer to both branches.

Steve, you committed a new mapparser.c in r7028 but there was no maplexer.c update.

12/10/07 10:01:25 changed by tbonfort

Daniel, FYI I commited the maplexer.c that's now in trunk, and created it using the standard distro flex/bison. It doesn't seem to have broken on anyone's setup.

12/10/07 10:50:30 changed by dmorissette

  • status changed from assigned to closed.
  • resolution set to fixed.

Thomas, Same here. I have committed versions of maplexer.c generated with flex 2.5.31 on Ubuntu 6 in the past and never heard of problems either.

I have committed a new maplexer.c in r7162 (5.0 branch) generated with flex 2.5.31 on Linux. I have also verified that it builds fine on Windows (VC7). Unfortunately I cannot test on a Mac.

Marking fixed. If anyone notices problems with this version of maplexer.c then pelase reopen with more details.