You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gcc-10 -pthread -Wall -Wno-unknown-pragmas -g -O2 -o pixz pixz-common.o pixz-cpu.o pixz-endian.o pixz-list.o pixz-pixz.o pixz-read.o pixz-write.o -lm -larchive -llzma -lm
/usr/bin/ld: pixz-list.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:58: multiple definition of `gStream'; pixz-common.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:58: first defined here
/usr/bin/ld: pixz-list.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: multiple definition of `gOutFile'; pixz-common.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: first defined here
/usr/bin/ld: pixz-list.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: multiple definition of `gInFile'; pixz-common.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: first defined here
/usr/bin/ld: pixz-pixz.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: multiple definition of `gInFile'; pixz-common.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: first defined here
/usr/bin/ld: pixz-pixz.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: multiple definition of `gOutFile'; pixz-common.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: first defined here
/usr/bin/ld: pixz-pixz.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:58: multiple definition of `gStream'; pixz-common.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:58: first defined here
/usr/bin/ld: pixz-read.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: multiple definition of `gOutFile'; pixz-common.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: first defined here
/usr/bin/ld: pixz-read.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: multiple definition of `gInFile'; pixz-common.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: first defined here
/usr/bin/ld: pixz-read.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:58: multiple definition of `gStream'; pixz-common.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:58: first defined here
/usr/bin/ld: pixz-write.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: multiple definition of `gInFile'; pixz-common.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: first defined here
/usr/bin/ld: pixz-write.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:58: multiple definition of `gStream'; pixz-common.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:58: first defined here
/usr/bin/ld: pixz-write.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: multiple definition of `gOutFile'; pixz-common.o:/home/leon/Downloads/pixz-1.0.6/src/pixz.h:57: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:407: pixz] Error 1
make[2]: Leaving directory '/home/leon/Downloads/pixz-1.0.6/src'
make[1]: *** [Makefile:376: all-recursive] Error 1
make[1]: Leaving directory '/home/leon/Downloads/pixz-1.0.6'
make: *** [Makefile:317: all] Error 2
The problem exists because of some missing extern definition for global variables in pixz.h. It can be fixed with the help of the Porting Guide
There is also a Debian Bug Report addressing this issue: #957689
The text was updated successfully, but these errors were encountered:
The program returns a linking error with GCC 10
The problem exists because of some missing
extern
definition for global variables in pixz.h. It can be fixed with the help of the Porting GuideThere is also a Debian Bug Report addressing this issue: #957689
The text was updated successfully, but these errors were encountered: