Hi ports + steven, So I went to use the glpk module for ocatve today to find that glpk was not compiled in.
Infact, glpk support does get compiled in *if* glpk happens to be installed at the time of build. The obvious thing to do is (sadly, this does not work, read on): Index: Makefile =================================================================== RCS file: /cvs/ports/math/octave/Makefile,v retrieving revision 1.56 diff -u -p -r1.56 Makefile --- Makefile 16 Sep 2011 10:31:22 -0000 1.56 +++ Makefile 26 Oct 2011 10:56:00 -0000 @@ -8,7 +8,7 @@ COMMENT= high-level language for numeric VERSION= 3.0.5 DISTNAME= octave-${VERSION} -REVISION= 7 +REVISION= 8 CATEGORIES= math SHARED_LIBS= cruft 5.0 \ @@ -25,7 +25,7 @@ PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes -WANTLIB= c m ncurses readline stdc++ z ${MODFORTRAN_WANTLIB} \ +WANTLIB= c glpk m ncurses readline stdc++ z ${MODFORTRAN_WANTLIB} \ fftw3>=3 lapack>=3 blas>=1 amd umfpack pcre>=1 curl>=6 MASTER_SITES= ftp://ftp.octave.org/pub/octave/ \ @@ -45,6 +45,7 @@ LIB_DEPENDS= ${MODFORTRAN_LIB_DEPENDS} \ math/blas \ math/amd \ math/umfpack \ + devel/glpk \ devel/pcre \ net/curl However, this results in a runtime linkage error: ... octave:/usr/local/libexec/octave/3.0.5/oct/x86_64-unknown-openbsd5.0/__glpk__.oct: undefined symbol '_glp_lib_fault_hook' lazy binding failed! panic: Segmentation fault -- stopping myself... This is a known error with older versions of ocatve: https://bugzilla.redhat.com/show_bug.cgi?id=492155 Our version of octave is ancient. Is anyone working on an update? If not, I am going to have a go, because I want to use this feature. Until then, I propose: Index: Makefile =================================================================== RCS file: /cvs/ports/math/octave/Makefile,v retrieving revision 1.56 diff -u -p -u -r1.56 Makefile --- Makefile 16 Sep 2011 10:31:22 -0000 1.56 +++ Makefile 26 Oct 2011 10:59:04 -0000 @@ -8,7 +8,7 @@ COMMENT= high-level language for numeric VERSION= 3.0.5 DISTNAME= octave-${VERSION} -REVISION= 7 +REVISION= 8 CATEGORIES= math SHARED_LIBS= cruft 5.0 \ @@ -57,7 +57,8 @@ AUTOCONF_VERSION=2.61 CONFIGURE_ARGS= ${CONFIGURE_SHARED} \ --with-fftw \ --without-mpi \ - --without-hdf5 + --without-hdf5 \ + --without-glpk # will work only with newer octave versions CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" \ F77=${FC} \ OK? -- Best Regards Edd Barrett http://www.theunixzoo.co.uk