Hi,

On Thu, 24 May 2018 at 09:16, Wim Vinckier <wimpunk@gmail.com> wrote:
Hi,

On Wed, 23 May 2018 at 22:39, Ladislav Michl <ladis@linux-mips.org> wrote:
On Wed, May 23, 2018 at 11:49:16AM +0200, Wim Vinckier wrote:
> Hi List,
>
> I'm trying to compile libSDL for arm with toolchain
> oselas.toolchain-2018.02.0-arm-v5te-linux-gnueabi-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitize
> with ptxdist-2018.05.0 but it fails and I don't understand what's going
> wrong.  This is the linker error I get:
>
> ./.libs/libSDL_image.so: undefined reference to `png_set_longjmp_fn'

Just did quick test with both arm-v5te-linux-gnueabi and arm-v7a-linux-gnueabi
and I do not see above error. Also, care to tell what ptxdist version are you
using?

 
I'm using ptxdist-2018.05.0.

Google results for 'png_set_longjmp_fn' query gives a bit of clue, care to
check them?

Most of the items tells refer to an old version of the library hanging around. I see there's a libpng12 and a libpng16 in my tree. I'll try to clean it complete and come back after the rebuild.

Thanks for the suggestion, I should have checked that one earlier.

It looks like this suggestion was the correct suggestion.  There was a libpng12 hanging around from the old build. I did a complete `ptxdist distclean` and after a rebuild I got a working SDL library.

Thanks again,

wim vinckier.