"Error While linking" under FreeBSD (was: Can't compile LatestCVS "Error: Identifier not found TBYTEARRARY")

Marco van de Voort marcov at stack.nl
Thu Oct 23 15:50:34 EDT 2003


> see it fixed. This apparently is a FreeBSD issue only, as I understood
> it from the the IRC chat earlier today/last night.
> 
> After typing make the units and objects are compiled then
> ...
> Linking ./lazarus
> /usr/bin/ld: cannot find -lglib12
> lazarus.pp(352) Error: Error while linking
> Closing script ./ppas.sh
> gmake[1]: *** [lazarus] Error 1
> gmake[1]: Leaving directory `/usr/home/george/downloads/lazarus/lazarus'
> gmake: *** [ide] Error 2
> ...
> 
> the solutions to that was to add the line
> SEARCH_DIR(/usr/local/lib/)
> to the top part of link.res.
> 
> Question:  Why is this path not being added correctly??

FreeBSD itself doesn't add /usr/local paths to any system paths out of
security reasons. FPC follows that on FreeBSD.






More information about the Lazarus mailing list