In order for octave to compile on OS X, glpk needs to export the symbols __glp_lib_fault_hook __glp_lib_print_hook else linking octave against glpk will fail. This is also true for higher versions of octave then the version currently in portage (3.0.3), up to the current one (3.0.5). So the attached patch should be applied. Discussion is here: http://www.nabble.com/octave-3.0.3-build-problem-due-to-glpk-td19945239.html?ref=darwinports.com
Created attachment 189262 [details, diff] Patch to adjust Makefile.am to export the needed symbols
added to 4.37, hope it doesn't break non osx users. thx.