Skip to content

no symbol 'act_*' on macOS #19

@sikmir

Description

@sikmir

I use basemap.osm rule and everything fine on Linux:

13:24:14.775  (+ 0.000) 0:[  debug] init_rule() initializing rule -1099511627775 (0xffffff0000000001, 1)
13:24:14.775  (+ 0.000) 0:[  debug] parsing 'cap:font=sans-serif:italic;size=1.4;angle=auto;halign=east;key=name'
13:24:14.775  (+ 0.000) 0:[  debug] calling cap_ini()[0]
13:24:14.775  (+ 0.000) 0:[  debug] parse_auto_rot() auto_rot = {phase: 0.00, autocol(deprecated): 0x00000000, weight: 1.00, mkarea: 0}
13:24:14.775  (+ 0.000) 0:[  debug] act_cap_ini() halignkey = NULL, valignkey = NULL
13:24:14.775  (+ 0.000) 0:[  debug] act_cap_ini() pos = 0x0004, col = 0x00000000, colkey = 'NULL', font = 'sans-serif:italic', key = 'name', size = 1.4, scl = {12.0, 0.5, 8.0, 0.20}, angle = nan, xoff = 2.0, yoff =2.0, rot = {0.0, 00000000, 1.0}, {fill = 0, fillcol 0x00000000, filcolkey "NULL"}, bgbox_scale = 1.20, fontbox = 0
13:24:14.775  (+ 0.000) 0:[  debug] act_cap_ini() filter[0] = 'name'

But on macOS I got:

13:23:29.850  (+ 0.000) 0:[  debug] init_rule() initializing rule -1099511627775 (0xffffff0000000001, 1)
13:23:29.850  (+ 0.000) 0:[  debug] parsing 'cap:font=sans-serif:italic;size=1.4;angle=auto;halign=east;key=name'
13:23:29.850  (+ 0.000) 0:[   info] no symbol 'act_cap_main'
13:23:29.850  (+ 0.000) 0:[   info] no symbol 'act_cap_ini'
13:23:29.850  (+ 0.000) 0:[   info] no symbol 'act_cap_fini'

And symbols exist in the binary:

nm -gU ./smrender | grep act_cap
0000000100020890 T _act_cap_fini
000000010001ea50 T _act_cap_ini
000000010001f220 T _act_cap_main

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions