[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Errors with glpk on a Mac G5
From: |
Joe Koski |
Subject: |
Re: Errors with glpk on a Mac G5 |
Date: |
Sat, 16 Sep 2006 12:29:45 -0600 |
User-agent: |
Microsoft-Entourage/11.2.5.060620 |
on 9/15/06 9:35 PM, John W. Eaton at address@hidden wrote:
> On 15-Sep-2006, Joe Koski wrote:
>
> | The build went well, but near the end I got an error:
> |
> | g++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H
> | -Wall -W -Wshadow -g -O2 __gnuplot_raw__.cc -o __gnuplot_raw__.o
> | g++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H
> | -Wall -W -Wshadow -Wold-style-cast -g -O2 ./DLD-FUNCTIONS/__glpk__.cc -o
> | __glpk__.o
> | <stdout>: In function 'int yy_get_next_buffer()':
> | <stdout>:1274: warning: comparison between signed and unsigned integer
> | expressions
> | ./DLD-FUNCTIONS/__glpk__.cc: In function 'int glpk(int, int, int, double*,
> | int, int*, int*, double*, double*, char*, int*, double*, int*, double*,
> | int*, int, int, int, double*, double*, double*, double*, double*, double*,
> | double*)':
> | ./DLD-FUNCTIONS/__glpk__.cc:183: error: 'lpx_set_obj_coef' was not declared
> | in this scope
> | ./DLD-FUNCTIONS/__glpk__.cc:228: error: 'lpx_load_matrix' was not declared
> | in this scope
> | ./DLD-FUNCTIONS/__glpk__.cc:232: error: 'lpx_write_cpxlp' was not declared
> | in this scope
> | ./DLD-FUNCTIONS/__glpk__.cc:292: error: 'lpx_mip_status' was not declared in
> | this scope
> | ./DLD-FUNCTIONS/__glpk__.cc:293: error: 'lpx_mip_obj_val' was not declared
> | in this scope
> | ./DLD-FUNCTIONS/__glpk__.cc:304: error: 'lpx_ipt_status' was not declared in
> | this scope
> | ./DLD-FUNCTIONS/__glpk__.cc:305: error: 'lpx_ipt_obj_val' was not declared
> | in this scope
> | ./DLD-FUNCTIONS/__glpk__.cc:312: error: 'lpx_mip_col_val' was not declared
> | in this scope
> | ./DLD-FUNCTIONS/__glpk__.cc:320: error: 'lpx_get_col_prim' was not declared
> | in this scope
> | ./DLD-FUNCTIONS/__glpk__.cc:322: error: 'lpx_ipt_col_prim' was not declared
> | in this scope
> | ./DLD-FUNCTIONS/__glpk__.cc:329: error: 'lpx_get_row_dual' was not declared
> | in this scope
> | ./DLD-FUNCTIONS/__glpk__.cc:331: error: 'lpx_ipt_row_dual' was not declared
> | in this scope
> | ./DLD-FUNCTIONS/__glpk__.cc:338: error: 'lpx_get_col_dual' was not declared
> | in this scope
> | ./DLD-FUNCTIONS/__glpk__.cc:340: error: 'lpx_ipt_col_dual' was not declared
> | in this scope
> | make[2]: *** [__glpk__.o] Error 1
> | make[2]: *** Waiting for unfinished jobs....
> | make[1]: *** [src] Error 2
> | make: *** [all] Error 2
>
> On my system it looks like all these symbols are defined in the file
> glplpx.h. That file is included by glpk.h, which is what __glpk__.cc
> includes, so there should be no need to include glplpx.h directly in
> __glpk__.cc.
>
> jwe
John,
I should have checked the glpk headers before I reported the problem, but it
would not have made any difference. The problem persists despite the
presence of the correct header files in /usr/local/include:
Joe-Koskis-Computer:/usr/local/include jakoski$ lsF -l glp*
-rw-r--r-- 1 root wheel 4809 Sep 15 16:34 glpavl.h
-rw-r--r-- 1 root wheel 3873 Sep 15 16:34 glpchol.h
-rw-r--r-- 1 root wheel 2811 Sep 15 16:34 glpdmp.h
-rw-r--r-- 1 root wheel 4810 Sep 15 16:34 glphbsm.h
-rw-r--r-- 1 root wheel 21390 Sep 15 16:34 glpies.h
-rw-r--r-- 1 root wheel 25580 Sep 15 16:34 glpiet.h
-rw-r--r-- 1 root wheel 7432 Sep 15 16:34 glpinv.h
-rw-r--r-- 1 root wheel 25451 Sep 15 16:34 glpios.h
-rw-r--r-- 1 root wheel 1436 Sep 15 16:34 glpipm.h
-rw-r--r-- 1 root wheel 1229 Sep 15 16:34 glpk.h
-rw-r--r-- 1 root wheel 6922 Sep 15 16:34 glplib.h
-rw-r--r-- 1 root wheel 12262 Sep 15 16:34 glplpp.h
-rw-r--r-- 1 root wheel 3578 Sep 15 16:34 glplpt.h
-rw-r--r-- 1 root wheel 43124 Sep 15 16:34 glplpx.h
-rw-r--r-- 1 root wheel 16395 Sep 15 16:34 glpluf.h
-rw-r--r-- 1 root wheel 9222 Sep 15 16:34 glpmat.h
-rw-r--r-- 1 root wheel 11738 Sep 15 16:34 glpmip.h
-rw-r--r-- 1 root wheel 76768 Sep 15 16:34 glpmpl.h
-rw-r--r-- 1 root wheel 4858 Sep 15 16:34 glpmps.h
-rw-r--r-- 1 root wheel 2763 Sep 15 16:34 glpqmd.h
-rw-r--r-- 1 root wheel 6983 Sep 15 16:34 glpspm.h
-rw-r--r-- 1 root wheel 8705 Sep 15 16:34 glpspx.h
-rw-r--r-- 1 root wheel 2749 Sep 15 16:34 glpstr.h
-rw-r--r-- 1 root wheel 4460 Sep 15 16:34 glptsp.h
When I more the header files, they look OK, and the permissions look OK to
me. When I checked config.log, it had found glpk.h without problems. When I
did a find in /usr on the headers, only one copy of glpk.h and glplpx.h
appeared. I thought that we might have a freak coincidence of two headers
with the same name.
I resisted the temptation to place the missing glpk header files in
octave-2.9.8/src, where they could be more easily found. I then dug out Paul
Kienzle's old e-mail advice about building the sparse library from August 1,
and did
Joe-Koskis-Computer:/Tools/octave-2.9.8 jakoski$ export
CPATH=/usr/local/include
Joe-Koskis-Computer:/Tools/octave-2.9.8 jakoski$ export
LIBRARY_PATH=/usr/local/lib
Joe-Koskis-Computer:/Tools/octave-2.9.8 jakoski$ export LDFLAGS=-lcamd
Joe-Koskis-Computer:/Tools/octave-2.9.8 jakoski$ export LIBS="-lSystem
-lSystemStubs"
Joe-Koskis-Computer:/Tools/octave-2.9.8 jakoski$ ./configure F77=g95
and tried another make. The build again stopped at the same "was not
declared" errors, indicating that the header is still missing.
So ./configure seems to find everything, but make is having problems, even
though the headers appear to be in place with the correct permissions.
Other than the expedient fix of placing the headers where they can be found,
what else should I try?
Joe