Opened 3 weeks ago

Last modified 3 weeks ago

#70816 assigned defect

fpc should include library path to /opt/local/lib — at Version 2

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: Cc: kamischi (Karl-Michael Schindler)
Port: fpc

Description (last modified by barracuda156)

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'

Change History (2)

comment:1 Changed 3 weeks ago by barracuda156

Owner: set to barracuda156
Status: newassigned

Our config file for FPC is wrong, it fails to add MacPorts prefix, so nothing gonna link. This solves the problem, should go in fpc.cfg.

-Fl/opt/local/lib

comment:2 Changed 3 weeks ago by barracuda156

Description: modified (diff)
Port: fpc added; lazarus removed
Summary: lazarus @3.4: gtk2 backend uses a wrong ldflag: ld: library not found for -lgtk-x11-2.0fpc should include library path to /opt/local/lib
Note: See TracTickets for help on using tickets.