Page 1 of 1

unable to make temporary file: Permission denied

Posted: Sun Aug 30, 2020 5:55 am
by DonTCry
UnrealIRCd 5.0.6 on FreeBSD 12 during ./Config gives this error:

........
gmake[2]: Leaving directory '/usr/home/iRC/unrealircd-5.0.6/extras/pcre2-10.33'
gmake[1]: Leaving directory '/usr/home/iRC/unrealircd-5.0.6/extras/pcre2-10.33'
checking for ARGON2... no
extracting Argon2 library
compiling Argon2 library
Building with optimizations for native
cc -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native -Wl,-rpath,/hom e/iRC/unrealircd/lib src/argon2.c src/core.c src/blake2/blake2b.c src/thread.c s rc/encoding.c src/opt.c src/run.c -o argon2
cc: error: unable to make temporary file: Permission denied
cc: error: unable to make temporary file: Permission denied
cc: error: unable to make temporary file: Permission denied
cc: error: unable to make temporary file: Permission denied
cc: error: unable to make temporary file: Permission denied
cc: error: unable to make temporary file: Permission denied
cc: error: unable to make temporary file: Permission denied
gmake: *** [Makefile:130: argon2] Error 1

Re: unable to make temporary file: Permission denied

Posted: Sun Aug 30, 2020 6:05 am
by Syzop
Perhaps you extracted the .tar.gz as root? Then the 'iRC' user cannot create files/directories in it properly. Or you use some kind of incorrect su(do) usage which leaves TMP/TEMP pointing to a wrong temp directory.
I suggest to remove your unrealircd-5.0.6 directory, and then do it again from the beginning, the extracting and ./Config and make, all as your irc user (not as root).

Also, just a small thing, and probably unrelated, but: normally usernames are all lowercase on *NIX, so seeing 'iRC' is rather unusual.

Re: unable to make temporary file: Permission denied

Posted: Sun Aug 30, 2020 6:30 am
by DonTCry
Installation is done as user, no sudo used at all.
I did create new username (all lowercase) and again I get the same error

Re: unable to make temporary file: Permission denied

Posted: Sun Aug 30, 2020 6:54 am
by Syzop
Ok, then I don't know, maybe you can ask some support from FreeBSD people.

Most likely you will have the same problem while trying to compile any software from a .tar.gz as a regular user, so it is not UnrealIRCd specific. Must be some kind of generic permission or configuration issue on your FreeBSD machine.

Re: unable to make temporary file: Permission denied

Posted: Sun Aug 30, 2020 9:27 am
by Lord255
1st:
Leaving directory '/usr/home/iRC/unrealircd-5.0.6/extras/pcre2-10.33'

then:
Building with optimizations for native
cc -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native -Wl,-rpath,/home/iRC/unrealircd/lib src/argon2.c src/core.c src/blake2/blake2b.c src/thread.c s rc/encoding.c src/opt.c src/run.c -o argon2


are you sure.. ?

Re: unable to make temporary file: Permission denied

Posted: Sun Aug 30, 2020 1:40 pm
by DonTCry
You thought I might have posted fake logs and tried to solve my issue?

Re: unable to make temporary file: Permission denied

Posted: Sun Aug 30, 2020 3:28 pm
by PeGaSuS
There's a disagreement between the paths from where UnrealIRCd is extracting the files and your $HOME directory.

All of the paths should be relative to your $HOME directory.

As the user where you plan to install UnrealIRCd, try the following commands:

Code: Select all

wget https://www.unrealircd.org/downloads/unrealircd-5.0.6.tar.gz
tar zxf unrealircd-5.0.6.tar.gz
cd unrealircd-5.0.6/
./Config
make
make install
If the above fails, then you've messed up your installation.

Hope this helps.

Re: unable to make temporary file: Permission denied

Posted: Sun Aug 30, 2020 4:33 pm
by Syzop
You thought I might have posted fake logs and tried to solve my issue?
Nah, don't think too evil. People here try to help you with good intentions. Lord255 just thought that something was wrong, the mismatch in path names, so he highlighted it because he thought that was the issue.

It seems the discussion is derailing a bit, the /usr/home and /home difference is quite normal. On FreeBSD /home is a symlink to /usr/home by default. That symlink probably got 'resolved' by a program hence the different paths in the logs. It is not related to the issue you are having.

I suggest you follow my initial advice. Just to be clear: my suggestion is to ask elsewhere, at some FreeBSD-specific forum or IRC channel (or whatever resource). Once you got it resolved, let people know in this thread what it was, so it may help other FreeBSD users :)

Re: unable to make temporary file: Permission denied

Posted: Sun Aug 30, 2020 5:53 pm
by Lord255
i'm sorry..
i wont interfere in "BSD" releated issues anymore.

"On FreeBSD /home is a symlink to /usr/home by default.' <- yes, i didn't know this and probably i have absolutely no clue about BSD.

again. sorry.

Re: unable to make temporary file: Permission denied

Posted: Mon Aug 31, 2020 4:28 am
by DonTCry
I have Unreal 5.0.4 installed and running in the same machine, that is the reason I did open this topic here.

Anyways, I will try to get an opinion if I can from FreeBSD support and than update this topic, and once again, I get that error during ./Config so I never get to make or make install.

Re: unable to make temporary file: Permission denied

Posted: Mon Aug 31, 2020 10:57 am
by DonTCry
UPDATE:

(20:33:43) <dch> you need to use a supported version of FreeBSD (12.0 is not, so you can't install working ports).
(20:34:03) <dch> https://reviews.freebsd.org/D24211
(20:34:32) <dch> and you'll need to be on a supported version of FreeBSD to download working binaries from freebsd packages