Thread: Error during make from git on Opensuse 12.2

Error during make from git on Opensuse 12.2

From
Colin Beckingham
Date:
Yesterday I upgraded from Opensuse 12.1 to 12.2 (new release).
Two days ago I compiled pgadmin from git no problem.
This morning I have a problem with make:

...
mv -f $depbase.Tpo $depbase.Po
schema/edbPackage.cpp: In member function ‘virtual pgObject*
edbPackageFactory::CreateObjects(pgCollection*, ctlTree*, const wxString&)’:
schema/edbPackage.cpp:248:11: error: ambiguous overload for ‘operator+’
in ‘+restriction’
schema/edbPackage.cpp:248:11: note: candidates are:
schema/edbPackage.cpp:248:11: note: operator+(const char*) <built-in>
schema/edbPackage.cpp:248:11: note: operator+(const wchar_t*) <built-in>
schema/edbPackage.cpp:248:11: note: operator+(const void*) <built-in>
make[3]: *** [schema/edbPackage.o] Error 1
make[3]: Leaving directory `/home/colin/pgadmin3/pgadmin'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/colin/pgadmin3/pgadmin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/colin/pgadmin3'
make: *** [all] Error 2

Configure is :
$ ./configure --with-wx-version=2.9 --enable-databasedesigner

Output from configure ends with:
PostgreSQL directory:            /usr
PostgreSQL pg_config binary:        /usr/bin/pg_config
PostgreSQL version:            PostgreSQL 9.1.1

PostgreSQL PQconninfoParse support:     Present
PostgreSQL SSL support:            Present

wxWidgets directory:            /usr/local
wxWidgets wx-config binary:        /usr/local/bin/wx-config
wxWidgets version:            wxWidgets 2.9.4

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 Database Designer:        Yes

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

sphinx-build executable:                <not found>

I tried a ./bootstrap but this did not change things. I can do a make
clean but that leads me to a long, long, make, to be avoided if possible.
--
---
Colin Beckingham
613-454-5369
http://www.it4gh.com



Re: Error during make from git on Opensuse 12.2

From
Sachin Srivastava
Date:

Thanks a lot for the report. The error comes with wxWidgets 2.9 and due to an extra '+' operator which got added in a recent commit.

Here is the attached patch which corrects the issue.


On Thu, Sep 6, 2012 at 1:36 PM, Colin Beckingham <colbec@start.ca> wrote:
Yesterday I upgraded from Opensuse 12.1 to 12.2 (new release).
Two days ago I compiled pgadmin from git no problem.
This morning I have a problem with make:

...
mv -f $depbase.Tpo $depbase.Po
schema/edbPackage.cpp: In member function ‘virtual pgObject* edbPackageFactory::CreateObjects(pgCollection*, ctlTree*, const wxString&)’:
schema/edbPackage.cpp:248:11: error: ambiguous overload for ‘operator+’ in ‘+restriction’
schema/edbPackage.cpp:248:11: note: candidates are:
schema/edbPackage.cpp:248:11: note: operator+(const char*) <built-in>
schema/edbPackage.cpp:248:11: note: operator+(const wchar_t*) <built-in>
schema/edbPackage.cpp:248:11: note: operator+(const void*) <built-in>
make[3]: *** [schema/edbPackage.o] Error 1
make[3]: Leaving directory `/home/colin/pgadmin3/pgadmin'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/colin/pgadmin3/pgadmin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/colin/pgadmin3'
make: *** [all] Error 2

Configure is :
$ ./configure --with-wx-version=2.9 --enable-databasedesigner

Output from configure ends with:
PostgreSQL directory:                   /usr
PostgreSQL pg_config binary:            /usr/bin/pg_config
PostgreSQL version:                     PostgreSQL 9.1.1

PostgreSQL PQconninfoParse support:     Present
PostgreSQL SSL support:                 Present

wxWidgets directory:                    /usr/local
wxWidgets wx-config binary:             /usr/local/bin/wx-config
wxWidgets version:                      wxWidgets 2.9.4

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 Database Designer:             Yes

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

sphinx-build executable:                <not found>

I tried a ./bootstrap but this did not change things. I can do a make clean but that leads me to a long, long, make, to be avoided if possible.
--
---
Colin Beckingham
613-454-5369
http://www.it4gh.com


--
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support



--
Regards,
Sachin Srivastava
EnterpriseDB, India

Re: Error during make from git on Opensuse 12.2

From
Dave Page
Date:
Thanks, patch applied.

On Thu, Sep 6, 2012 at 9:47 AM, Sachin Srivastava
<sachin.srivastava@enterprisedb.com> wrote:
>
> Thanks a lot for the report. The error comes with wxWidgets 2.9 and due to
> an extra '+' operator which got added in a recent commit.
>
> Here is the attached patch which corrects the issue.
>
>
> On Thu, Sep 6, 2012 at 1:36 PM, Colin Beckingham <colbec@start.ca> wrote:
>>
>> Yesterday I upgraded from Opensuse 12.1 to 12.2 (new release).
>> Two days ago I compiled pgadmin from git no problem.
>> This morning I have a problem with make:
>>
>> ...
>> mv -f $depbase.Tpo $depbase.Po
>> schema/edbPackage.cpp: In member function ‘virtual pgObject*
>> edbPackageFactory::CreateObjects(pgCollection*, ctlTree*, const wxString&)’:
>> schema/edbPackage.cpp:248:11: error: ambiguous overload for ‘operator+’ in
>> ‘+restriction’
>> schema/edbPackage.cpp:248:11: note: candidates are:
>> schema/edbPackage.cpp:248:11: note: operator+(const char*) <built-in>
>> schema/edbPackage.cpp:248:11: note: operator+(const wchar_t*) <built-in>
>> schema/edbPackage.cpp:248:11: note: operator+(const void*) <built-in>
>> make[3]: *** [schema/edbPackage.o] Error 1
>> make[3]: Leaving directory `/home/colin/pgadmin3/pgadmin'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/home/colin/pgadmin3/pgadmin'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/colin/pgadmin3'
>> make: *** [all] Error 2
>>
>> Configure is :
>> $ ./configure --with-wx-version=2.9 --enable-databasedesigner
>>
>> Output from configure ends with:
>> PostgreSQL directory:                   /usr
>> PostgreSQL pg_config binary:            /usr/bin/pg_config
>> PostgreSQL version:                     PostgreSQL 9.1.1
>>
>> PostgreSQL PQconninfoParse support:     Present
>> PostgreSQL SSL support:                 Present
>>
>> wxWidgets directory:                    /usr/local
>> wxWidgets wx-config binary:             /usr/local/bin/wx-config
>> wxWidgets version:                      wxWidgets 2.9.4
>>
>> 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 Database Designer:             Yes
>>
>> Building a debug version of pgAdmin:    No
>> Statically linking pgAdmin:             No
>> Building a Mac OS X appbundle:          No
>>
>> sphinx-build executable:                <not found>
>>
>> I tried a ./bootstrap but this did not change things. I can do a make
>> clean but that leads me to a long, long, make, to be avoided if possible.
>> --
>> ---
>> Colin Beckingham
>> 613-454-5369
>> http://www.it4gh.com
>>
>>
>> --
>> Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgadmin-support
>
>
>
>
> --
> Regards,
> Sachin Srivastava
> EnterpriseDB, India
>
>
> --
> Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-support
>



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


Re: Error during make from git on Opensuse 12.2

From
Colin Beckingham
Date:
Thanks for the patch, which I see has now been committed in git.
I updated from git, and now make reaches:

...
.9  -lxml2 -lz -lm -lxslt -L/usr/lib64 -lpq
`.text._ZN17wxWindowWithItemsI9wxControl15wxItemContainerED2Ev' 
referenced in section 

`.text._ZN17wxWindowWithItemsI9wxControl15wxItemContainerED1Ev[_ZN17wxWindowWithItemsI9wxControl15wxItemContainerED1Ev]'

of ctl/ctlComboBox.o: defined in discarded section 

`.text._ZN17wxWindowWithItemsI9wxControl15wxItemContainerED2Ev[_ZN17wxWindowWithItemsI9wxControl15wxItemContainerED5Ev]'

