You are not logged in.

#1 2011-01-22 08:44:27

CPUnltd
Member
From: Milwaukee, WI
Registered: 2009-12-05
Posts: 483
Website

[SOLVED]"permission denied" when building pkg

most consistantly, I get the error when a pkgbuild has the line: ./autogen.sh
in building linphone-git, mediastreamer-git and ortp-git

another time, I got burned with the line: ./system.tmp
from building wiimms-iso-tools

and the last pkg I tried to build, I got it on the line: ./file2h
while building linux-wbfs-manager

...it really bugs me about these packages, because my desktop has the exact same install and works fine (so well, I can build them on the desktop and install them on the laptop... but that becomes tedious after a while, so I'd like to fix this issue... I searched for the issue in the forums, and it always semed to be related to the actual pkgbuild... but that's not the case in my scenario because the build works fine on the desktop and kicks me in the teeth on the laptop.  Please ask whatever questions necessary to get the info needed to deal with this issue.  I'm not really strong at pkgbuild configurations (only make a couple for my own to test my abiliities) so I'm not sure what to include exactly.  I can include the line numbers for the pkgbuilds in question, but I'm sure the PKGBBUILDs are not the issue here... it's something to do with my laptop...

come to think of it, my desktop isn't quite up to date as my laptop, I think... because the laptop ran into an issue where python-qt and python-sip were attempting to replace python2-qt and python2-sip, but both python2 pkgs were deps for like 50+ other packages... so I'm not sure if that's related.  Pretty sure I didn't update my desktop and get that issue... not in the last couple of days.  And that issue started on my laptop today... both issues, actually, so maybe they are related.


***********************************


SOLUTION: removed "noexec" from tmpfs options for /tmp ramdisk setup in fstab
Moral of the story: be mindful of how you configure things, because an old configuration can ruin a new package installation or functionality. tongue

Last edited by CPUnltd (2011-01-24 22:09:34)


Help grow the dev population... have your tech trained and certified!

Offline

#2 2011-01-24 05:06:36

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [SOLVED]"permission denied" when building pkg

Do the script has the executable permission?  It might help if you post an actual error message.

Offline

#3 2011-01-24 07:31:18

CPUnltd
Member
From: Milwaukee, WI
Registered: 2009-12-05
Posts: 483
Website

Re: [SOLVED]"permission denied" when building pkg

==> Starting make...
patching file Makefile
Hunk #1 succeeded at 165 (offset 11 lines).
Hunk #2 succeeded at 459 (offset 19 lines).
./setup.sh: line 47: ./system.tmp: Permission denied
***  create templates.sed     
***  create version.h         
/bin/bash: ./gen-template.sh: Permission denied
make: *** [version.h] Error 126
    Aborting...
The build failed.

----------

==> Starting build()...
gcc -march=x86-64 -mtune=generic -O2 -pipe -Wall -DLARGE_FILES -D_FILE_OFFSET_BITS=64 -Ilibwbfs -I. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14    -c -o file2h.o file2h.c
gcc -o file2h file2h.o
./file2h wbfs_gui_glade.h wbfs_gui.glade
make: execvp: ./file2h: Permission denied
make: *** [wbfs_gui_glade.h] Error 127
    Aborting...
The build failed.

----------


==> Starting make...
/tmp/packerbuild-1000/linphone-git/linphone-git/PKGBUILD: line 39: ./autogen.sh: Permission denied
    Aborting...
The build failed.

----------
/tmp/packerbuild-1000/mediastreamer-git/mediastreamer-git/PKGBUILD: line 35: ./autogen.sh: Permission denied
    Aborting...
The build failed.

----------

==> Starting make...
/tmp/packerbuild-1000/ortp-git/ortp-git/PKGBUILD: line 34: ./autogen.sh: Permission denied
    Aborting...
The build failed.


Help grow the dev population... have your tech trained and certified!

Offline

#4 2011-01-24 07:44:26

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,405
Website

Re: [SOLVED]"permission denied" when building pkg

Does it work if you build it using makepkg in a folder other than /tmp?

Do you have /tmp mounted without permission to execute things?

Online

#5 2011-01-24 07:54:30

CPUnltd
Member
From: Milwaukee, WI
Registered: 2009-12-05
Posts: 483
Website

Re: [SOLVED]"permission denied" when building pkg

result:



e[3]: Entering directory `/home/cpunltd/myPKGBUILDs/temp/linphone/src/linphone-build/coreapi'
  CC     linphonecore.lo
cc1: warnings being treated as errors
linphonecore.c: In function 'linphone_core_preview_ring':
linphonecore.c:2867:3: error: passing argument 4 of 'ring_start_with_cb' from incompatible pointer type
/usr/include/mediastreamer2/mediastream.h:151:13: note: expected 'MSFilterNotifyFunc' but argument is of type 'void (*)(void *, struct MSFilter *, unsigned int,  void *)'
make[3]: *** [linphonecore.lo] Error 1
make[3]: Leaving directory `/home/cpunltd/myPKGBUILDs/temp/linphone/src/linphone-build/coreapi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/cpunltd/myPKGBUILDs/temp/linphone/src/linphone-build/coreapi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cpunltd/myPKGBUILDs/temp/linphone/src/linphone-build'
make: *** [all] Error 2
    Aborting...

Last edited by CPUnltd (2011-01-24 07:55:35)


Help grow the dev population... have your tech trained and certified!

Offline

#6 2011-01-24 08:20:05

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,405
Website

Re: [SOLVED]"permission denied" when building pkg

Well, that is a good old-fashioned compiler error.  So that is different to the errors you were having.

Looks to me like your /tmp is set up with no exec privileges, so you can't run anything from there (which stops you building packages using some AUR helpers...)

Online

#7 2011-01-24 21:05:07

CPUnltd
Member
From: Milwaukee, WI
Registered: 2009-12-05
Posts: 483
Website

Re: [SOLVED]"permission denied" when building pkg

so it's an fstab issue then?


Help grow the dev population... have your tech trained and certified!

Offline

#8 2011-01-24 21:28:35

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,405
Website

Re: [SOLVED]"permission denied" when building pkg

Possibly...  do you have a separate /tmp partition and have you adjust it lately?

Online

#9 2011-01-24 21:31:03

CPUnltd
Member
From: Milwaukee, WI
Registered: 2009-12-05
Posts: 483
Website

Re: [SOLVED]"permission denied" when building pkg

I just recently created a tmpfs for /tmp... I found the noexec option listed (copied it from a post I found about tmpfs, not thinking about what the noexec option might mean for installing packages... wonder why the guy that posted that didn't have the same issue...

I just changed it, but haven't rebooted just yet... will do so and post back what happens.


Help grow the dev population... have your tech trained and certified!

Offline

#10 2011-01-24 22:06:05

CPUnltd
Member
From: Milwaukee, WI
Registered: 2009-12-05
Posts: 483
Website

Re: [SOLVED]"permission denied" when building pkg

fstab change fixed it! the compiler issue (at least for ortp-git that I've tested so far) seems to be gone as well... will repost in first post... THX!


Help grow the dev population... have your tech trained and certified!

Offline

Board footer

Powered by FluxBB