gen2brain / go-fitz

Golang wrapper for the MuPDF Fitz library
GNU Affero General Public License v3.0
429 stars 97 forks source link

libmupdf_linux_amd64.a(colorspace.o): unrecognized relocation (0x2a) in section `.text.fz_find_icc_link' #121

Closed eyjian closed 2 weeks ago

eyjian commented 2 weeks ago

go/pkg/mod/github.com/gen2brain/go-fitz@v1.22.2/libs/libmupdf_linux_amd64.a(colorspace.o): unrecognized relocation (0x2a) in section `.text.fz_find_icc_link'

`

gcc --version

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ld -version

GNU ld version 2.23.52.0.1-55.el7 20130226 Copyright 2013 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. `

eyjian commented 2 weeks ago

binutils-2.31.1 work with many warnings.

`

ld --version

GNU ld (GNU Binutils) 2.31.1 Copyright (C) 2018 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. `

partial warnings:

/usr/local/binutils-2.31.1/bin/ld: warning: /data1/go/pkg/mod/github.com/gen2brain/go-fitz@v1.22.2/libs/libmupdf_linux_amd64.a(pool.o): unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /usr/local/binutils-2.31.1/bin/ld: warning: /data1/go/pkg/mod/github.com/gen2brain/go-fitz@v1.22.2/libs/libmupdf_linux_amd64.a(pool.o): unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /usr/local/binutils-2.31.1/bin/ld: warning: /data1/go/pkg/mod/github.com/gen2brain/go-fitz@v1.22.2/libs/libmupdf_linux_amd64.a(stext-search.o): unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /usr/local/binutils-2.31.1/bin/ld: warning: /data1/go/pkg/mod/github.com/gen2brain/go-fitz@v1.22.2/libs/libmupdf_linux_amd64.a(stext-search.o): unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001

eyjian commented 2 weeks ago

binutils-2.28.1 work good no any warning

`

ld --version

GNU ld (GNU Binutils) 2.28.1 Copyright (C) 2017 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. `

gen2brain commented 2 weeks ago

Such old compilers are not supported, use an external library.