Hello - got this error after upgrading to 2.6 on OSX!

==>Entering directory /Users/mats/Desktop/bacula-1.38.5/src/wx-console
/usr/bin/g++ -c -DHAVE_WXCONSOLE -I/usr/local/lib/wx/include/mac- ansi-release-2.6 -I/usr/local/include/wx-2.6 -D__WXMAC__ - D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -DHAVE_MACOSX - DNO_GCC_PRAGMA \
  -I. -I..   -g -O2 -Wall  main.cpp
/usr/bin/g++ -c -DHAVE_WXCONSOLE -I/usr/local/lib/wx/include/mac- ansi-release-2.6 -I/usr/local/include/wx-2.6 -D__WXMAC__ - D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -DHAVE_MACOSX - DNO_GCC_PRAGMA \
  -I. -I..   -g -O2 -Wall  console_thread.cpp
/usr/local/include/wx-2.6/wx/list.h: In constructor 'wxListKey::wxListKey(const wxChar*)': /usr/local/include/wx-2.6/wx/list.h:359: error: 'bad_call_on_strdup_use_bstrdup' was not declared in this scope /usr/local/include/wx-2.6/wx/list.h: In constructor 'wxListKey::wxListKey(const wxString&)': /usr/local/include/wx-2.6/wx/list.h:361: error: 'bad_call_on_strdup_use_bstrdup' was not declared in this scope
make[1]: *** [console_thread.o] Error 1

Regards

On 7 jan 2006, at 10.46, Kern Sibbald wrote:

Hello,

I suspect that the documentation failed to mention this, but on Linux type systems, which include MacOSX, you must now build with the ANSI wxWidgets 2.6
or greater.  I am currently using 2.6.0 here.


On Saturday 07 January 2006 00:30, Kristian Ejvind wrote:
Hi all.

I've downloaded the sources for 1.38.3 posted the other day, and intend
to build a file daemon for Mac OSX 10.4.3

I configured using:


anton:~/build/bacula-1.38.3 krej$ ./configure --prefix=/etc/bacula --
enable-client-only --with-pid-dir=/etc/bacula/working --with-working-
dir=/etc/bacula/working --enable-readline --enable-wx-console --
disable-build-dird --disable-build-stored --enable-largefile

(btw. unless I used "--disable-build-dird --disable-build-stored",
config.out would still
say that dird and stored would be built, despite "--enable-client-
only". It also seems
configure doesn't pick up readline properly or largefile, but I don't
care much about
that)


Heres config.log:
--------------------------------------------------------------
anton:~/build/bacula-1.38.3 krej$ more config.out

Configuration on Fri Jan  6 20:52:48 CET 2006:

Host: powerpc-apple-darwin8.3.0 -- darwin 8.3.0
   Bacula version:             1.38.3 (04 January 2006)
   Source code location:       .
   Install binaries:           /etc/bacula/sbin
   Install config files:       /etc/bacula/etc
   Scripts directory:          /etc/bacula/etc
   Working directory:          /etc/bacula/working
   PID directory:              /etc/bacula/working
   Subsys directory:           /var/run/subsys
   Man directory:              /usr/share/man
   Data directory:             /etc/bacula/share
   C Compiler:                 gcc
   C++ Compiler:               /usr/bin/g++
   Compiler flags:              -g -O2 -Wall
   Linker flags:
   Libraries:                  -lpthread
   Statically Linked Tools:    no
   Statically Linked FD:       no
   Statically Linked SD:       no
   Statically Linked DIR:      no
   Statically Linked CONS:     no
   Database type:              None
   Database lib:

   Job Output Email:           [EMAIL PROTECTED]
   Traceback Email:            [EMAIL PROTECTED]
   SMTP Host Address:          localhost

   Director Port:              9101
   File daemon Port:           9102
   Storage daemon Port:        9103

   Director User:
   Director Group:
   Storage Daemon User:
   Storage DaemonGroup:
   File Daemon User:
   File Daemon Group:

   SQL binaries Directory

   Large file support:         no
   Bacula conio support:       yes -ltermcap
   readline support:           no
   TCP Wrappers support:       no
   TLS support:                no
   ZLIB support:               yes
   enable-smartalloc:          yes
   enable-gnome:               no
   enable-wx-console:          yes wxWidgets 2.5
   enable-tray-monitor:
   client-only:                yes
   build-dird:                 no
   build-stored:               no
   ACL support:                yes
   Python support:             no
--------------------------------------------------------------


filed and console compiles OK, but not wx-console. It aborts with
"ambiguous overload for 'operator+='".

Although I kind of understand what the code does, I'm totally
clueless when
it comes to understanding C++ syntax.

Any hints please?


/Kristian



Code snippet:
--------------------------------------------------------------
       if (configfile == wxT("")) {
wxConfig::Set(new wxConfig(wxT("wx-console"), wxT ("bacula"))); if (!wxConfig::Get()->Read(wxT("/ConfigFile"), &configfile)) {
#ifdef HAVE_MACOSX
             wxFileName filename(::wxGetHomeDir());
             filename.MakeAbsolute();
             configfile = filename.GetLongPath();
             if (configfile.Last() != '/')
                configfile += '/';
             configfile += "Library/Preferences/
org.bacula.wxconsole.conf";
#else
wxFileName filename(::wxGetCwd(), wxT("wx- console.conf"));
             filename.MakeAbsolute();
             configfile = filename.GetLongPath();
#ifdef HAVE_WIN32
             configfile.Replace(wxT("\\"), wxT("/"));
#endif //HAVE_WIN32
#endif //HAVE_MACOSX
             wxConfig::Get()->Write(wxT("/ConfigFile"), configfile);
--------------------------------------------------------------





Make log
--------------------------------------------------------------
==>Entering directory /Users/krej/build/bacula-1.38.3/src/wx-console
/usr/bin/g++ -c -DHAVE_WXCONSOLE -I/usr/lib/wx/include/mac- unicode-
debug-2.5 -I/usr/include/wx-2.5 -D__WXDEBUG__ -D__WXMAC__ -
D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -DHAVE_MACOSX -
DNO_GCC_PRAGMA  \
   -I. -I..   -g -O2 -Wall  main.cpp
/usr/bin/g++ -c -DHAVE_WXCONSOLE -I/usr/lib/wx/include/mac- unicode-
debug-2.5 -I/usr/include/wx-2.5 -D__WXDEBUG__ -D__WXMAC__ -
D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -DHAVE_MACOSX -
DNO_GCC_PRAGMA  \
   -I. -I..   -g -O2 -Wall  console_thread.cpp
/usr/bin/g++ -c -DHAVE_WXCONSOLE -I/usr/lib/wx/include/mac- unicode-
debug-2.5 -I/usr/include/wx-2.5 -D__WXDEBUG__ -D__WXMAC__ -
D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -DHAVE_MACOSX -
DNO_GCC_PRAGMA  \
   -I. -I..   -g -O2 -Wall  authenticate.c
/usr/bin/g++ -c -DHAVE_WXCONSOLE -I/usr/lib/wx/include/mac- unicode-
debug-2.5 -I/usr/include/wx-2.5 -D__WXDEBUG__ -D__WXMAC__ -
D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -DHAVE_MACOSX -
DNO_GCC_PRAGMA  \
   -I. -I..   -g -O2 -Wall  console_conf.c
/usr/bin/g++ -c -DHAVE_WXCONSOLE -I/usr/lib/wx/include/mac- unicode-
debug-2.5 -I/usr/include/wx-2.5 -D__WXDEBUG__ -D__WXMAC__ -
D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -DHAVE_MACOSX -
DNO_GCC_PRAGMA  \
   -I. -I..   -g -O2 -Wall  wxbrestorepanel.cpp
wxbrestorepanel.cpp: In member function `void
wxbRestorePanel::UpdateTreeItem(wxTreeItemId, bool, bool)':
wxbrestorepanel.cpp:1445: warning: 'GetFirstChild' is deprecated
(declared at /usr/include/wx-2.5/wx/generic/treectlg.h:368)
wxbrestorepanel.cpp: In member function `void
wxbRestorePanel::SetTreeItemState(wxTreeItemId, int)':
wxbrestorepanel.cpp:1577: warning: 'GetFirstChild' is deprecated
(declared at /usr/include/wx-2.5/wx/generic/treectlg.h:368)
wxbrestorepanel.cpp: In member function `void
wxbRestorePanel::UpdateTreeItemState(wxTreeItemId)':
wxbrestorepanel.cpp:1623: warning: 'GetFirstChild' is deprecated
(declared at /usr/include/wx-2.5/wx/generic/treectlg.h:368)
wxbrestorepanel.cpp: In member function `void
wxbRestorePanel::RefreshTree()':
wxbrestorepanel.cpp:1729: warning: 'GetFirstChild' is deprecated
(declared at /usr/include/wx-2.5/wx/generic/treectlg.h:368)
wxbrestorepanel.cpp: In member function `void
wxbRestorePanel::OnListActivated(wxListEvent&)':
wxbrestorepanel.cpp:2227: warning: 'GetFirstChild' is deprecated
(declared at /usr/include/wx-2.5/wx/generic/treectlg.h:368)
/usr/bin/g++ -c -DHAVE_WXCONSOLE -I/usr/lib/wx/include/mac- unicode-
debug-2.5 -I/usr/include/wx-2.5 -D__WXDEBUG__ -D__WXMAC__ -
D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -DHAVE_MACOSX -
DNO_GCC_PRAGMA  \
   -I. -I..   -g -O2 -Wall  wxbmainframe.cpp
wxbmainframe.cpp: In constructor `wxbMainFrame::wxbMainFrame(const
wxString&, const wxPoint&, const wxSize&, long int)':
wxbmainframe.cpp:313: warning: '__comp_ctor' is deprecated (declared
at /usr/include/wx-2.5/wx/sizer.h:684)
wxbmainframe.cpp: In member function `void
wxbMainFrame::StartConsoleThread(const wxString&)':
wxbmainframe.cpp:384: error: ambiguous overload for 'operator+=' in
'((wxbMainFrame*)this)->wxbMainFrame::configfile += "Library/
Preferences/org.bacula.wxconsole.conf"'
/usr/include/wx-2.5/wx/string.h:905: note: candidates are: void
wxString::operator+=(const wxWCharBuffer&) <near match>
/usr/include/wx-2.5/wx/string.h:1271: note:                 wxString&
wxString::operator+=(const wxString&) <near match>
/usr/include/wx-2.5/wx/string.h:1277: note:                 wxString&
wxString::operator+=(wxChar) <near match>
make[1]: *** [wxbmainframe.o] Error 1


====== Error in /Users/krej/build/bacula-1.38.3/src/wx-console ======

--------------------------------------------------------------



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

--
Best regards,

Kern

  (">
  /\
  V_V


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



Mats Vilhelmsson
[EMAIL PROTECTED]





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to