LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2022, 10:49 AM   #1
hancocktom41
LQ Newbie
 
Registered: Jun 2012
Posts: 29

Rep: Reputation: Disabled
Error compiling emelfm2 on void


Every time I've attempted to compile emelfm2 I keep getting this error. What would be the best way forward with this?
Code:
/bin/ld: objs/src/utils/e2_widget.o:(.bss+0x2a00): multiple definition of `tree_view_buffer_hash'; objs/src/e2_bookmark.o:(.bss+0x2a00): first defined here
/bin/ld: objs/src/utils/e2_widget.o:(.bss+0x2a04): multiple definition of `options_queue'; objs/src/e2_bookmark.o:(.bss+0x2a04): first defined here
/bin/ld: objs/src/utils/e2_widget.o:(.bss+0x2a08): multiple definition of `options_hash'; objs/src/e2_bookmark.o:(.bss+0x2a08): first defined here
/bin/ld: objs/src/utils/e2_widget.o:(.bss+0x2a0c): multiple definition of `options_array'; objs/src/e2_bookmark.o:(.bss+0x2a0c): first defined here
/bin/ld: objs/src/utils/e2_widget.o:(.bss+0x2a10): multiple definition of `default_config_file'; objs/src/e2_bookmark.o:(.bss+0x2a10): first defined here
/bin/ld: objs/src/utils/e2_widget.o:(.bss+0x2a20): multiple definition of `config_labels'; objs/src/e2_bookmark.o:(.bss+0x2a20): first defined here
/bin/ld: objs/src/utils/e2_widget.o:(.bss+0x2ae0): multiple definition of `action_labels'; objs/src/e2_bookmark.o:(.bss+0x2ae0): first defined here
/bin/ld: objs/src/utils/e2_widget.o:(.bss+0x2ce8): multiple definition of `toggles_hash'; objs/src/e2_bookmark.o:(.bss+0x2ce8): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:424: emelfm2] Error 1
What would be the best way forward with this?
 
Old 05-13-2022, 10:58 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,039

Rep: Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347
most probably it cannot be built with a modern compiler. It was abandoned 8 years ago.
But as usual without details hard to say anything. What OS is it, what compiler is it and actually what did you try to compile? Where is it from?
 
Old 05-13-2022, 11:48 AM   #3
hancocktom41
LQ Newbie
 
Registered: Jun 2012
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
most probably it cannot be built with a modern compiler. It was abandoned 8 years ago.
But as usual without details hard to say anything. What OS is it, what compiler is it and actually what did you try to compile? Where is it from?
>What computer is it
Toughbook cf-19 mk1
>what os
Void linux i686
>compiler
Gcc
>location
Archive of the last 2014 release emelfm2-0.9.1.tar.bz2 (while the dls taken down you can still grab it from web.archive.org)
>what did I try to compile
Emelfm2

Last edited by hancocktom41; 05-13-2022 at 11:49 AM.
 
Old 05-13-2022, 12:17 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by hancocktom41 View Post
>What computer is it
Toughbook cf-19 mk1
>what os
Void linux i686
>compiler
Gcc
>location
Archive of the last 2014 release emelfm2-0.9.1.tar.bz2 (while the dls taken down you can still grab it from web.archive.org)
>what did I try to compile
Emelfm2
This is useless. pan64 was asking for the version of the compiler, and a link to the source you're trying to compile.

In any case, I just discovered that ArchLinux has it in [community]. This means there's a way to compile it for a modern system. Let's see... aah yes, here it is.
Looks like you will need the -fcommon CFLAG.
 
Old 05-13-2022, 01:33 PM   #5
hancocktom41
LQ Newbie
 
Registered: Jun 2012
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
This is useless. pan64 was asking for the version of the compiler, and a link to the source you're trying to compile.

In any case, I just discovered that ArchLinux has it in [community]. This means there's a way to compile it for a modern system. Let's see... aah yes, here it is.
Looks like you will need the -fcommon CFLAG.
Okay! Didnt know arch had it in their repos...Ill try out their script. I was thinking he was asking if it was make or cmake, sorry. Gcc is 10.2.1 pre 1.3
 
Old 05-13-2022, 02:31 PM   #6
hancocktom41
LQ Newbie
 
Registered: Jun 2012
Posts: 29

Original Poster
Rep: Reputation: Disabled
Okay so I just pulled this command in terminal
CFLAGS+=' -fcommon' make>output.txt
resulting in the same output:
Code:
/bin/ld: objs/src/utils/e2_widget.o:(.bss+0x2a08): multiple definition of `options_hash'; objs/src/e2_bookmark.o:(.bss+0x2a08): first defined here
/bin/ld: objs/src/utils/e2_widget.o:(.bss+0x2a0c): multiple definition of `options_array'; objs/src/e2_bookmark.o:(.bss+0x2a0c): first defined here
/bin/ld: objs/src/utils/e2_widget.o:(.bss+0x2a10): multiple definition of `default_config_file'; objs/src/e2_bookmark.o:(.bss+0x2a10): first defined here
/bin/ld: objs/src/utils/e2_widget.o:(.bss+0x2a20): multiple definition of `config_labels'; objs/src/e2_bookmark.o:(.bss+0x2a20): first defined here
/bin/ld: objs/src/utils/e2_widget.o:(.bss+0x2ae0): multiple definition of `action_labels'; objs/src/e2_bookmark.o:(.bss+0x2ae0): first defined here
/bin/ld: objs/src/utils/e2_widget.o:(.bss+0x2ce8): multiple definition of `toggles_hash'; objs/src/e2_bookmark.o:(.bss+0x2ce8): first defined here
output.txt showed this message:
linking binary 'emelfm2'
 
Old 05-13-2022, 07:33 PM   #7
hancocktom41
LQ Newbie
 
Registered: Jun 2012
Posts: 29

Original Poster
Rep: Reputation: Disabled
Okay I'm stupid but I figured it out thanks to a little bit of messing around and it works perfectly. All I needed to do was edit the makefile.config file and then under line 249 add a new line where all the cflags are listed put CFLAGS+= -fcommon . I think the main issue was that I needed to remove ' these ' around the word. Honestly was a shot in the wind but it worked perfectly. Thanks again!
 
Old 05-14-2022, 01:56 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,039

Rep: Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347
in that case you might want to mark the thread solved.
 
Old 05-14-2022, 01:56 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Please mark your thread SOLVED (see my signature). Others will benefit.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Void Linux is... void black-clover Linux - Networking 8 11-23-2017 08:04 PM
pthread giving error: invalid conversion from ‘void* (*)(int*)’ to ‘void* (*)(void*)’ knobby67 Programming 4 05-05-2017 10:54 AM
(void)time(&cur_time); Why did the author put (void) here? e3399 Programming 3 03-28-2011 11:45 AM
void main(void) linuxanswer Programming 4 10-26-2003 12:37 AM
void foo(void) and void foo() lackluster Programming 9 02-15-2003 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration