Menu

#4 Build fails with linking errors "multiple definition of"

open
nobody
None
5
2024-01-11
2024-01-11
Drei Eck
No

When i try to build this code, version 1.7.3, using make as you write in your README file, it fails while linking:

[...]
gcc -O3 -s -o geekcode gc_appearance.o gc_computers.o gc_entertainment.o gc_lifestyle.o gc_politics.o gc_type.o gc_consoleio.o gc_translate.o geekcode.o
/usr/bin/ld: gc_computers.o:(.bss+0x0): multiple definition of `gc_sex'; gc_appearance.o:(.bss+0x0): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x4): multiple definition of `gc_sex_type'; gc_appearance.o:(.bss+0x4): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x8): multiple definition of `gc_relationships'; gc_appearance.o:(.bss+0x8): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0xc): multiple definition of `gc_housing'; gc_appearance.o:(.bss+0xc): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x10): multiple definition of `gc_education'; gc_appearance.o:(.bss+0x10): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x14): multiple definition of `gc_geekcode'; gc_appearance.o:(.bss+0x14): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x18): multiple definition of `gc_doom'; gc_appearance.o:(.bss+0x18): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x1c): multiple definition of `gc_dilbert'; gc_appearance.o:(.bss+0x1c): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x20): multiple definition of `gc_books'; gc_appearance.o:(.bss+0x20): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x24): multiple definition of `gc_television'; gc_appearance.o:(.bss+0x24): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x28): multiple definition of `gc_rp'; gc_appearance.o:(.bss+0x28): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x2c): multiple definition of `gc_xfiles'; gc_appearance.o:(.bss+0x2c): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x30): multiple definition of `gc_babylon5'; gc_appearance.o:(.bss+0x30): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x34): multiple definition of `gc_startrek'; gc_appearance.o:(.bss+0x34): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x38): multiple definition of `gc_pgp'; gc_appearance.o:(.bss+0x38): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x3c): multiple definition of `gc_cypher'; gc_appearance.o:(.bss+0x3c): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x40): multiple definition of `gc_economic'; gc_appearance.o:(.bss+0x40): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x44): multiple definition of `gc_social'; gc_appearance.o:(.bss+0x44): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x48): multiple definition of `gc_vms'; gc_appearance.o:(.bss+0x48): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x4c): multiple definition of `gc_mac'; gc_appearance.o:(.bss+0x4c): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x50): multiple definition of `gc_os2'; gc_appearance.o:(.bss+0x50): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x54): multiple definition of `gc_windows'; gc_appearance.o:(.bss+0x54): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x58): multiple definition of `gc_kibo'; gc_appearance.o:(.bss+0x58): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x5c): multiple definition of `gc_oracle'; gc_appearance.o:(.bss+0x5c): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x60): multiple definition of `gc_usenet'; gc_appearance.o:(.bss+0x60): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x64): multiple definition of `gc_www'; gc_appearance.o:(.bss+0x64): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x68): multiple definition of `gc_emacs'; gc_appearance.o:(.bss+0x68): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x6c): multiple definition of `gc_linux'; gc_appearance.o:(.bss+0x6c): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x70): multiple definition of `gc_perl'; gc_appearance.o:(.bss+0x70): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x74): multiple definition of `gc_unix'; gc_appearance.o:(.bss+0x74): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x78): multiple definition of `gc_unix_type'; gc_appearance.o:(.bss+0x78): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x7c): multiple definition of `gc_computers'; gc_appearance.o:(.bss+0x7c): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x80): multiple definition of `gc_age'; gc_appearance.o:(.bss+0x80): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x84): multiple definition of `gc_weight'; gc_appearance.o:(.bss+0x84): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x88): multiple definition of `gc_height'; gc_appearance.o:(.bss+0x88): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x8c): multiple definition of `gc_dress'; gc_appearance.o:(.bss+0x8c): first defined here
/usr/bin/ld: gc_computers.o:(.bss+0x90): multiple definition of `gc_type'; gc_appearance.o:(.bss+0x90): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x0): multiple definition of `gc_sex'; gc_appearance.o:(.bss+0x0): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x4): multiple definition of `gc_sex_type'; gc_appearance.o:(.bss+0x4): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x8): multiple definition of `gc_relationships'; gc_appearance.o:(.bss+0x8): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0xc): multiple definition of `gc_housing'; gc_appearance.o:(.bss+0xc): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x10): multiple definition of `gc_education'; gc_appearance.o:(.bss+0x10): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x14): multiple definition of `gc_geekcode'; gc_appearance.o:(.bss+0x14): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x18): multiple definition of `gc_doom'; gc_appearance.o:(.bss+0x18): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x1c): multiple definition of `gc_dilbert'; gc_appearance.o:(.bss+0x1c): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x20): multiple definition of `gc_books'; gc_appearance.o:(.bss+0x20): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x24): multiple definition of `gc_television'; gc_appearance.o:(.bss+0x24): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x28): multiple definition of `gc_rp'; gc_appearance.o:(.bss+0x28): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x2c): multiple definition of `gc_xfiles'; gc_appearance.o:(.bss+0x2c): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x30): multiple definition of `gc_babylon5'; gc_appearance.o:(.bss+0x30): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x34): multiple definition of `gc_startrek'; gc_appearance.o:(.bss+0x34): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x38): multiple definition of `gc_pgp'; gc_appearance.o:(.bss+0x38): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x3c): multiple definition of `gc_cypher'; gc_appearance.o:(.bss+0x3c): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x40): multiple definition of `gc_economic'; gc_appearance.o:(.bss+0x40): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x44): multiple definition of `gc_social'; gc_appearance.o:(.bss+0x44): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x48): multiple definition of `gc_vms'; gc_appearance.o:(.bss+0x48): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x4c): multiple definition of `gc_mac'; gc_appearance.o:(.bss+0x4c): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x50): multiple definition of `gc_os2'; gc_appearance.o:(.bss+0x50): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x54): multiple definition of `gc_windows'; gc_appearance.o:(.bss+0x54): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x58): multiple definition of `gc_kibo'; gc_appearance.o:(.bss+0x58): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x5c): multiple definition of `gc_oracle'; gc_appearance.o:(.bss+0x5c): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x60): multiple definition of `gc_usenet'; gc_appearance.o:(.bss+0x60): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x64): multiple definition of `gc_www'; gc_appearance.o:(.bss+0x64): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x68): multiple definition of `gc_emacs'; gc_appearance.o:(.bss+0x68): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x6c): multiple definition of `gc_linux'; gc_appearance.o:(.bss+0x6c): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x70): multiple definition of `gc_perl'; gc_appearance.o:(.bss+0x70): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x74): multiple definition of `gc_unix'; gc_appearance.o:(.bss+0x74): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x78): multiple definition of `gc_unix_type'; gc_appearance.o:(.bss+0x78): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x7c): multiple definition of `gc_computers'; gc_appearance.o:(.bss+0x7c): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x80): multiple definition of `gc_age'; gc_appearance.o:(.bss+0x80): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x84): multiple definition of `gc_weight'; gc_appearance.o:(.bss+0x84): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x88): multiple definition of `gc_height'; gc_appearance.o:(.bss+0x88): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x8c): multiple definition of `gc_dress'; gc_appearance.o:(.bss+0x8c): first defined here
/usr/bin/ld: gc_entertainment.o:(.bss+0x90): multiple definition of `gc_type'; gc_appearance.o:(.bss+0x90): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x0): multiple definition of `gc_sex'; gc_appearance.o:(.bss+0x0): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x4): multiple definition of `gc_sex_type'; gc_appearance.o:(.bss+0x4): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x8): multiple definition of `gc_relationships'; gc_appearance.o:(.bss+0x8): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0xc): multiple definition of `gc_housing'; gc_appearance.o:(.bss+0xc): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x10): multiple definition of `gc_education'; gc_appearance.o:(.bss+0x10): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x14): multiple definition of `gc_geekcode'; gc_appearance.o:(.bss+0x14): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x18): multiple definition of `gc_doom'; gc_appearance.o:(.bss+0x18): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x1c): multiple definition of `gc_dilbert'; gc_appearance.o:(.bss+0x1c): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x20): multiple definition of `gc_books'; gc_appearance.o:(.bss+0x20): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x24): multiple definition of `gc_television'; gc_appearance.o:(.bss+0x24): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x28): multiple definition of `gc_rp'; gc_appearance.o:(.bss+0x28): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x2c): multiple definition of `gc_xfiles'; gc_appearance.o:(.bss+0x2c): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x30): multiple definition of `gc_babylon5'; gc_appearance.o:(.bss+0x30): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x34): multiple definition of `gc_startrek'; gc_appearance.o:(.bss+0x34): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x38): multiple definition of `gc_pgp'; gc_appearance.o:(.bss+0x38): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x3c): multiple definition of `gc_cypher'; gc_appearance.o:(.bss+0x3c): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x40): multiple definition of `gc_economic'; gc_appearance.o:(.bss+0x40): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x44): multiple definition of `gc_social'; gc_appearance.o:(.bss+0x44): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x48): multiple definition of `gc_vms'; gc_appearance.o:(.bss+0x48): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x4c): multiple definition of `gc_mac'; gc_appearance.o:(.bss+0x4c): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x50): multiple definition of `gc_os2'; gc_appearance.o:(.bss+0x50): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x54): multiple definition of `gc_windows'; gc_appearance.o:(.bss+0x54): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x58): multiple definition of `gc_kibo'; gc_appearance.o:(.bss+0x58): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x5c): multiple definition of `gc_oracle'; gc_appearance.o:(.bss+0x5c): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x60): multiple definition of `gc_usenet'; gc_appearance.o:(.bss+0x60): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x64): multiple definition of `gc_www'; gc_appearance.o:(.bss+0x64): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x68): multiple definition of `gc_emacs'; gc_appearance.o:(.bss+0x68): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x6c): multiple definition of `gc_linux'; gc_appearance.o:(.bss+0x6c): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x70): multiple definition of `gc_perl'; gc_appearance.o:(.bss+0x70): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x74): multiple definition of `gc_unix'; gc_appearance.o:(.bss+0x74): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x78): multiple definition of `gc_unix_type'; gc_appearance.o:(.bss+0x78): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x7c): multiple definition of `gc_computers'; gc_appearance.o:(.bss+0x7c): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x80): multiple definition of `gc_age'; gc_appearance.o:(.bss+0x80): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x84): multiple definition of `gc_weight'; gc_appearance.o:(.bss+0x84): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x88): multiple definition of `gc_height'; gc_appearance.o:(.bss+0x88): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x8c): multiple definition of `gc_dress'; gc_appearance.o:(.bss+0x8c): first defined here
/usr/bin/ld: gc_lifestyle.o:(.bss+0x90): multiple definition of `gc_type'; gc_appearance.o:(.bss+0x90): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x0): multiple definition of `gc_sex'; gc_appearance.o:(.bss+0x0): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x4): multiple definition of `gc_sex_type'; gc_appearance.o:(.bss+0x4): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x8): multiple definition of `gc_relationships'; gc_appearance.o:(.bss+0x8): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0xc): multiple definition of `gc_housing'; gc_appearance.o:(.bss+0xc): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x10): multiple definition of `gc_education'; gc_appearance.o:(.bss+0x10): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x14): multiple definition of `gc_geekcode'; gc_appearance.o:(.bss+0x14): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x18): multiple definition of `gc_doom'; gc_appearance.o:(.bss+0x18): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x1c): multiple definition of `gc_dilbert'; gc_appearance.o:(.bss+0x1c): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x20): multiple definition of `gc_books'; gc_appearance.o:(.bss+0x20): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x24): multiple definition of `gc_television'; gc_appearance.o:(.bss+0x24): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x28): multiple definition of `gc_rp'; gc_appearance.o:(.bss+0x28): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x2c): multiple definition of `gc_xfiles'; gc_appearance.o:(.bss+0x2c): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x30): multiple definition of `gc_babylon5'; gc_appearance.o:(.bss+0x30): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x34): multiple definition of `gc_startrek'; gc_appearance.o:(.bss+0x34): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x38): multiple definition of `gc_pgp'; gc_appearance.o:(.bss+0x38): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x3c): multiple definition of `gc_cypher'; gc_appearance.o:(.bss+0x3c): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x40): multiple definition of `gc_economic'; gc_appearance.o:(.bss+0x40): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x44): multiple definition of `gc_social'; gc_appearance.o:(.bss+0x44): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x48): multiple definition of `gc_vms'; gc_appearance.o:(.bss+0x48): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x4c): multiple definition of `gc_mac'; gc_appearance.o:(.bss+0x4c): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x50): multiple definition of `gc_os2'; gc_appearance.o:(.bss+0x50): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x54): multiple definition of `gc_windows'; gc_appearance.o:(.bss+0x54): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x58): multiple definition of `gc_kibo'; gc_appearance.o:(.bss+0x58): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x5c): multiple definition of `gc_oracle'; gc_appearance.o:(.bss+0x5c): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x60): multiple definition of `gc_usenet'; gc_appearance.o:(.bss+0x60): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x64): multiple definition of `gc_www'; gc_appearance.o:(.bss+0x64): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x68): multiple definition of `gc_emacs'; gc_appearance.o:(.bss+0x68): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x6c): multiple definition of `gc_linux'; gc_appearance.o:(.bss+0x6c): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x70): multiple definition of `gc_perl'; gc_appearance.o:(.bss+0x70): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x74): multiple definition of `gc_unix'; gc_appearance.o:(.bss+0x74): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x78): multiple definition of `gc_unix_type'; gc_appearance.o:(.bss+0x78): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x7c): multiple definition of `gc_computers'; gc_appearance.o:(.bss+0x7c): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x80): multiple definition of `gc_age'; gc_appearance.o:(.bss+0x80): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x84): multiple definition of `gc_weight'; gc_appearance.o:(.bss+0x84): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x88): multiple definition of `gc_height'; gc_appearance.o:(.bss+0x88): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x8c): multiple definition of `gc_dress'; gc_appearance.o:(.bss+0x8c): first defined here
/usr/bin/ld: gc_politics.o:(.bss+0x90): multiple definition of `gc_type'; gc_appearance.o:(.bss+0x90): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x0): multiple definition of `gc_sex'; gc_appearance.o:(.bss+0x0): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x4): multiple definition of `gc_sex_type'; gc_appearance.o:(.bss+0x4): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x8): multiple definition of `gc_relationships'; gc_appearance.o:(.bss+0x8): first defined here
/usr/bin/ld: gc_type.o:(.bss+0xc): multiple definition of `gc_housing'; gc_appearance.o:(.bss+0xc): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x10): multiple definition of `gc_education'; gc_appearance.o:(.bss+0x10): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x14): multiple definition of `gc_geekcode'; gc_appearance.o:(.bss+0x14): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x18): multiple definition of `gc_doom'; gc_appearance.o:(.bss+0x18): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x1c): multiple definition of `gc_dilbert'; gc_appearance.o:(.bss+0x1c): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x20): multiple definition of `gc_books'; gc_appearance.o:(.bss+0x20): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x24): multiple definition of `gc_television'; gc_appearance.o:(.bss+0x24): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x28): multiple definition of `gc_rp'; gc_appearance.o:(.bss+0x28): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x2c): multiple definition of `gc_xfiles'; gc_appearance.o:(.bss+0x2c): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x30): multiple definition of `gc_babylon5'; gc_appearance.o:(.bss+0x30): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x34): multiple definition of `gc_startrek'; gc_appearance.o:(.bss+0x34): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x38): multiple definition of `gc_pgp'; gc_appearance.o:(.bss+0x38): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x3c): multiple definition of `gc_cypher'; gc_appearance.o:(.bss+0x3c): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x40): multiple definition of `gc_economic'; gc_appearance.o:(.bss+0x40): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x44): multiple definition of `gc_social'; gc_appearance.o:(.bss+0x44): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x48): multiple definition of `gc_vms'; gc_appearance.o:(.bss+0x48): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x4c): multiple definition of `gc_mac'; gc_appearance.o:(.bss+0x4c): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x50): multiple definition of `gc_os2'; gc_appearance.o:(.bss+0x50): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x54): multiple definition of `gc_windows'; gc_appearance.o:(.bss+0x54): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x58): multiple definition of `gc_kibo'; gc_appearance.o:(.bss+0x58): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x5c): multiple definition of `gc_oracle'; gc_appearance.o:(.bss+0x5c): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x60): multiple definition of `gc_usenet'; gc_appearance.o:(.bss+0x60): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x64): multiple definition of `gc_www'; gc_appearance.o:(.bss+0x64): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x68): multiple definition of `gc_emacs'; gc_appearance.o:(.bss+0x68): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x6c): multiple definition of `gc_linux'; gc_appearance.o:(.bss+0x6c): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x70): multiple definition of `gc_perl'; gc_appearance.o:(.bss+0x70): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x74): multiple definition of `gc_unix'; gc_appearance.o:(.bss+0x74): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x78): multiple definition of `gc_unix_type'; gc_appearance.o:(.bss+0x78): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x7c): multiple definition of `gc_computers'; gc_appearance.o:(.bss+0x7c): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x80): multiple definition of `gc_age'; gc_appearance.o:(.bss+0x80): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x84): multiple definition of `gc_weight'; gc_appearance.o:(.bss+0x84): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x88): multiple definition of `gc_height'; gc_appearance.o:(.bss+0x88): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x8c): multiple definition of `gc_dress'; gc_appearance.o:(.bss+0x8c): first defined here
/usr/bin/ld: gc_type.o:(.bss+0x90): multiple definition of `gc_type'; gc_appearance.o:(.bss+0x90): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x0): multiple definition of `gc_sex'; gc_appearance.o:(.bss+0x0): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x4): multiple definition of `gc_sex_type'; gc_appearance.o:(.bss+0x4): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x8): multiple definition of `gc_relationships'; gc_appearance.o:(.bss+0x8): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0xc): multiple definition of `gc_housing'; gc_appearance.o:(.bss+0xc): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x10): multiple definition of `gc_education'; gc_appearance.o:(.bss+0x10): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x14): multiple definition of `gc_geekcode'; gc_appearance.o:(.bss+0x14): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x18): multiple definition of `gc_doom'; gc_appearance.o:(.bss+0x18): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x1c): multiple definition of `gc_dilbert'; gc_appearance.o:(.bss+0x1c): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x20): multiple definition of `gc_books'; gc_appearance.o:(.bss+0x20): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x24): multiple definition of `gc_television'; gc_appearance.o:(.bss+0x24): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x28): multiple definition of `gc_rp'; gc_appearance.o:(.bss+0x28): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x2c): multiple definition of `gc_xfiles'; gc_appearance.o:(.bss+0x2c): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x30): multiple definition of `gc_babylon5'; gc_appearance.o:(.bss+0x30): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x34): multiple definition of `gc_startrek'; gc_appearance.o:(.bss+0x34): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x38): multiple definition of `gc_pgp'; gc_appearance.o:(.bss+0x38): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x3c): multiple definition of `gc_cypher'; gc_appearance.o:(.bss+0x3c): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x40): multiple definition of `gc_economic'; gc_appearance.o:(.bss+0x40): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x44): multiple definition of `gc_social'; gc_appearance.o:(.bss+0x44): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x48): multiple definition of `gc_vms'; gc_appearance.o:(.bss+0x48): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x4c): multiple definition of `gc_mac'; gc_appearance.o:(.bss+0x4c): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x50): multiple definition of `gc_os2'; gc_appearance.o:(.bss+0x50): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x54): multiple definition of `gc_windows'; gc_appearance.o:(.bss+0x54): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x58): multiple definition of `gc_kibo'; gc_appearance.o:(.bss+0x58): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x5c): multiple definition of `gc_oracle'; gc_appearance.o:(.bss+0x5c): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x60): multiple definition of `gc_usenet'; gc_appearance.o:(.bss+0x60): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x64): multiple definition of `gc_www'; gc_appearance.o:(.bss+0x64): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x68): multiple definition of `gc_emacs'; gc_appearance.o:(.bss+0x68): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x6c): multiple definition of `gc_linux'; gc_appearance.o:(.bss+0x6c): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x70): multiple definition of `gc_perl'; gc_appearance.o:(.bss+0x70): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x74): multiple definition of `gc_unix'; gc_appearance.o:(.bss+0x74): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x78): multiple definition of `gc_unix_type'; gc_appearance.o:(.bss+0x78): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x7c): multiple definition of `gc_computers'; gc_appearance.o:(.bss+0x7c): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x80): multiple definition of `gc_age'; gc_appearance.o:(.bss+0x80): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x84): multiple definition of `gc_weight'; gc_appearance.o:(.bss+0x84): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x88): multiple definition of `gc_height'; gc_appearance.o:(.bss+0x88): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x8c): multiple definition of `gc_dress'; gc_appearance.o:(.bss+0x8c): first defined here
/usr/bin/ld: gc_translate.o:(.bss+0x90): multiple definition of `gc_type'; gc_appearance.o:(.bss+0x90): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x90): multiple definition of `gc_type'; gc_appearance.o:(.bss+0x90): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x8c): multiple definition of `gc_dress'; gc_appearance.o:(.bss+0x8c): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x88): multiple definition of `gc_height'; gc_appearance.o:(.bss+0x88): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x84): multiple definition of `gc_weight'; gc_appearance.o:(.bss+0x84): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x80): multiple definition of `gc_age'; gc_appearance.o:(.bss+0x80): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x7c): multiple definition of `gc_computers'; gc_appearance.o:(.bss+0x7c): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x78): multiple definition of `gc_unix_type'; gc_appearance.o:(.bss+0x78): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x74): multiple definition of `gc_unix'; gc_appearance.o:(.bss+0x74): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x70): multiple definition of `gc_perl'; gc_appearance.o:(.bss+0x70): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x6c): multiple definition of `gc_linux'; gc_appearance.o:(.bss+0x6c): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x68): multiple definition of `gc_emacs'; gc_appearance.o:(.bss+0x68): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x64): multiple definition of `gc_www'; gc_appearance.o:(.bss+0x64): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x60): multiple definition of `gc_usenet'; gc_appearance.o:(.bss+0x60): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x5c): multiple definition of `gc_oracle'; gc_appearance.o:(.bss+0x5c): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x58): multiple definition of `gc_kibo'; gc_appearance.o:(.bss+0x58): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x54): multiple definition of `gc_windows'; gc_appearance.o:(.bss+0x54): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x50): multiple definition of `gc_os2'; gc_appearance.o:(.bss+0x50): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x4c): multiple definition of `gc_mac'; gc_appearance.o:(.bss+0x4c): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x48): multiple definition of `gc_vms'; gc_appearance.o:(.bss+0x48): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x44): multiple definition of `gc_social'; gc_appearance.o:(.bss+0x44): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x40): multiple definition of `gc_economic'; gc_appearance.o:(.bss+0x40): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x3c): multiple definition of `gc_cypher'; gc_appearance.o:(.bss+0x3c): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x38): multiple definition of `gc_pgp'; gc_appearance.o:(.bss+0x38): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x34): multiple definition of `gc_startrek'; gc_appearance.o:(.bss+0x34): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x30): multiple definition of `gc_babylon5'; gc_appearance.o:(.bss+0x30): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x2c): multiple definition of `gc_xfiles'; gc_appearance.o:(.bss+0x2c): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x28): multiple definition of `gc_rp'; gc_appearance.o:(.bss+0x28): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x24): multiple definition of `gc_television'; gc_appearance.o:(.bss+0x24): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x20): multiple definition of `gc_books'; gc_appearance.o:(.bss+0x20): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x1c): multiple definition of `gc_dilbert'; gc_appearance.o:(.bss+0x1c): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x18): multiple definition of `gc_doom'; gc_appearance.o:(.bss+0x18): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x14): multiple definition of `gc_geekcode'; gc_appearance.o:(.bss+0x14): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x10): multiple definition of `gc_education'; gc_appearance.o:(.bss+0x10): first defined here
/usr/bin/ld: geekcode.o:(.bss+0xc): multiple definition of `gc_housing'; gc_appearance.o:(.bss+0xc): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x8): multiple definition of `gc_relationships'; gc_appearance.o:(.bss+0x8): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x0): multiple definition of `gc_sex'; gc_appearance.o:(.bss+0x0): first defined here
/usr/bin/ld: geekcode.o:(.bss+0x4): multiple definition of `gc_sex_type'; gc_appearance.o:(.bss+0x4): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:41: geekcode] Error 1

(Also, there are some compiler warnings before, I don't know if that is related, I am not familiar with C or linking stuff:

gcc -O3 -s -c gc_appearance.c
gc_appearance.c: In function get_dress:
gc_appearance.c:61:12: warning: implicit declaration of function exit [-Wimplicit-function-declaration]
   61 |            exit(1);
      |            ^~~~
gc_appearance.c:24:1: note: include <stdlib.h> or provide a declaration of exit
   23 | #include "geekcode.h"
  +++ |+#include <stdlib.h>
   24 | 
gc_appearance.c:61:12: warning: incompatible implicit declaration of built-in function exit [-Wbuiltin-declaration-mismatch]
   61 |            exit(1);
      |            ^~~~
gc_appearance.c:61:12: note: include <stdlib.h> or provide a declaration of exit
gc_appearance.c: In function get_height:
gc_appearance.c:102:12: warning: incompatible implicit declaration of built-in function exit [-Wbuiltin-declaration-mismatch]
  102 |            exit(1);
      |            ^~~~
[...]
geekcode.c:96:7: warning: incompatible implicit declaration of built-in function exit [-Wbuiltin-declaration-mismatch]
   96 |       exit(1);
      |       ^~~~
geekcode.c:96:7: note: include <stdlib.h> or provide a declaration of exit

)

  • gcc version: 13.2.1
  • ld version: 2.41.0 (GNU Binutils)
  • glibc version: 2.38

Regards!

Discussion

  • Chris Gushue

    Chris Gushue - 2024-01-11

    Looks like I had most recently compiled it back in 2003, using gcc 2.95.1 ... quite a bit older than current versions and the code most likely being nowhere near proper for current standards (and probably bad code even back then). I haven't done any programming in years, I wouldn't even know where to start at this point to fix it.

     
  • Drei Eck

    Drei Eck - 2024-01-11

    OK! I see that debian has patches making it compile, and I fixed the Arch Linux AUR package using those debian patches.

    Maybe that could be something to work with, if you intend to update the code.

    Regards!

     

Log in to post a comment.