[Libpqxx-general] libpqxx svn1511 fails to build

Eugene V. Lyubimkin jackyf.devel at gmail.com
Sat Jan 31 17:12:18 UTC 2009


Jeroen Vermeulen wrote:
>> ../../../include/pqxx/util.hxx:460: error: ‘std::tr1’ has not been declared
> 
> Whoops.  I should have used PQXXTR1, not PGSTD::tr1.
> 
> Fixed in [1512].
I believe it was the right direction, however now build system says there are no PQXXTR1
defined:

-8<-
 x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I../../../include -I../include
-I/usr/include/postgresql -g -O2 -D_REENTRANT -Werror -Wno-div-by-zero -ffor-scope
-fstrict-aliasing -Wstrict-aliasing -funit-at-a-time -pedantic -fno-nonansi-builtins -Wall
-Wmultichar -W -Wextra -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual
-Wcast-align -Wconversion -Wctor-dtor-privacy -Wendif-labels -Wlogical-op
-Woverlength-strings -Wredundant-decls -Wsign-compare -Wwrite-strings -Wnon-virtual-dtor
-Wreorder -Wold-style-cast -Woverloaded-virtual -Wsign-promo -Wstrict-null-sentinel
-Wformat-security -Winit-self -Wswitch -Wmissing-field-initializers -Wmissing-include-dirs
-Wunused -funit-at-a-time -Werror -MT binarystring.lo -MD -MP -MF .deps/binarystring.Tpo
-c ../../../src/binarystring.cxx  -fPIC -DPIC -o .libs/binarystring.o
In file included from ../../../include/pqxx/util:18,
                 from ../../../include/pqxx/except.hxx:27,
                 from ../../../include/pqxx/except:19,
                 from ../../../include/pqxx/result.hxx:31,
                 from ../../../include/pqxx/result:19,
                 from ../../../include/pqxx/binarystring.hxx:26,
                 from ../../../include/pqxx/binarystring:18,
                 from ../../../src/binarystring.cxx:27:
../../../include/pqxx/util.hxx:460: error: ‘PQXXTR1’ has not been declared
../../../include/pqxx/util.hxx:460: error: expected `{' before ‘shared_ptr’
../../../include/pqxx/util.hxx:460: error: expected initializer before ‘<’ token
../../../include/pqxx/util.hxx:477: error: extra ‘;’
../../../include/pqxx/util.hxx:603: error: invalid use of incomplete type ‘class
pqxx::internal::PQAlloc<const pgNotify>’
../../../include/pqxx/util.hxx:460: error: declaration of ‘class
pqxx::internal::PQAlloc<const pgNotify>’
In file included from ../../../include/pqxx/result:19,
                 from ../../../include/pqxx/binarystring.hxx:26,
                 from ../../../include/pqxx/binarystring:18,
                 from ../../../src/binarystring.cxx:27:
<...>
->8-

Additionally, std::tr1 is actually a correct namespace for TR1 library on my machine, and
it is definitely installed (I used it in a few own projects).
Looking to the code, I can say that correct #include ('tr1/memory') ought to be included,
but probably something went bad with wrapping macro for it (PQXX_TR1_HEADERS).

-- 
Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com
C++/Perl developer, Debian Maintainer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
Url : http://pgfoundry.org/pipermail/libpqxx-general/attachments/20090131/65f044a4/attachment.bin 


More information about the Libpqxx-general mailing list