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?

Thanks in advance

Reply via email to