[Libpqxx-general] Compile failure in current SVN

Eugene V. Lyubimkin jackyf.devel at gmail.com
Sun Sep 7 19:55:38 UTC 2008


Hi Jeroen! I am trying to do 'make dist' from current SVN and have received the same
error, but with other file:

-8<-
g++ -DHAVE_CONFIG_H -I../include -I../include -I/usr/include/postgresql -g -O2 -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
connection_base.lo -MD -MP -MF .deps/connection_base.Tpo -c connection_base.cxx -o
connection_base.o
cc1plus: warnings being treated as errors
connection_base.cxx: In function ‘void<unnamed>::wait_fd(int, bool, timeval*)’:
connection_base.cxx:1378: error: conversion to ‘int’ from ‘long int’ may alter its value
->8-


The problem line is:

  poll(&pfd, 1, (tv ? (tv->tv_sec*1000 + tv->tv_usec/1000) : -1));


Jeroen Vermeulen wrote:
> Hi Roger!
> 
> Roger Leigh wrote:
>> This still only occurs when --enable-maintainer-mode is in effect due to use
>> of -Werror.  -Werror may be too strict, or one of the other -W options
>> may be removed to prevent the diagnostic.

-- 
Eugene V. Lyubimkin aka JackYF, Ukrainian C++ developer.

-------------- 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/20080907/bf0dfdd4/attachment.bin 


More information about the Libpqxx-general mailing list