W3C home > Mailing lists > Public > www-lib@w3.org > October to December 2006

Problem compiling

From: John Coppens <john@jcoppens.com>
Date: Mon, 13 Nov 2006 16:13:12 -0300
To: www-lib@w3.org
Message-Id: <20061113161312.7a976489.john@jcoppens.com>

Hello people.

I've tried to compile libwww with mysql support and had a few problems. (without
mysql support installation went fine)

Configure was done with  --with-mysql=/opt/mysql
(lib and include are below /opt/mysql)

the configure process gave a first indication of problems:

checking for /opt/mysql/... -L/opt -lmysql

Which isn't correct, I think. I believe it should be -L/opt/mysql/lib -lmysql

Compilation stopped:

/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include 	-I../../modules/md5 	-I../../modules/expat/xmlparse   -DW3C_ICONS=\"/usr/local/share/w3c-libwww\"  -g -O2 -Wall -c HTSQL.c
.../../libtool: line 732: test: =: unary operator expected
rm -f .libs/HTSQL.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include -I../../modules/md5 -I../../modules/expat/xmlparse -DW3C_ICONS=\"/usr/local/share/w3c-libwww\" -g -O2 -Wall -c HTSQL.c  -fPIC -DPIC -o .libs/HTSQL.lo
In file included from HTSQL.c:19:
HTSQL.h:34:25: mysql/mysql.h: No such file or directory
In file included from HTSQL.c:19:
HTSQL.h:97: error: syntax error before '*' token
HTSQL.h:97: warning: type defaults to `int' in declaration of `HTSQL_getMysql'

mysql/mysql.h does exist, under   /opt/mysql/include

I'm no expert programmer, but I did compile a few apps (including some of my own)
with mysql without problems...

Please help...
Received on Monday, 13 November 2006 20:57:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:56 UTC