Hi all,
We're now using pkg-config to derive library and header paths upon
building against drizzle library. I have what seems to be all the code
complete for DBD::drizzle, but am having a heck of a time getting the
compile to work correctly.
[EMAIL PROTECTED]:~/drizzle/dbd-drizzle> pkg-config libdrizzle --libs
-L/usr/local/drizzle/lib -ldrizzle
[EMAIL PROTECTED]:~/drizzle/dbd-drizzle> pkg-config libdrizzle --cflags
-I/usr/local/drizzle/include
So, when I compile DBD::drizzle, it uses these values, but I get
failures like this:
Running "perl Makefile.PL"
I will use the following settings for compiling and testing:
cflags (pkg-config) = -I/usr/local/drizzle/include
libs (pkg-config) = -L/usr/local/drizzle/lib -ldrizzle
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
pkg-config (guessed ) = pkg-config
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
Use of uninitialized value in printf at Makefile.PL line 111, <PIPE> line 2.
testuser ( ) = patg
To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.
Note (probably harmless): No library found for -ldrizzle
So, I know I'm in trouble with no library found.
Then the compile:
n file included from dbdimp.c:12:
dbdimp.h:19:51: error: drizzle.h: No such file or directory
dbdimp.h:20:47: error: drizzled_error.h: No such file or directory
dbdimp.h:22:49: error: errmsg.h: No such file or directory
This is because of:
#include <drizzle.h>
#include <drizzled_error.h>
And the library is /usr/local/drizzle/include
I've tried changing them to
#include <drizzle/drizzle.h>
#include <drizzle/drizzle_error.h>
But get
In file included from dbdimp.h:19,
from dbdimp.c:12:
/usr/local/drizzle/include/drizzle/drizzle.h:44:30: error:
drizzled/version.h: No such file or directory
Also, changing the drizzle.pc file to use
/usr/local/drizzle/lib/drizzle and
/usr/local/drizzle/include/drizzle
is also a path to frustration.
Anyone intested in helping me out with this? Ideas?
The code is at:
https://code.launchpad.net/~patg-patg/dbd-drizzle/trunk
I'm a bit stuck at the moment.
Thanks!
--
Satyam Eva Jayate - Truth Alone Triumphs
Mundaka Upanishad
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help : https://help.launchpad.net/ListHelp