#14290 closed defect (fixed)

HPL1: Compilation error on Arch Linux

Reported by: Paolo86cripple Owned by: lephilousophe
Priority: normal Component: Engine: HPL1
Version: Keywords:
Cc: Game:

Description

Can't compile scummvm on Arch using latest code due to hpl1 MetaEngineDetection.

/usr/bin/ld: engines/hpl1/libhpl1.a(detection.o):(.data.rel.ro.local+0x0): multiple definition of `Hpl1MetaEngineDetection::debugFlagList'; engines/hpl1/detection.o:(.data.rel.ro.local+0x0): first defined here
/usr/bin/ld: engines/hpl1/libhpl1.a(detection.o): in function `Hpl1MetaEngineDetection::Hpl1MetaEngineDetection()':
detection.cpp:(.text+0x0): multiple definition of `Hpl1MetaEngineDetection::Hpl1MetaEngineDetection()'; engines/hpl1/detection.o:detection.cpp:(.text+0x0): first defined here
/usr/bin/ld: engines/hpl1/libhpl1.a(detection.o):(.data.rel.ro.local+0x6a0): multiple definition of `Hpl1::GAME_NAMES'; engines/hpl1/detection.o:(.data.rel.ro.local+0x6a0): first defined here
/usr/bin/ld: engines/hpl1/libhpl1.a(detection.o):(.data.rel.ro.local+0x100): multiple definition of `Hpl1::GAME_DESCRIPTIONS'; engines/hpl1/detection.o:(.data.rel.ro.local+0x100): first defined here
/usr/bin/ld: engines/hpl1/libhpl1.a(detection.o): in function `Hpl1MetaEngineDetection::Hpl1MetaEngineDetection()':
detection.cpp:(.text+0x0): multiple definition of `Hpl1MetaEngineDetection::Hpl1MetaEngineDetection()'; engines/hpl1/detection.o:detection.cpp:(.text+0x0): first defined here
/usr/bin/ld: engines/hpl1/libhpl1.a(detection.o): in function `g_HPL1_DETECTION_getObject()':
detection.cpp:(.text+0x30): multiple definition of `g_HPL1_DETECTION_getObject()'; engines/hpl1/detection.o:detection.cpp:(.text+0x30): first defined here
/usr/bin/ld: engines/hpl1/libhpl1.a(detection.o):(.bss+0x0): multiple definition of `g_HPL1_DETECTION_type'; engines/hpl1/detection.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: * [Makefile.common:133: scummvm] Error 1

Attachments (4)

Makefile (5.1 KB ) - added by Paolo86cripple 21 months ago.
config.h (2.1 KB ) - added by Paolo86cripple 21 months ago.
config.mk (7.6 KB ) - added by Paolo86cripple 21 months ago.
config.log (21.8 KB ) - added by Paolo86cripple 21 months ago.

Download all attachments as: .zip

Change History (11)

comment:1 by digitall, 21 months ago

Priority: blockernormal

comment:2 by digitall, 21 months ago

Component: CommonEngine: HPL1
Summary: Compilation error on Arch LinuxHPL1: Compilation error on Arch Linux

comment:3 by digitall, 21 months ago

@Paolo86cripple: Please ensure that you have the latest ScummVM git master and you do a "./configure --enable-all-engines && make clean && make".

If this still fails, then please attach your Makefile, config.log, config.mk and config.h files which are generated by ./configure to this bug. They are text files and will some idea why this might be happening.

comment:5 by digitall, 21 months ago

Owner: set to digitall
Resolution: pending
Status: newpending

by Paolo86cripple, 21 months ago

Attachment: Makefile added

by Paolo86cripple, 21 months ago

Attachment: config.h added

by Paolo86cripple, 21 months ago

Attachment: config.mk added

by Paolo86cripple, 21 months ago

Attachment: config.log added

comment:6 by Paolo86cripple, 21 months ago

Didn't work, I always clean anytime I make a new build btw. Attached requested files

comment:7 by lephilousophe, 21 months ago

Owner: changed from digitall to lephilousophe
Resolution: pendingfixed
Status: pendingclosed
Note: See TracTickets for help on using tickets.