Opened 16 years ago

Closed 16 years ago

#2428 closed defect (fixed)

maplexer.c r7013 doesn't work on Ubunto 6

Reported by: dmorissette Owned by: 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 (4)

comment:1 by tbonfort, 16 years ago

fyi same here on ubuntu 7.10

comment:2 by dmorissette, 16 years ago

Status: newassigned

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.

comment:3 by tbonfort, 16 years ago

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.

comment:4 by dmorissette, 16 years ago

Resolution: fixed
Status: assignedclosed

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.

Note: See TracTickets for help on using tickets.