of ctl/ctlComboBox.o
`.text._ZN22wxControlWithItemsBaseD2Ev' referenced in section 
`.text._ZN22wxControlWithItemsBaseD1Ev[_ZN22wxControlWithItemsBaseD1Ev]' 
of ctl/ctlComboBox.o: defined in discarded section 
`.text._ZN22wxControlWithItemsBaseD2Ev[_ZN22wxControlWithItemsBaseD5Ev]' 
of ctl/ctlComboBox.o
`.text._ZN18wxGridCellRendererD2Ev' referenced in section 
`.text._ZN18wxGridCellRendererD1Ev[_ZN18wxGridCellRendererD1Ev]' of 
gqb/gqbGridRestTable.o: defined in discarded section 
`.text._ZN18wxGridCellRendererD2Ev[_ZN18wxGridCellRendererD5Ev]' of 
gqb/gqbGridRestTable.o
collect2: error: ld returned 1 exit status
make[3]: *** [pgadmin3] Error 1
make[3]: Leaving directory `/home/colin/pgadmin3/pgadmin'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/colin/pgadmin3/pgadmin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/colin/pgadmin3'
make: *** [all] Error 2

-- 
---
Colin Beckingham
613-454-5369
http://www.it4gh.com



Re: Error during make from git on Opensuse 12.2

From
Dave Page
Date:
Hi

On Thu, Sep 6, 2012 at 10:19 AM, Colin Beckingham <colbec@start.ca> wrote:
> Thanks for the patch, which I see has now been committed in git.
> I updated from git, and now make reaches:
>
> ...
> .9  -lxml2 -lz -lm -lxslt -L/usr/lib64 -lpq
> `.text._ZN17wxWindowWithItemsI9wxControl15wxItemContainerED2Ev' referenced
> in section
>
`.text._ZN17wxWindowWithItemsI9wxControl15wxItemContainerED1Ev[_ZN17wxWindowWithItemsI9wxControl15wxItemContainerED1Ev]'
> of ctl/ctlComboBox.o: defined in discarded section
>
`.text._ZN17wxWindowWithItemsI9wxControl15wxItemContainerED2Ev[_ZN17wxWindowWithItemsI9wxControl15wxItemContainerED5Ev]'
> of ctl/ctlComboBox.o
> `.text._ZN22wxControlWithItemsBaseD2Ev' referenced in section
> `.text._ZN22wxControlWithItemsBaseD1Ev[_ZN22wxControlWithItemsBaseD1Ev]' of
> ctl/ctlComboBox.o: defined in discarded section
> `.text._ZN22wxControlWithItemsBaseD2Ev[_ZN22wxControlWithItemsBaseD5Ev]' of
> ctl/ctlComboBox.o
> `.text._ZN18wxGridCellRendererD2Ev' referenced in section
> `.text._ZN18wxGridCellRendererD1Ev[_ZN18wxGridCellRendererD1Ev]' of
> gqb/gqbGridRestTable.o: defined in discarded section
> `.text._ZN18wxGridCellRendererD2Ev[_ZN18wxGridCellRendererD5Ev]' of
> gqb/gqbGridRestTable.o
> collect2: error: ld returned 1 exit status
> make[3]: *** [pgadmin3] Error 1
>
> make[3]: Leaving directory `/home/colin/pgadmin3/pgadmin'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/colin/pgadmin3/pgadmin'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/colin/pgadmin3'
> make: *** [all] Error 2

Did you "make clean"? It works fine for me here (and the files
relating to those errors haven't changed in months).

-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



Re: Error during make from git on Opensuse 12.2

From
Colin Beckingham
Date:

On 09/06/2012 05:44 AM, Dave Page wrote:
> Hi
>
> On Thu, Sep 6, 2012 at 10:19 AM, Colin Beckingham <colbec@start.ca> wrote:
>> Thanks for the patch, which I see has now been committed in git.
>> I updated from git, and now make reaches:
>>
>> ...
>> .9  -lxml2 -lz -lm -lxslt -L/usr/lib64 -lpq
>> `.text._ZN17wxWindowWithItemsI9wxControl15wxItemContainerED2Ev' referenced
>> in section
>>
`.text._ZN17wxWindowWithItemsI9wxControl15wxItemContainerED1Ev[_ZN17wxWindowWithItemsI9wxControl15wxItemContainerED1Ev]'
>> of ctl/ctlComboBox.o: defined in discarded section
>>
`.text._ZN17wxWindowWithItemsI9wxControl15wxItemContainerED2Ev[_ZN17wxWindowWithItemsI9wxControl15wxItemContainerED5Ev]'
>> of ctl/ctlComboBox.o
>> `.text._ZN22wxControlWithItemsBaseD2Ev' referenced in section
>> `.text._ZN22wxControlWithItemsBaseD1Ev[_ZN22wxControlWithItemsBaseD1Ev]' of
>> ctl/ctlComboBox.o: defined in discarded section
>> `.text._ZN22wxControlWithItemsBaseD2Ev[_ZN22wxControlWithItemsBaseD5Ev]' of
>> ctl/ctlComboBox.o
>> `.text._ZN18wxGridCellRendererD2Ev' referenced in section
>> `.text._ZN18wxGridCellRendererD1Ev[_ZN18wxGridCellRendererD1Ev]' of
>> gqb/gqbGridRestTable.o: defined in discarded section
>> `.text._ZN18wxGridCellRendererD2Ev[_ZN18wxGridCellRendererD5Ev]' of
>> gqb/gqbGridRestTable.o
>> collect2: error: ld returned 1 exit status
>> make[3]: *** [pgadmin3] Error 1
>>
>> make[3]: Leaving directory `/home/colin/pgadmin3/pgadmin'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/home/colin/pgadmin3/pgadmin'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/colin/pgadmin3'
>> make: *** [all] Error 2
>
> Did you "make clean"? It works fine for me here (and the files
> relating to those errors haven't changed in months).
>

No, did not, but will do. Make clean leads me to a long compile, just 
thought I would check first.

Long compile later, works fine now. Thanks.
-- 
---
Colin Beckingham
613-454-5369
http://www.it4gh.com



Re: Error during make from git on Opensuse 12.2

From
Dave Page
Date:


On Thursday, September 6, 2012, Colin Beckingham wrote:


On 09/06/2012 05:44 AM, Dave Page wrote:
Hi

On Thu, Sep 6, 2012 at 10:19 AM, Colin Beckingham <colbec@start.ca> wrote:
Thanks for the patch, which I see has now been committed in git.
I updated from git, and now make reaches:

...
.9  -lxml2 -lz -lm -lxslt -L/usr/lib64 -lpq
`.text._ZN17wxWindowWithItemsI9wxControl15wxItemContainerED2Ev' referenced
in section
`.text._ZN17wxWindowWithItemsI9wxControl15wxItemContainerED1Ev[_ZN17wxWindowWithItemsI9wxControl15wxItemContainerED1Ev]'
of ctl/ctlComboBox.o: defined in discarded section
`.text._ZN17wxWindowWithItemsI9wxControl15wxItemContainerED2Ev[_ZN17wxWindowWithItemsI9wxControl15wxItemContainerED5Ev]'
of ctl/ctlComboBox.o
`.text._ZN22wxControlWithItemsBaseD2Ev' referenced in section
`.text._ZN22wxControlWithItemsBaseD1Ev[_ZN22wxControlWithItemsBaseD1Ev]' of
ctl/ctlComboBox.o: defined in discarded section
`.text._ZN22wxControlWithItemsBaseD2Ev[_ZN22wxControlWithItemsBaseD5Ev]' of
ctl/ctlComboBox.o
`.text._ZN18wxGridCellRendererD2Ev' referenced in section
`.text._ZN18wxGridCellRendererD1Ev[_ZN18wxGridCellRendererD1Ev]' of
gqb/gqbGridRestTable.o: defined in discarded section
`.text._ZN18wxGridCellRendererD2Ev[_ZN18wxGridCellRendererD5Ev]' of
gqb/gqbGridRestTable.o
collect2: error: ld returned 1 exit status
make[3]: *** [pgadmin3] Error 1

make[3]: Leaving directory `/home/colin/pgadmin3/pgadmin'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/colin/pgadmin3/pgadmin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/colin/pgadmin3'
make: *** [all] Error 2

Did you "make clean"? It works fine for me here (and the files
relating to those errors haven't changed in months).


No, did not, but will do. Make clean leads me to a long compile, just thought I would check first.

ccache is your friend!
 

Long compile later, works fine now. Thanks.

Cool. 


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company