You are here

Error compiling on GNU/Linux (Ubuntu)

3 posts / 0 new
Last post
John Williams's picture
Offline
Joined: 10/18/2010 - 18:54
Error compiling on GNU/Linux (Ubuntu)

Hi,

Firstly, thank you very much indeed for your efforts in providing this wonderful tool to the R "community". I'm trying to install it on a 32-bit GNU/Linux environment (Ubuntu Maverick, to be precise) with R 2.12.0. When compiling from source the build fails because it can't find the function or variable "errno". Is there are fix or workaround available? Thanks again,

John

> trying URL 'https://openmx.ssri.psu.edu/packages/src/contrib/OpenMx_1.0.1-1464.tar.gz'
[snip]

  • installing source package ‘OpenMx’ ...
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc is installed... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking if gcc accepts -dumpversion option... yes
    checking gcc version... 4.4.5
    checking for gawk... /usr/bin/awk
    checking for inst/npsol/linux/x86/gcc4.4/libnpsol.a... yes
    configure: creating ./config.status
    config.status: creating src/Makevars
    config.status: executing src/omxSymbolTable.h commands
    config.status: executing src/omxSymbolTable.c commands
    ** libs
    gcc -I/usr/share/R/include -Wall -fpic -std=gnu99 -O3 -pipe -g -c merge.c -o merge.o
    gcc -I/usr/share/R/include -Wall -fpic -std=gnu99 -O3 -pipe -g -c npsolWrap.c -o npsolWrap.o
    npsolWrap.c: In function ‘callNPSOL’:
    npsolWrap.c:436: error: ‘errno’ undeclared (first use in this function)
    npsolWrap.c:436: error: (Each undeclared identifier is reported only once
    npsolWrap.c:436: error: for each function it appears in.)
    make: *** [npsolWrap.o] Error 1
mspiegel's picture
Offline
Joined: 07/31/2009 - 15:24
Yup, sorry about that. We

Yup, sorry about that. We caught that bug today. Try using the installer script again, I think I fixed it.

John Williams's picture
Offline
Joined: 10/18/2010 - 18:54
Works a treat. Compiles

Works a treat. Compiles error-free. You're a star, Michael! Thank you so much for your work on this.

Best wishes,

John