I understand, the only doubt i have is that, i thinked that the "WRKOBJDIR=/usr/obj/ports" was the compiling directory instead of "/usr/ports/pobj*" that you said, or are both directories used for compiling?
Also, i think that the FAQ could have those pre-steps in the "working with ports" section, because I followed it and will never have understanded the problem if not founded that archived old conversation with the same issue, that also don't say where is the file that one have to edit, is /etc/fstab like in linux? And last question, if i want to build many huge ports, like firefox, eclipse, java, etc... how much space will i need in the affected partitions? what will be a common partition space layout to build ports and from src? Thanks! > -------- Original Message -------- > Subject: Re: Compiling packages gives me cannot run C compiled programs error > Local Time: 15 September 2017 6:52 PM > UTC Time: 15 September 2017 21:52 > From: j...@wxcvbn.org > To: Lea Chescotta <lea.chesco...@protonmail.com> > misc\@openbsd.org <misc@openbsd.org> > > On Fri, Sep 15 2017, Lea Chescotta <lea.chesco...@protonmail.com> wrote: >> I"m trying to build Firefox from the -release ports tree in a -stable >> system, and python, a dependency, is giving me the following error: >> >> configure: error: cannot run C compiled programs. >> >> Searching about the error in the net, i have found this mailing list >> archive >> http://openbsd-archive.7691.n7.nabble.com/lang-python-2-7-configure-error-td307559.html >> where its having the exact same issue with the same package (i"m >> installing python 2.7.13, dependency of firefox-esr). In that url it >> says: >> >> "I see this same error when I try to build python without having >> WRKOBJDIR on a filesystem with the wxallowed mount option. >> To build ports that need to be marked with WXNEEDED, you need to have >> WRKOBJDIR (usually /usr/ports/pobj) on a filesystem mounted with >> wxallowed." >> >> But i couldn"t find a guide in the FAQ about enabling that setting in the >> filesystem. I have the following mount points: >> /dev/sd0a on / type ffs (local) >> /dev/sd0k on /home type ffs (local, nodev, nosuid) >> /dev/sd0d on /tmp type ffs (local, nodev, nosuid) >> /dev/sd0f on /usr type ffs (local, nodev) >> /dev/sd0g on /usr/X11R6 type ffs (local, nodev) >> /dev/sd0h on /usr/local type ffs (local, nodev, wxallowed) >> /dev/sd0j on /usr/obj type ffs (local, nodev, nosuid) >> /dev/sd0i on /usr/src type ffs (local, nodev, nosuid) >> /dev/sd0e on /var type ffs (local, nodev, nosuid) >> >> So as i understand i need to add the wxallowed setting in the following >> lines to being able to compile ports in /usr/ports, right? >> /dev/sd0f on /usr type ffs (local, nodev) >> /dev/sd0j on /usr/obj type ffs (local, nodev, nosuid) >> /dev/sd0i on /usr/src type ffs (local, nodev, nosuid) >> >> My /etc/doas.conf file: >> permit nopass keepenv :wsrc >> permit nopass keepenv :wheel >> >> My /etc/mk.conf file: >> SUDO=/usr/bin/doas >> WRKOBJDIR=/usr/obj/ports >> DISTDIR=/usr/distfiles >> PACKAGE_REPOSITORY=/usr/packages >> >> I checked out the ports tree with this command: >> $ cvs -qd anon...@anoncvs.ca.openbsd.org:/cvs checkout -rOPENBSD_6_1 -P ports >> >> How can i modify the mount points to add the wxallowed setting so that i can >> compile ports in /usr/ports? > > If /usr/ports/pobj is on the same partition as /, you need to mount / > with the wxallowed flag. Not really a good idea, I would create > a separate partition for /usr/ports/pobj* and mount that with the > wxallowed flag. > > * also for /usr/ports, but that"s not the issue here > >> Thanks in advance >> > > -- > jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE