Thread: Build error under SuSE 8.2

Build error under SuSE 8.2

From
Jean-Michel POURE
Date:
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -DDATA_DIR=\"/usr/share/pgadmin3/\" -Wall
-g -I../src/include -I../src/agent/include -I -DSSL -I/usr/include/pgsql
-I/usr/lib/wx/include/gtk2ud-2.5 -D__WXDEBUG__ -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include
-DDATA_DIR=\"/usr/share/pgadmin3/\" -Wall -g -I../src/include
-I../src/agent/include -I -Wall -g -O0 -MT pgaStep.o -MD -MP -MF
".deps/pgaStep.Tpo" \
  -c -o pgaStep.o `test -f 'agent/pgaStep.cpp' || echo './'`agent/pgaStep.cpp;
\
then mv ".deps/pgaStep.Tpo" ".deps/pgaStep.Po"; \
else rm -f ".deps/pgaStep.Tpo"; exit 1; \
fi
agent/pgaStep.cpp: In static member function `static pgObject*
   pgaStep::ReadObjects(pgaJob*, wxTreeCtrl*, const wxString&)':
agent/pgaStep.cpp:100: error: ISO C++ says that `wxChar
   wxString::operator[](int) const' and `wxChar& wxString::operator[](unsigned
   int)' are ambiguous even though the worst conversion for the former is
   better than the worst conversion for the latter
agent/pgaStep.cpp:110: error: ISO C++ says that `wxChar
   wxString::operator[](int) const' and `wxChar& wxString::operator[](unsigned
   int)' are ambiguous even though the worst conversion for the former is
   better than the worst conversion for the latter
make[2]: *** [pgaStep.o] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/pgadmin3-1.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/pgadmin3-1.0.1'
make: *** [all] Error 2

Cheers, Jean-Michel


Re: Build error under SuSE 8.2

From
"Dave Page"
Date:

> -----Original Message-----
> From: Jean-Michel POURE [mailto:jm@poure.com]
> Sent: 01 October 2003 13:07
> To: pgadmin-hackers@postgresql.org
> Subject: [pgadmin-hackers] Build error under SuSE 8.2
>
>
> if g++ -DHAVE_CONFIG_H -I. -I. -I..
> -DDATA_DIR=\"/usr/share/pgadmin3/\" -Wall
> -g -I../src/include -I../src/agent/include -I -DSSL
> -I/usr/include/pgsql
> -I/usr/lib/wx/include/gtk2ud-2.5 -D__WXDEBUG__ -D__WXGTK__
> -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include
> -DDATA_DIR=\"/usr/share/pgadmin3/\" -Wall -g -I../src/include
> -I../src/agent/include -I -Wall -g -O0 -MT pgaStep.o -MD -MP -MF
> ".deps/pgaStep.Tpo" \
>   -c -o pgaStep.o `test -f 'agent/pgaStep.cpp' || echo
> './'`agent/pgaStep.cpp;
> \
> then mv ".deps/pgaStep.Tpo" ".deps/pgaStep.Po"; \
> else rm -f ".deps/pgaStep.Tpo"; exit 1; \
> fi
> agent/pgaStep.cpp: In static member function `static pgObject*
>    pgaStep::ReadObjects(pgaJob*, wxTreeCtrl*, const wxString&)':
> agent/pgaStep.cpp:100: error: ISO C++ says that `wxChar
>    wxString::operator[](int) const' and `wxChar&
> wxString::operator[](unsigned
>    int)' are ambiguous even though the worst conversion for
> the former is
>    better than the worst conversion for the latter
> agent/pgaStep.cpp:110: error: ISO C++ says that `wxChar
>    wxString::operator[](int) const' and `wxChar&
> wxString::operator[](unsigned
>    int)' are ambiguous even though the worst conversion for
> the former is
>    better than the worst conversion for the latter
> make[2]: *** [pgaStep.o] Error 1
> make[2]: Leaving directory
> `/usr/src/packages/BUILD/pgadmin3-1.0.1/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/packages/BUILD/pgadmin3-1.0.1'
> make: *** [all] Error 2

Something wrong with your CVS repository? Those files (agent/*) are not
in the 1.0.1 branch which you seem to be compiling.

Regards, Dave.