pmfp
Joined: 25 May 2004 Posts: 7 Location: Sweden
|
Posted: Thu May 10, 2007 12:18 pm Post subject: Build error |
|
|
I am using Tango trunk and can therefore not build 0.25. Hence I use DDBI trunk too. dsss net install ddbi works fine.
When I try to build a very, very simple DDBI/Postgres program, it errors out on this (please help):
Code: | WARNING: Module db.d does not have a module declaration. This can cause problems with rebuild's -oq option. If an error occurs, fix this first.
gcc ./nmd_db.o ./tango.stdc.stringz.o ./tango.text.Util.o ./tango.core.Vararg.o ./tango.text.Regex.o ./tango.stdc.string.o ./tango.stdc.stddef.o ./tango.stdc.stdio.o ./tango.stdc.stdarg.o ./tango.stdc.config.o ./tango.stdc.ctype.o ./tango.stdc.stdlib.o ./tango.core.BitArray.o ./tango.io.Stdout.o ./tango.io.Print.o ./tango.io.model.IBuffer.o ./tango.io.model.IConduit.o ./tango.text.convert.Layout.o ./tango.text.convert.Utf.o ./tango.text.convert.Float.o ./tango.text.convert.Integer.o ./tango.io.Console.o ./tango.sys.Common.o ./tango.sys.linux.linux.o ./tango.stdc.time.o ./tango.stdc.posix.dlfcn.o ./tango.stdc.posix.fcntl.o ./tango.stdc.stdint.o ./tango.stdc.posix.sys.types.o ./tango.stdc.posix.sys.stat.o ./tango.stdc.posix.time.o ./tango.stdc.posix.signal.o ./tango.stdc.signal.o ./tango.stdc.posix.poll.o ./tango.stdc.posix.pwd.o ./tango.stdc.posix.unistd.o ./tango.stdc.posix.inttypes.o ./tango.stdc.inttypes.o ./tango.stdc.posix.sys.select.o ./tango.stdc.posix.sys.time.o ./tango.sys.linux.epoll.o ./tango.stdc.errno.o ./tango.io.Buffer.o ./tango.io.DeviceConduit.o ./tango.io.Conduit.o -o db -m32 -Xlinker --start-group -lphobos -lSDD-dbi-pg -lSDD-dbi -Xlinker -L/usr/local/lib -Xlinker -L/usr/local/lib -lphobos -lpthread -lm
/usr/local/lib/libSDD-dbi-pg.a(dbi.pg.PgDatabase.o): In function `_D3dbi2pg10PgDatabase10PgDatabase7connectMFAaAaAaZv':
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase7connectMFAaAaAaZv+0xc6): undefined reference to `PQconnectdb'
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase7connectMFAaAaAaZv+0xd2): undefined reference to `PQstatus'
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase7connectMFAaAaAaZv+0xff): undefined reference to `PQerrorMessage'
/usr/local/lib/libSDD-dbi-pg.a(dbi.pg.PgDatabase.o): In function `_D3dbi2pg10PgDatabase10PgDatabase5closeMFZv':
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase5closeMFZv+0x23): undefined reference to `PQfinish'
/usr/local/lib/libSDD-dbi-pg.a(dbi.pg.PgDatabase.o): In function `_D3dbi2pg10PgDatabase10PgDatabase6escapeMFAaZAa':
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase6escapeMFAaZAa+0x7b): undefined reference to `PQescapeStringConn'
/usr/local/lib/libSDD-dbi-pg.a(dbi.pg.PgDatabase.o): In function `_D3dbi2pg10PgDatabase10PgDatabase7executeMFAaZv':
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase7executeMFAaZv+0x24): undefined reference to `PQexec'
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase7executeMFAaZv+0x32): undefined reference to `PQresultStatus'
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase7executeMFAaZv+0x60): undefined reference to `PQresultErrorField'
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase7executeMFAaZv+0x77): undefined reference to `PQerrorMessage'
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase7executeMFAaZv+0xa5): undefined reference to `PQclear'
/usr/local/lib/libSDD-dbi-pg.a(dbi.pg.PgDatabase.o): In function `_D3dbi2pg10PgDatabase10PgDatabase5queryMFAaZC3dbi2pg8PgResult8PgResult':
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase5queryMFAaZC3dbi2pg8PgResult8PgResult+0x23): undefined reference to `PQexec'
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase5queryMFAaZC3dbi2pg8PgResult8PgResult+0x2c): undefined reference to `PQresultStatus'
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase5queryMFAaZC3dbi2pg8PgResult8PgResult+0x34): undefined reference to `PQresultStatus'
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase5queryMFAaZC3dbi2pg8PgResult8PgResult+0x62): undefined reference to `PQresultErrorField'
dbi/pg/PgDatabase.d:(.gnu.linkonce.t_D3dbi2pg10PgDatabase10PgDatabase5queryMFAaZC3dbi2pg8PgResult8PgResult+0x79): undefined reference to `PQerrorMessage'
/usr/local/lib/libSDD-dbi-pg.a(dbi.pg.PgResult.o): In function `_D3dbi2pg8PgResult8PgResult5_ctorMFPS3dbi2pg3imp6PGconnPS3dbi2pg3imp8PGresultZC3dbi2pg8PgResult8PgResult':
dbi/pg/PgResult.d:(.gnu.linkonce.t_D3dbi2pg8PgResult8PgResult5_ctorMFPS3dbi2pg3imp6PGconnPS3dbi2pg3imp8PGresultZC3dbi2pg8PgResult8PgResult+0x12): undefined reference to `PQntuples'
dbi/pg/PgResult.d:(.gnu.linkonce.t_D3dbi2pg8PgResult8PgResult5_ctorMFPS3dbi2pg3imp6PGconnPS3dbi2pg3imp8PGresultZC3dbi2pg8PgResult8PgResult+0x20): undefined reference to `PQnfields'
/usr/local/lib/libSDD-dbi-pg.a(dbi.pg.PgResult.o): In function `_D3dbi2pg8PgResult8PgResult8fetchRowMFZC3dbi3Row3Row':
dbi/pg/PgResult.d:(.gnu.linkonce.t_D3dbi2pg8PgResult8PgResult8fetchRowMFZC3dbi3Row3Row+0x53): undefined reference to `PQfname'
dbi/pg/PgResult.d:(.gnu.linkonce.t_D3dbi2pg8PgResult8PgResult8fetchRowMFZC3dbi3Row3Row+0x77): undefined reference to `PQgetvalue'
dbi/pg/PgResult.d:(.gnu.linkonce.t_D3dbi2pg8PgResult8PgResult8fetchRowMFZC3dbi3Row3Row+0x9e): undefined reference to `PQftype'
/usr/local/lib/libSDD-dbi-pg.a(dbi.pg.PgResult.o): In function `_D3dbi2pg8PgResult8PgResult6finishMFZv':
dbi/pg/PgResult.d:(.gnu.linkonce.t_D3dbi2pg8PgResult8PgResult6finishMFZv+0x23): undefined reference to `PQclear'
collect2: ld returned 1 exit status
--- errorlevel 1
|
What should I do? |
|