Ticket #2576 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Duplicate symbols (Linking) problem under Mac OS X

Reported by: andrew_k Owned by: slavazanko
Priority: major Milestone: 4.8.0-pre2
Component: mc-core Version: 4.8.0-pre1
Keywords: Cc:
Blocked By: Blocking:
Branch state: merged Votes for changeset: commited-master

Description

CCLD mc

ld: duplicate symbol _dialog_map in viewer/.libs/libmcviewer.a(libmcwidget_la-dialog.o) and keybind-defaults.o for architecture x86_64
collect2: ld returned 1 exit status
make[3]: * [mc] Error 1
make[2]:
* [all-recursive] Error 1
make[1]: * [all-recursive] Error 1
make:
* [all] Error 2

Some details:

checking build system type... x86_64-apple-darwin10.8.0
...
checking for ld used by gcc... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no

dialog.c has global "dialog_map" and keybind-defaults.c too.

"static" or "extern" should be added.

But after that we will have another duplicate:

ld: duplicate symbol _record_macro_buf in filemanager/.libs/libmcfilemanager.a(libmcfilemanager_la-midnight.o) and filemanager/.libs/libmcfilemanager.a(libmcfilemanager_la-layout.o) for architecture x86_64

Change History

comment:1 Changed 8 years ago by andrew_b

  • Milestone changed from Future Releases to 4.8.0-pre2

comment:2 Changed 8 years ago by andrew_k

More duplicate symbols:

ld: duplicate symbol _input_map in viewer/.libs/libmcviewer.a(libmcwidget_la-input.o) and
keybind-defaults.o for architecture x86_64

ld: duplicate symbol _listbox_map in viewer/.libs/libmcviewer.a(libmcwidget_la-listbox.o) and keybind-defaults.o for architecture x86_64

comment:3 Changed 8 years ago by andrew_b

  • Status changed from new to accepted
  • Owner set to andrew_b

comment:4 Changed 8 years ago by andrew_b

  • Branch state changed from no branch to on review

Created 2576_duplicate_symbols branch (parent: master).
changeset:c4b95bcd327dbf89c9802368736af9040b71ca8e

comment:5 Changed 8 years ago by slavazanko

  • Votes for changeset set to slavazanko

comment:6 Changed 8 years ago by angel_il

  • Votes for changeset changed from slavazanko to slavazanko angel_il
  • Branch state changed from on review to approved

comment:7 Changed 8 years ago by andrew_b

  • Status changed from accepted to testing
  • Votes for changeset changed from slavazanko angel_il to committed-master
  • Resolution set to fixed
  • Branch state changed from approved to merged

comment:8 Changed 8 years ago by andrew_b

  • Status changed from testing to closed

comment:9 Changed 8 years ago by slavazanko

  • Status changed from closed to reopened
  • Votes for changeset committed-master deleted
  • Resolution fixed deleted
  • Branch state changed from merged to no branch

Problem wasn't fixed.

comment:10 Changed 8 years ago by slavazanko

  • Owner changed from andrew_b to slavazanko
  • Status changed from reopened to accepted
  • Branch state changed from no branch to on review

Created branch 2576_duplicate_symbol
Initial changeset:ae34b14338096cf4cbcc13e2ea6a096db07edc79

Review, please.

comment:11 Changed 8 years ago by andrew_b

  • Votes for changeset set to andrew_b

comment:12 Changed 8 years ago by angel_il

  • Votes for changeset changed from andrew_b to andrew_b angel_il
  • Branch state changed from on review to approved

comment:13 Changed 8 years ago by slavazanko

  • Status changed from accepted to testing
  • Votes for changeset changed from andrew_b angel_il to commited-master
  • Resolution set to fixed
  • Branch state changed from approved to merged

comment:14 Changed 8 years ago by slavazanko

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.