Skip site navigation (1) Skip section navigation (2)

Compilation on Debian SID

From: philippe rimbault <philippe(at)rimbault(dot)org>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: Compilation on Debian SID
Date: 2011-11-03 16:38:45
Message-ID: CABv8C5jtR4c3ymdxBW7DA_VbtwqsnX2JRHjvDh+3B4kfNDxVSw@mail.gmail.com (view raw or flat)
Thread:
Lists: pgadmin-hackers
Hi,

I'm using the GIT version of Pgadmin under Debian SID, and there is a
compilation error (all was working fine a couple of week before) :
-------------------------------------------------
make[3]: entrant dans le répertoire « /home/pri/pgadmin3/pgadmin »
g++ -DHAVE_CONFIG_H -I. -I..
-DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -I../pgadmin/include
-I/usr/local/pgsql9.1/include -I/usr/local/pgsql9.1/include/server
-I/usr/local/pgsql9.1/include -DHAVE_CONNINFO_PARSE
-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DEMBED_XRC
-I/usr/include/libxml2 -I/usr/include/libxml2  -O2 -MT pgAdmin3.o -MD -MP
-MF .deps/pgAdmin3.Tpo -c -o pgAdmin3.o `test -f './pgAdmin3.cpp' || echo
'./'`./pgAdmin3.cpp
In file included from ../pgadmin/include/utils/sysSettings.h:15:0,
                 from ../pgadmin/include/pgAdmin3.h:37,
                 from ./pgAdmin3.cpp:13:
../pgadmin/include/utils/sysLogger.h:31:2: error: expected unqualified-id
before ‘/’ token
../pgadmin/include/utils/sysLogger.h:31:2: error: expected constructor,
destructor, or type conversion before ‘/’ token
../pgadmin/include/utils/sysLogger.h:76:1: error: expected initializer
before ‘ATTRIBUTE_PRINTF_1’
../pgadmin/include/utils/sysLogger.h:77:1: error: expected initializer
before ‘ATTRIBUTE_PRINTF_1’
../pgadmin/include/utils/sysLogger.h:78:1: error: expected initializer
before ‘ATTRIBUTE_PRINTF_1’
../pgadmin/include/utils/sysLogger.h:79:1: error: expected initializer
before ‘ATTRIBUTE_PRINTF_1’
../pgadmin/include/utils/sysLogger.h:80:1: error: expected initializer
before ‘ATTRIBUTE_PRINTF_1’
In file included from ../pgadmin/include/pgAdmin3.h:37:0,
                 from ./pgAdmin3.cpp:13:
../pgadmin/include/utils/sysSettings.h: In member function ‘int
sysSettings::GetLogLevel() const’:
../pgadmin/include/utils/sysSettings.h:42:29: error: ‘LOG_ERRORS’ was not
declared in this scope
make[3]: *** [pgAdmin3.o] Erreur 1
-------------------------------------------------


Here is the output of ./configure
-------------------------------------------------
PostgreSQL directory:                   /usr/local/pgsql
PostgreSQL pg_config binary:            /usr/local/pgsql/bin/pg_config
PostgreSQL version:                     PostgreSQL 9.1.1

PostgreSQL PQconninfoParse support:     Present
PostgreSQL SSL support:                 Missing

wxWidgets directory:                    /usr
wxWidgets wx-config binary:             /usr/bin/wx-config
wxWidgets version:                      wxWidgets 2.8.12

libxml2 directory:                      /usr
libxml2 xml2-config binary:             /usr/bin/xml2-config
libxml2 version:                        libxml2 2.7.8

libxslt directory:                      /usr
libxslt xslt-config binary:             /usr/bin/xslt-config
libxslt version:                        libxslt 1.1.26

Building a debug version of pgAdmin:    No
Statically linking pgAdmin:             No
Building a Mac OS X appbundle:          No

sphinx-build executable:                /usr/bin/sphinx-build
-------------------------------------------------

All work fine if i add those lines in pgadmin/include/utils/sysLogger.h
(juste after #include <wx/wx.h>, line 16) :
-------------------------------------------------
#ifndef ATTRIBUTE_PRINTF
#   if defined(__GNUC__) && !wxUSE_UNICODE
#       define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__
(__printf__, m, n)))
#   else
#       define ATTRIBUTE_PRINTF(m, n)
#   endif

#   define ATTRIBUTE_PRINTF_1 ATTRIBUTE_PRINTF(1, 2)
#   define ATTRIBUTE_PRINTF_2 ATTRIBUTE_PRINTF(2, 3)
#   define ATTRIBUTE_PRINTF_3 ATTRIBUTE_PRINTF(3, 4)
#   define ATTRIBUTE_PRINTF_4 ATTRIBUTE_PRINTF(4, 5)
#   define ATTRIBUTE_PRINTF_5 ATTRIBUTE_PRINTF(5, 6)
#endif /* !defined(ATTRIBUTE_PRINTF) */
-------------------------------------------------

I'm not a C++ dev, just a DBA/"googler" who try to make pgadmin work.

Regards

Philippe

Responses

pgadmin-hackers by date

Next:From: Guillaume LelargeDate: 2011-11-03 16:54:15
Subject: Re: Compilation on Debian SID
Previous:From: Guillaume LelargeDate: 2011-11-03 11:20:07
Subject: pgAdmin III commit: Fix cache type lookup

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group