Merging allegro-4.4.2-r1 fails on target 'grabber' with a linker error when built with gcc-5.2.0: ----- ../lib/libjpgalleg.so.4.4.2: undefined reference to `get_value' collect2: error: ld returned 1 exit status ----- In fact, all tools fail with this error. The Problem is a function 'get_value()' that is marked with INLINE and local to the compilation unit (addons/jpgalleg/src/decode.c) - This must be static with gcc-5.2.0 (and maybe 5.0 and 5.1 as well. The attached patch fixes this. Reproducible: Always Steps to Reproduce: 1. Set up the system to use gcc-5.2.0 2. emerge allegro-4.4.2-r1 Actual Results: Build fails Expected Results: Build succeeds
Created attachment 410926 [details, diff] Make get_value() static This is the patch that adds the static keywords. After adding this, allegro built fine on my machine.
Issue reported here: https://sourceforge.net/p/alleg/bugs/398 ...but as they concentrate on Allegro-5, I doubt anything new for Allegro-4 will be released anytime soon.
I can't reproduce this with 5.3.0 so closing for now.