Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make error #580

Open
CyberBishop opened this issue Dec 24, 2020 · 26 comments
Open

Make error #580

CyberBishop opened this issue Dec 24, 2020 · 26 comments

Comments

@CyberBishop
Copy link

Expected behaviour

Actual behaviour

CC charpick.o
/bin/bash: ../depcomp: No such file or directory
make[4]: *** [Makefile:625: charpick.o] Error 127
make[4]: Leaving directory '/home/user/mate-applets/charpick'
make[3]: *** [Makefile:698: all-recursive] Error 1
make[3]: Leaving directory '/home/user/mate-applets/charpick'
make[2]: *** [Makefile:517: all] Error 2
make[2]: Leaving directory '/home/user/mate-applets/charpick'
make[1]: *** [Makefile:580: all-recursive] Error 1
make[1]: Leaving directory '/home/user/mate-applets'
make: *** [Makefile:512: all] Error 2

Steps to reproduce the behaviour

sudo ./configure && make && make install

MATE general version

Package version

Linux Distribution

Parrot

Link to bugreport of your Distribution (requirement)

@CyberBishop
Copy link
Author

Got past that step no stuck here

charpick.c: At top level:
charpick.c:850:1: fatal error: opening dependency file .deps/charpick.Tpo: Permission denied
850 | MATE_PANEL_APPLET_OUT_PROCESS_FACTORY ("CharpickerAppletFactory",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

@rbuj
Copy link
Contributor

rbuj commented Dec 24, 2020

sudo?

@CyberBishop
Copy link
Author

yes I used Sudo

@rbuj
Copy link
Contributor

rbuj commented Dec 24, 2020

sudo ./configure ?

@CyberBishop
Copy link
Author

yes did that

@rbuj
Copy link
Contributor

rbuj commented Dec 24, 2020

then regular user cannot perform make as user doesn't have enough permissions after doing sudo ./configure

@CyberBishop
Copy link
Author

kept on retrying seems like its working for now, still making

@raveit65
Copy link
Member

raveit65 commented Dec 24, 2020

./autogen.sh && make && sudo make install

@CyberBishop
Copy link
Author

CyberBishop commented Dec 24, 2020

usr/bin/ld: cpufreq-selector-sysfs.o: in function cpufreq_selector_sysfs_get_type': /home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:49: multiple definition of cpufreq_selector_sysfs_get_type'; cpufreq-selector-sysfs.o:/home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:49: first defined here
/usr/bin/ld: cpufreq-selector-sysfs.o: in function cpufreq_selector_sysfs_new': /home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:92: multiple definition of cpufreq_selector_sysfs_new'; cpufreq-selector-sysfs.o:/home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:92: first defined here
collect2: error: ld returned 1 exit status

@CyberBishop
Copy link
Author

./autogen.sh && make && sudo make install

trying this now

@rbuj
Copy link
Contributor

rbuj commented Dec 24, 2020

&& only will run the next command when the previous one exited successfully.
If you do not change the file permissions using chown you will have to run sudo make

@CyberBishop
Copy link
Author

usr/bin/ld: cpufreq-selector-sysfs.o: in function cpufreq_selector_sysfs_get_type': /home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:49: multiple definition of cpufreq_selector_sysfs_get_type'; cpufreq-selector-sysfs.o:/home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:49: first defined here
/usr/bin/ld: cpufreq-selector-sysfs.o: in function cpufreq_selector_sysfs_new': /home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:92: multiple definition of cpufreq_selector_sysfs_new'; cpufreq-selector-sysfs.o:/home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:92: first defined here
collect2: error: ld returned 1 exit status

this happened after make ran for a very long time

@CyberBishop
Copy link
Author

sudo make stops at this point

@rbuj
Copy link
Contributor

rbuj commented Dec 24, 2020

Change the file permissions of your working copy using chown (chown -R USER PATH), then remove the generated files on configure step using make distclean and start the process by running the commands one by one without chaining (&&).

./autogen.sh
make
sudo make install

@CyberBishop
Copy link
Author

Change the file permissions of your working copy using chown (chown -R USER PATH)
I dont get

@rbuj
Copy link
Contributor

rbuj commented Dec 24, 2020

sudo chown -R $USER $PWD

@CyberBishop
Copy link
Author

alright

@CyberBishop
Copy link
Author

sudo chown -R $USER $PWD
I should just run the command this way

@CyberBishop
Copy link
Author

usr/bin/ld: cpufreq-selector-sysfs.o: in function cpufreq_selector_sysfs_get_type': /home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:49: multiple definition of cpufreq_selector_sysfs_get_type'; cpufreq-selector-sysfs.o:/home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:49: first defined here
/usr/bin/ld: cpufreq-selector-sysfs.o: in function cpufreq_selector_sysfs_new': /home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:92: multiple definition of cpufreq_selector_sysfs_new'; cpufreq-selector-sysfs.o:/home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:92: first defined here
collect2: error: ld returned 1 exit status

still got this error

@rbuj
Copy link
Contributor

rbuj commented Dec 24, 2020

Install kernel source/headers on your system.

@CyberBishop
Copy link
Author

git.mk: Generating .gitignore
make[3]: Leaving directory '/home/user/mate-applets/cpufreq/help'
Making all in pixmaps
make[3]: Entering directory '/home/user/mate-applets/cpufreq/pixmaps'
git.mk: Generating .gitignore
make[3]: Leaving directory '/home/user/mate-applets/cpufreq/pixmaps'
Making all in src
make[3]: Entering directory '/home/user/mate-applets/cpufreq/src'
GEN cpufreq-resources.c
GEN cpufreq-resources.h
git.mk: Generating .gitignore
make all-recursive
make[4]: Entering directory '/home/user/mate-applets/cpufreq/src'
Making all in cpufreq-selector
make[5]: Entering directory '/home/user/mate-applets/cpufreq/src/cpufreq-selector'
dbus-binding-tool --prefix=cpufreq_selector_service --mode=glib-server
--output=cpufreq-selector-service-glue.h
./cpufreq-selector-service.xml
WARNING: Using --header and --body at the same time is deprecated; use --body --prototypes instead
INFO: Reading /tmp/dbus-binding-tool-c-marshallers.CUREW0...
WARNING: The token "NONE" is deprecated; use "VOID" instead
WARNING: The token "NONE" is deprecated; use "VOID" instead
WARNING: The token "NONE" is deprecated; use "VOID" instead
git.mk: Generating .gitignore
make all-am
make[6]: Entering directory '/home/user/mate-applets/cpufreq/src/cpufreq-selector'
CC cpufreq-selector.o
CC cpufreq-selector-sysfs.o
CC cpufreq-selector-service.o
CC cpufreq-selector-factory.o
CC main.o
CCLD mate-cpufreq-selector
/usr/bin/ld: cpufreq-selector-sysfs.o: in function cpufreq_selector_sysfs_get_type': /home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:49: multiple definition of cpufreq_selector_sysfs_get_type'; cpufreq-selector-sysfs.o:/home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:49: first defined here
/usr/bin/ld: cpufreq-selector-sysfs.o: in function cpufreq_selector_sysfs_new': /home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:92: multiple definition of cpufreq_selector_sysfs_new'; cpufreq-selector-sysfs.o:/home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:92: first defined here
collect2: error: ld returned 1 exit status
make[6]: *** [Makefile:578: mate-cpufreq-selector] Error 1
make[6]: Leaving directory '/home/user/mate-applets/cpufreq/src/cpufreq-selector'
make[5]: *** [Makefile:493: all] Error 2
make[5]: Leaving directory '/home/user/mate-applets/cpufreq/src/cpufreq-selector'
make[4]: *** [Makefile:805: all-recursive] Error 1
make[4]: Leaving directory '/home/user/mate-applets/cpufreq/src'
make[3]: *** [Makefile:506: all] Error 2
make[3]: Leaving directory '/home/user/mate-applets/cpufreq/src'
make[2]: *** [Makefile:541: all-recursive] Error 1
make[2]: Leaving directory '/home/user/mate-applets/cpufreq'
make[1]: *** [Makefile:580: all-recursive] Error 1
make[1]: Leaving directory '/home/user/mate-applets'
make: *** [Makefile:512: all] Error 2

@CyberBishop
Copy link
Author

/usr/bin/ld: cpufreq-selector-sysfs.o: in function cpufreq_selector_sysfs_get_type': /home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:49: multiple definition of cpufreq_selector_sysfs_get_type'; cpufreq-selector-sysfs.o:/home/user/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:49: first defined here

@rbuj
Copy link
Contributor

rbuj commented Dec 24, 2020

to compile the cpufreq applet, the kernel source and headers must be installed on your system. If you do not know how to install all build deps you can disable this applet on the configure step. You can find more information by running:

 ./configure --help

@CyberBishop
Copy link
Author

I have kernel headers I dont know about the source but it should be something that came with parrot

@CyberBishop
Copy link
Author

Installed kernel source

@egnappahz
Copy link

I have this problem aswell on my arch linux. I installed linux and linux-headers. The vanilla archlinux kernel, version 5.12.6. It is not working with mate-applets version 25.3

/usr/bin/ld: cpufreq-selector-sysfs.o: in function `cpufreq_selector_sysfs_get_type':
/datagcc/buildspace/mate-applets-git/src/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:49: multiple definition of `cpufreq_selector_sysfs_get_type'; cpufreq-selector-sysfs.o:/datagcc/buildspace/mate-applets-git/src/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:49: first defined here
/usr/bin/ld: cpufreq-selector-sysfs.o: in function `cpufreq_selector_sysfs_new':
/datagcc/buildspace/mate-applets-git/src/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:92: multiple definition of `cpufreq_selector_sysfs_new'; cpufreq-selector-sysfs.o:/datagcc/buildspace/mate-applets-git/src/mate-applets/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.c:92: first defined here

[eggz@archbuild mate]$ pacman -Q linux linux-headers ; uname -a
linux 5.12.6.arch1-1
linux-headers 5.12.6.arch1-1
Linux archbuild 5.12.6-arch1-1 #1 SMP PREEMPT Sun, 23 May 2021 00:45:50 +0000 x86_64 GNU/Linux

I really don't know what else to tell you, since my C knowledge is certainly not as great as my knowledge of the linux system and arch linux in particular.

The compile doesn't work, and I feel like we are missing a vital piece of information here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants