Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#63793 closed defect (fixed)

cscope @15.9: symbol not found in flat namespace '_yylex'

Reported by: sudheerhebbale (Sudheer Hebbale) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: monterey Cc:
Port: cscope

Description (last modified by ryandesign (Ryan Carsten Schmidt))

WHen I type cscope (or cscope -b) on commandline the following error is shown

dyld[36259]: symbol not found in flat namespace '_yylex'
Abort

Change History (4)

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: monterey added
Port: cscope added
Priority: HighNormal
Summary: After upgrade to macos 12.0 Monterey cscope does not workcscope @15.9: symbol not found in flat namespace '_yylex'

The mention of "flat namespace" is surprising since the flat namespace went out of style with the introduction of the two-level namespace in Mac OS X 10.3 a long time ago. But maybe that's not the part of the message we should focus on.

It builds and installs and runs fine for me on macOS High Sierra but I see that it links with flex's libfl.dylib though the port doesn't declare a dependency on it. If I use trace mode to hide MacPorts flex, then it builds and installs and runs fine while using "flex 2.5.35 Apple(flex-31)" provided by macOS High Sierra without linking to a flex library. I see that Monterey provides "flex 2.6.4 Apple(flex-34)". Perhaps that's the significant difference.

I'll modify the port to always use MacPorts flex and you can see if that helps.

comment:2 Changed 2 years ago by sudheerhebbale (Sudheer Hebbale)

Thanks

Will await fort the updated port

comment:3 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In dd143a2d48846660080aa9bacc6cd153a3af4bd5/macports-ports (master):

cscope: Use MacPorts flex

cscope links with MacPorts flex's libfl.dylib if present so let's
declare the dependency, and use MacPorts bison too while we're at it.

Closes: #63793

Ensure that gnome1 and gnome2 are not found even if present.

Remove unrecognized --with-flex option.

Rewrite master_sites to avoid redirects.

Use leading 0 in octal numbers.

Add modeline.

comment:4 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Turns out this did not fix the problem and it has been re-filed as #64448.

Note: See TracTickets for help on using tickets.