[MacPorts] #70816: fpc should include library path to /opt/local/lib (was: lazarus @3.4: gtk2 backend uses a wrong ldflag: ld: library not found for -lgtk-x11-2.0)

MacPorts noreply at macports.org
Fri Sep 20 02:44:03 UTC 2024


#70816: fpc should include library path to /opt/local/lib
---------------------------+--------------------------
  Reporter:  barracuda156  |      Owner:  barracuda156
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.10.1
Resolution:                |   Keywords:
      Port:  fpc           |
---------------------------+--------------------------
Changes (by barracuda156):

 * port:  lazarus => fpc


Old description:

> {{{
> (9001) Assembling (pipe) ../units/powerpc-darwin/gtk2/main.s
> /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/ide/lazarus.pp(79,5)
> Hint: (5023) Unit "FPCUnitTestRunner" not used in Lazarus
> (9001) Assembling (pipe) ../units/powerpc-darwin/gtk2/lazarus.s
> (9022) Compiling resource ../units/powerpc-darwin/gtk2/lazarus.or
> (9015) Linking ../lazarus
> ld: library not found for -lgtk-x11-2.0
> An error occurred while linking
> Error: (9013) Error while linking
> Fatal: (10026) There were 1 errors compiling module, stopping
> Fatal: (1018) Compilation aborted
> make[2]: *** [lazarus] Error 1
> make[2]: Leaving directory
> `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/ide'
> make[1]: *** [bigide] Error 2
> make[1]: Leaving directory
> `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/ide'
> }}}

New description:

 Our config of fpc cannot find libs in MacPorts prefix.

 {{{
 (9001) Assembling (pipe) ../units/powerpc-darwin/gtk2/main.s
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/ide/lazarus.pp(79,5)
 Hint: (5023) Unit "FPCUnitTestRunner" not used in Lazarus
 (9001) Assembling (pipe) ../units/powerpc-darwin/gtk2/lazarus.s
 (9022) Compiling resource ../units/powerpc-darwin/gtk2/lazarus.or
 (9015) Linking ../lazarus
 ld: library not found for -lgtk-x11-2.0
 An error occurred while linking
 Error: (9013) Error while linking
 Fatal: (10026) There were 1 errors compiling module, stopping
 Fatal: (1018) Compilation aborted
 make[2]: *** [lazarus] Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/ide'
 make[1]: *** [bigide] Error 2
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_lazarus/lazarus/work/lazarus/ide'
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/70816#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list