Bug 207590

Summary: math/glpk: MYSQL=on: 'sql.h' file not found
Product: Ports & Packages Reporter: Kalten <kalten>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: danfe, dmgk, w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (bf)
Version: Latest   
Hardware: Any   
OS: Any   

Description Kalten 2016-02-29 12:05:49 UTC
When setting MYSQL=on it is not able to locate sql.h (in poudriere)

(Be aware, that there is a Bug 203448 from 2015-09-29 with the subject
“Update math/glpk to version 4.55” including a patch!)

...8<---
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I. -I./amd -I./bflib -I./cglib -I./colamd -I./env -I./minisat -I./misc -I./proxy -I./zlib -I/usr/local/include/mysql -D_LSEEK_DECLARED -I/usr/local/include -O2 -pipe -trigraphs -fstack-protector -fno-strict-aliasing -MT libglpk_la-glpspx02.lo -MD -MP -MF .deps/libglpk_la-glpspx02.Tpo -c glpspx02.c -o libglpk_la-glpspx02.o >/dev/null 2>&1
mv -f .deps/libglpk_la-glpspx02.Tpo .deps/libglpk_la-glpspx02.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I. -I./amd -I./bflib -I./cglib -I./colamd -I./env -I./minisat -I./misc -I./proxy -I./zlib -I/usr/local/include/mysql -D_LSEEK_DECLARED -I/usr/local/include  -O2 -pipe  -trigraphs -fstack-protector -fno-strict-aliasing -MT libglpk_la-glpsql.lo -MD -MP -MF .deps/libglpk_la-glpsql.Tpo -c -o libglpk_la-glpsql.lo `test -f 'glpsql.c' || echo './'`glpsql.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I. -I./amd -I./bflib -I./cglib -I./colamd -I./env -I./minisat -I./misc -I./proxy -I./zlib -I/usr/local/include/mysql -D_LSEEK_DECLARED -I/usr/local/include -O2 -pipe -trigraphs -fstack-protector -fno-strict-aliasing -MT libglpk_la-glpsql.lo -MD -MP -MF .deps/libglpk_la-glpsql.Tpo -c glpsql.c  -fPIC -DPIC -o .libs/libglpk_la-glpsql.o
In file included from glpsql.c:31:
In file included from ./glpmpl.h:29:
In file included from ./env2.h:8:
./env/env.h:32:9: warning: 'SIZE_T_MAX' macro redefined
#define SIZE_T_MAX (~(size_t)0)
        ^
/usr/include/sys/limits.h:76:9: note: previous definition is here
#define SIZE_T_MAX      __SIZE_T_MAX    /* max value for a size_t */
        ^
glpsql.c:340:10: fatal error: 'sql.h' file not found
#include <sql.h>
         ^
1 warning and 1 error generated.
Makefile:1224: recipe for target 'libglpk_la-glpsql.lo' failed
--->8...

Regards,
 Kalten
Comment 1 Rene Ladan freebsd_committer freebsd_triage 2016-06-27 21:44:20 UTC
Maintainer reset.
Comment 2 Alexey Dokuchaev freebsd_committer freebsd_triage 2017-12-10 11:10:31 UTC
With MYSQL=on, current version of the port (glpk-4.64) builds fine for me.  Is this PR still relevant?