New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #23849 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

lincity-ng @2.0_2 fails to load/link library physfs @2.0.0_0

Reported by: s9daallw@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: physfs

Description (last modified by macsforever2000@…) (diff)

Starting lincity-ng gives this Error
dyld: Library not loaded: libphysfs.1.dylib
  Referenced from: /opt/local/bin/lincity-ng
  Reason: image not found
Trace/BPT trap

Change History

comment:1 Changed 3 years ago by macsforever2000@…

  • Description modified (diff)
  • Port changed from lincity-ng, physfs to lincity-ng physfs

Try rebuilding lincity-ng.

sudo port uninstall lincity-ng
sudo port install lincity-ng

comment:2 Changed 3 years ago by macsforever2000@…

  • Port changed from lincity-ng physfs to lincity-ng

I just tried and it did not work. I see the same error. It looks like we may need to create a physfs1 port until lincity-ng get updated for physfs 2.

comment:3 Changed 3 years ago by s9daallw@…

I beliebe this is a pure linking problem. I linked static to libphysfs.a and the game started and i was able to play. Also, i run otool -L and it looks like the game has forgotten were to find libphysfs.1.dylib.

...
/opt/local/lib/libSDL_gfx.13.dylib (compatibility version 19.0.0, current version 19.2.0)
libphysfs.1.dylib (compatibility version 1.0.0, current version 2.0.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
...

comment:4 Changed 3 years ago by toby@…

  • Port changed from lincity-ng to physfs

Obviously not a bug in lincity-ng, physfs just has a bad install_name

comment:5 Changed 3 years ago by s9daallw@…

Putting a link /opt/local/bin/libphysfs.1.dylib -> /opt/local/lib/libphysfs.1.dylib is another not proper fix.

comment:6 Changed 3 years ago by jmr@…

  • Status changed from new to closed
  • Resolution set to fixed

Should be fixed by r64576 and r64577.

Note: See TracTickets for help on using tickets.