You are not logged in.

#1 2012-02-09 17:48:44

lolhue
Member
Registered: 2011-10-06
Posts: 21

Bulding with makepkg results in chroot()...missing plus other errors

I've been trying to make and build iroffer-dinoex from AUR, exept I noticed during the configure, it complained that chroot() missing. I went and ran configure manually to make sure chroot() wasn't really missing, and it worked fine. Not only that, but when building from makepkg, I get a bunch of warnings from GCC, while building it manually brings up no errors. Any idea how the environment changes between building manually and using makepkg? I know you can fiddle with the gcc build options in /etc/makepkg, but that's all I know about changing builds with makepkg.

Thanks

Offline

#2 2012-02-09 17:59:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Bulding with makepkg results in chroot()...missing plus other errors

What errors/warnings? Please post them.

Edit: I get:

...
Checking for chroot()... missing, will not be able to chroot().
Seeing if NSS library exists (for chroot)... found
...

but the package builds and installs fine.

Last edited by karol (2012-02-09 18:02:34)

Offline

#3 2012-02-09 19:03:10

lolhue
Member
Registered: 2011-10-06
Posts: 21

Re: Bulding with makepkg results in chroot()...missing plus other errors

I meant to say warnings not errors in the title. Warnings:

src/iroffer_misc.c: In function ‘gobackground’:
src/iroffer_misc.c:758:7: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result [-Wunused-result]
src/iroffer_misc.c:759:7: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result [-Wunused-result]
src/iroffer_misc.c: In function ‘writepidfile’:
src/iroffer_misc.c:706:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
src/dinoex_main.c: In function ‘add_password’:
src/dinoex_main.c:192:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
src/dinoex_jobs.c: In function ‘write_removed_xdcc’:
src/dinoex_jobs.c:894:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
src/dinoex_jobs.c:896:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
src/dinoex_jobs.c:898:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
src/dinoex_jobs.c:900:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
src/dinoex_jobs.c:902:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
src/dinoex_jobs.c:904:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
src/dinoex_jobs.c:909:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
src/dinoex_jobs.c:914:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
src/dinoex_jobs.c:916:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
src/dinoex_jobs.c:918:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
src/dinoex_jobs.c:920:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]

Which clashes with the notice that

No errors or warnings should appear when compiling, if they do, something is wrong

Also, does missing chroot() have any impact? I presume that if iroffer has a chroot option in the settings, it no longer works?

Configuring and making manually, using the same directory that makepkg made, results in a clean build without warnings and without the chroot() missing issue.

Offline

Board footer

Powered by FluxBB