Chris Frey wrote:
> On Tue, May 27, 2008 at 11:02:14PM -0400, John Priddy wrote:
>> BTW it sounds like nobody else has attempted to build this on fc9 yet? I 
>> have run into a number of other minor issues with regards to not having 
>> the 32bit libs installed when I ran the same on fc8 64bit, but that was 
>> via rpmbuild, not from source. So im not sure if that makes a difference.
> 
> Yours is the first report I've had, and I haven't gotten to FC9 yet.
> 
> Your help in testing the compile process would be much appreciated.
> Please report any errors you find.  And if you can test CVS, even better.
> Even just running the compile process is good.
> 
> Thanks to the power of git, it wasn't too hard to whip up a patch for 0.12,
> but this doesn't fix the GUI issues, just the base library, utils, and
> plugin.
> 
> CVS is at the stage where it's ready for version 0.13 release, except
> I'm working on documentation and binary packaging, so don't be afraid
> of instability.
> 
> Thanks!
> - Chris
> 
> 
> This patch applies to a clean 0.12 tree.
> 
> 
> From: Chris Frey <[EMAIL PROTECTED]>
> Date: Tue, 27 May 2008 23:30:47 -0400
> Subject: [PATCH] Fixed most gcc 4.3.x compile errors.
> 
> Fixed compile errors in library, utils, and plugin when compiling
> with new gcc 4.3.x... gui not yet finished.
> ---
>  examples/addcalendar.cc            |    1 +
>  opensync-plugin/src/barry_sync.cc  |    4 +---
>  opensync-plugin/src/environment.cc |    1 +
>  opensync-plugin/src/vcard.cc       |    1 +
>  opensync-plugin/src/vevent.cc      |    1 +
>  src/controller.cc                  |    1 +
>  src/data.cc                        |    2 ++
>  src/error.cc                       |    1 +
>  src/ldif.cc                        |    1 +
>  src/packet.cc                      |    1 +
>  src/r_calendar.cc                  |    1 +
>  src/r_task.cc                      |    1 +
>  src/record.cc                      |    1 +
>  src/socket.cc                      |    1 +
>  tools/bs11nread.cc                 |    1 +
>  tools/btool.cc                     |    1 +
>  tools/btranslate.cc                |    3 +++
>  17 files changed, 20 insertions(+), 3 deletions(-)
> 
> diff --git a/examples/addcalendar.cc b/examples/addcalendar.cc
> index c4ea47b..75cb272 100644
> --- a/examples/addcalendar.cc
> +++ b/examples/addcalendar.cc
> @@ -22,6 +22,7 @@
>  
>  #define _XOPEN_SOURCE
>  #include <time.h>
> +#include <string.h>
>  #include <barry/barry.h>
>  #include <iostream>
>  
> diff --git a/opensync-plugin/src/barry_sync.cc 
> b/opensync-plugin/src/barry_sync.cc
> index f70e7d6..65494c6 100644
> --- a/opensync-plugin/src/barry_sync.cc
> +++ b/opensync-plugin/src/barry_sync.cc
> @@ -29,9 +29,7 @@
>  #include <string>
>  #include <glib.h>
>  #include <stdint.h>
> -//#include <stdlib.h>
> -//#include <string.h>
> -//#include <assert.h>
> +#include <string.h>
>  
>  // All functions that are callable from outside must look like C
>  extern "C" {
> diff --git a/opensync-plugin/src/environment.cc 
> b/opensync-plugin/src/environment.cc
> index 3090f4a..85cc8dd 100644
> --- a/opensync-plugin/src/environment.cc
> +++ b/opensync-plugin/src/environment.cc
> @@ -26,6 +26,7 @@
>  #include <fstream>
>  #include <sstream>
>  #include <iomanip>
> +#include <string.h>
>  
>  
>  
> //////////////////////////////////////////////////////////////////////////////
> diff --git a/opensync-plugin/src/vcard.cc b/opensync-plugin/src/vcard.cc
> index e569aa5..97ef48b 100644
> --- a/opensync-plugin/src/vcard.cc
> +++ b/opensync-plugin/src/vcard.cc
> @@ -25,6 +25,7 @@
>  #include "vformat.h"         // comes from opensync, but not a public header 
> yet
>  #include <stdint.h>
>  #include <glib.h>
> +#include <string.h>
>  #include <sstream>
>  #include <ctype.h>
>  
> diff --git a/opensync-plugin/src/vevent.cc b/opensync-plugin/src/vevent.cc
> index 6dc8839..85377ea 100644
> --- a/opensync-plugin/src/vevent.cc
> +++ b/opensync-plugin/src/vevent.cc
> @@ -25,6 +25,7 @@
>  #include "vformat.h"         // comes from opensync, but not a public header 
> yet
>  #include <stdint.h>
>  #include <glib.h>
> +#include <strings.h>
>  #include <sstream>
>  
>  
> diff --git a/src/controller.cc b/src/controller.cc
> index 25a6da1..1b03821 100644
> --- a/src/controller.cc
> +++ b/src/controller.cc
> @@ -29,6 +29,7 @@
>  #include "builder.h"
>  #include "endian.h"
>  #include "packet.h"
> +#include <string.h>
>  
>  #define __DEBUG_MODE__
>  #include "debug.h"
> diff --git a/src/data.cc b/src/data.cc
> index 6098b64..6919793 100644
> --- a/src/data.cc
> +++ b/src/data.cc
> @@ -25,6 +25,8 @@
>  #include <iomanip>
>  #include <string>
>  #include <stdexcept>
> +#include <string.h>
> +#include <stdlib.h>
>  
>  //#define __DEBUG_MODE__
>  #include "debug.h"
> diff --git a/src/error.cc b/src/error.cc
> index 8aeb128..5fcb242 100644
> --- a/src/error.cc
> +++ b/src/error.cc
> @@ -21,6 +21,7 @@
>  
>  #include "error.h"
>  #include <sstream>
> +#include <string.h>
>  
>  using namespace std;
>  
> diff --git a/src/ldif.cc b/src/ldif.cc
> index 845114d..55ea631 100644
> --- a/src/ldif.cc
> +++ b/src/ldif.cc
> @@ -25,6 +25,7 @@
>  #include <stdexcept>
>  #include <iostream>
>  #include <iomanip>
> +#include <string.h>
>  
>  #define __DEBUG_MODE__
>  #include "debug.h"
> diff --git a/src/packet.cc b/src/packet.cc
> index 185fb5b..c4238c6 100644
> --- a/src/packet.cc
> +++ b/src/packet.cc
> @@ -30,6 +30,7 @@
>  #include "parser.h"
>  #include "builder.h"
>  #include "error.h"
> +#include <string.h>
>  
>  #define __DEBUG_MODE__
>  #include "debug.h"
> diff --git a/src/r_calendar.cc b/src/r_calendar.cc
> index b4c62ee..9c85de9 100644
> --- a/src/r_calendar.cc
> +++ b/src/r_calendar.cc
> @@ -30,6 +30,7 @@
>  #include <ostream>
>  #include <iomanip>
>  #include <time.h>
> +#include <string.h>
>  #include <stdexcept>
>  
>  #define __DEBUG_MODE__
> diff --git a/src/r_task.cc b/src/r_task.cc
> index 34e09f0..cf877e7 100644
> --- a/src/r_task.cc
> +++ b/src/r_task.cc
> @@ -28,6 +28,7 @@
>  #include "debug.h"
>  #include <ostream>
>  #include <iomanip>
> +#include <string.h>
>  
>  using namespace std;
>  using namespace Barry::Protocol;
> diff --git a/src/record.cc b/src/record.cc
> index 154d97c..17760ef 100644
> --- a/src/record.cc
> +++ b/src/record.cc
> @@ -35,6 +35,7 @@
>  #include <ostream>
>  #include <iomanip>
>  #include <time.h>
> +#include <string.h>
>  #include <stdexcept>
>  
>  #define __DEBUG_MODE__
> diff --git a/src/socket.cc b/src/socket.cc
> index bad5487..e5d9fe4 100644
> --- a/src/socket.cc
> +++ b/src/socket.cc
> @@ -30,6 +30,7 @@
>  #include "endian.h"
>  #include <openssl/sha.h>
>  #include <sstream>
> +#include <string.h>
>  
>  
>  using namespace Usb;
> diff --git a/tools/bs11nread.cc b/tools/bs11nread.cc
> index 042319a..ee622d7 100644
> --- a/tools/bs11nread.cc
> +++ b/tools/bs11nread.cc
> @@ -27,6 +27,7 @@
>  #include <sstream>
>  #include <vector>
>  #include <string>
> +#include <algorithm>
>  #include <getopt.h>
>  
>  
> diff --git a/tools/btool.cc b/tools/btool.cc
> index 4738ea4..51bd38c 100644
> --- a/tools/btool.cc
> +++ b/tools/btool.cc
> @@ -26,6 +26,7 @@
>  #include <sstream>
>  #include <vector>
>  #include <string>
> +#include <algorithm>
>  #include <getopt.h>
>  
>  
> diff --git a/tools/btranslate.cc b/tools/btranslate.cc
> index ce91ff4..18c5ded 100644
> --- a/tools/btranslate.cc
> +++ b/tools/btranslate.cc
> @@ -17,6 +17,9 @@
>  #include <iostream>
>  #include <iomanip>
>  #include <sstream>
> +#include <string.h>
> +#include <stdlib.h>
> +#include <limits.h>
>  
>  using namespace std;
>  
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
I tried the patch and make still fails...

> In file included from usbwrap.cc:23:
> usbwrap.h:26:17: error: usb.h: No such file or directory
> In file included from usbwrap.cc:23:
> usbwrap.h:165: error: 'usb_endpoint_descriptor' was not declared in this scope
> usbwrap.h:165: error: template argument 2 is invalid
> usbwrap.h:165: error: template argument 4 is invalid
> usbwrap.h:170: error: 'usb_endpoint_descriptor' was not declared in this scope
> usbwrap.h:170: error: template argument 2 is invalid
> usbwrap.h:170: error: template argument 4 is invalid
> usbwrap.h:192: error: field 'desc' has incomplete type
> usbwrap.h:219: error: 'usb_config_descriptor' does not name a type
> usbwrap.h:246: error: 'usb_device_descriptor' does not name a type
> usbwrap.cc: In function 'std::string Usb::GetErrorString(int, const 
> std::string&)':
> usbwrap.cc:53: error: 'usb_strerror' was not declared in this scope
> usbwrap.cc: In constructor 'Usb::Match::Match(int, int, const char*, const 
> char*)':
> usbwrap.cc:83: error: 'usb_find_busses' was not declared in this scope
> usbwrap.cc:84: error: 'usb_find_devices' was not declared in this scope
> usbwrap.cc:85: error: 'usb_get_busses' was not declared in this scope
> usbwrap.cc: In static member function 'static bool Usb::Match::ToNum(const 
> char*, long int&)':
> usbwrap.cc:95: error: 'strtol' was not declared in this scope
> usbwrap.cc:97: error: 'LONG_MIN' was not declared in this scope
> usbwrap.cc:97: error: 'LONG_MAX' was not declared in this scope
> usbwrap.cc: In member function 'bool 
> Usb::Match::next_device(Usb::usb_device**)':
> usbwrap.cc:123: error: invalid use of incomplete type 'struct Usb::usb_bus'
> usbwrap.h:73: error: forward declaration of 'struct Usb::usb_bus'
> usbwrap.cc:126: error: invalid use of incomplete type 'struct Usb::usb_bus'
> usbwrap.h:73: error: forward declaration of 'struct Usb::usb_bus'
> usbwrap.cc:130: error: invalid use of incomplete type 'struct Usb::usb_bus'
> usbwrap.h:73: error: forward declaration of 'struct Usb::usb_bus'
> usbwrap.cc:132: error: invalid use of incomplete type 'struct Usb::usb_device'
> usbwrap.h:67: error: forward declaration of 'struct Usb::usb_device'
> usbwrap.cc:135: error: invalid use of incomplete type 'struct Usb::usb_device'
> usbwrap.h:67: error: forward declaration of 'struct Usb::usb_device'
> usbwrap.cc:139: error: invalid use of incomplete type 'struct Usb::usb_device'
> usbwrap.h:67: error: forward declaration of 'struct Usb::usb_device'
> usbwrap.cc:140: error: invalid use of incomplete type 'struct Usb::usb_device'
> usbwrap.h:67: error: forward declaration of 'struct Usb::usb_device'
> usbwrap.cc:145: error: invalid use of incomplete type 'struct Usb::usb_device'
> usbwrap.h:67: error: forward declaration of 'struct Usb::usb_device'
> usbwrap.cc:147: error: invalid use of incomplete type 'struct Usb::usb_bus'
> usbwrap.h:73: error: forward declaration of 'struct Usb::usb_bus'
> usbwrap.cc: In constructor 'Usb::Device::Device(Usb::usb_device*, int)':
> usbwrap.cc:166: error: 'usb_open' was not declared in this scope
> usbwrap.cc: In destructor 'Usb::Device::~Device()':
> usbwrap.cc:174: error: 'usb_close' was not declared in this scope
> usbwrap.cc: In member function 'bool Usb::Device::SetConfiguration(unsigned 
> char)':
> usbwrap.cc:180: error: 'usb_set_configuration' was not declared in this scope
> usbwrap.cc: In member function 'bool Usb::Device::ClearHalt(int)':
> usbwrap.cc:188: error: 'usb_clear_halt' was not declared in this scope
> usbwrap.cc: In member function 'bool Usb::Device::Reset()':
> usbwrap.cc:196: error: 'usb_reset' was not declared in this scope
> usbwrap.cc: In member function 'bool Usb::Device::BulkRead(int, Barry::Data&, 
> int)':
> usbwrap.cc:207: error: 'usb_bulk_read' was not declared in this scope
> usbwrap.cc: In member function 'bool Usb::Device::BulkWrite(int, const 
> Barry::Data&, int)':
> usbwrap.cc:228: error: 'usb_bulk_write' was not declared in this scope
> usbwrap.cc: In member function 'bool Usb::Device::BulkWrite(int, const void*, 
> size_t, int)':
> usbwrap.cc:252: error: 'usb_bulk_write' was not declared in this scope
> usbwrap.cc: In member function 'bool Usb::Device::InterruptRead(int, 
> Barry::Data&, int)':
> usbwrap.cc:271: error: 'usb_interrupt_read' was not declared in this scope
> usbwrap.cc: In member function 'bool Usb::Device::InterruptWrite(int, const 
> Barry::Data&, int)':
> usbwrap.cc:293: error: 'usb_interrupt_write' was not declared in this scope
> usbwrap.cc: In member function 'bool Usb::Device::GetConfiguration(unsigned 
> char&)':
> usbwrap.cc:331: error: 'USB_REQ_GET_CONFIGURATION' was not declared in this 
> scope
> usbwrap.cc:332: error: 'usb_control_msg' was not declared in this scope
> usbwrap.cc: In constructor 'Usb::Interface::Interface(Usb::Device&, int)':
> usbwrap.cc:346: error: 'usb_claim_interface' was not declared in this scope
> usbwrap.cc: In destructor 'Usb::Interface::~Interface()':
> usbwrap.cc:354: error: 'usb_release_interface' was not declared in this scope
> usbwrap.cc: In member function 'bool 
> Usb::EndpointDiscovery::Discover(Usb::usb_interface_descriptor*, int)':
> usbwrap.cc:365: error: 'clear' was not declared in this scope
> usbwrap.cc:370: error: invalid use of incomplete type 'struct 
> Usb::usb_interface_descriptor'
> usbwrap.h:177: error: forward declaration of 'struct 
> Usb::usb_interface_descriptor'
> usbwrap.cc:377: error: 'usb_endpoint_descriptor' was not declared in this 
> scope
> usbwrap.cc:377: error: expected `;' before 'desc'
> usbwrap.cc:378: error: 'desc' was not declared in this scope
> usbwrap.cc:378: error: invalid use of incomplete type 'struct 
> Usb::usb_interface_descriptor'
> usbwrap.h:177: error: forward declaration of 'struct 
> Usb::usb_interface_descriptor'
> usbwrap.cc:402: error: 'USB_ENDPOINT_TYPE_MASK' was not declared in this scope
> usbwrap.cc:403: error: 'USB_ENDPOINT_DIR_MASK' was not declared in this scope
> usbwrap.cc:438: error: invalid use of incomplete type 'struct 
> Usb::usb_interface_descriptor'
> usbwrap.h:177: error: forward declaration of 'struct 
> Usb::usb_interface_descriptor'
> usbwrap.cc:440: error: invalid use of incomplete type 'struct 
> Usb::usb_interface_descriptor'
> usbwrap.h:177: error: forward declaration of 'struct 
> Usb::usb_interface_descriptor'
> usbwrap.cc:440: error: invalid use of incomplete type 'struct 
> Usb::usb_interface_descriptor'
> usbwrap.h:177: error: forward declaration of 'struct 
> Usb::usb_interface_descriptor'
> usbwrap.cc: In member function 'bool 
> Usb::InterfaceDiscovery::DiscoverInterface(Usb::usb_interface*)':
> usbwrap.cc:453: error: invalid use of incomplete type 'struct 
> Usb::usb_interface'
> usbwrap.h:204: error: forward declaration of 'struct Usb::usb_interface'
> usbwrap.cc:461: error: invalid use of incomplete type 'struct 
> Usb::usb_interface'
> usbwrap.h:204: error: forward declaration of 'struct Usb::usb_interface'
> usbwrap.cc:464: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc:464: error: invalid use of incomplete type 'struct 
> Usb::usb_interface'
> usbwrap.h:204: error: forward declaration of 'struct Usb::usb_interface'
> usbwrap.cc:465: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc:465: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc:465: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc:465: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc:465: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc:465: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc:465: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc:465: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc:465: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc:479: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc:479: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc:480: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc:485: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc:486: error: 'struct Usb::InterfaceDesc' has no member named 'desc'
> usbwrap.cc: In member function 'bool 
> Usb::InterfaceDiscovery::Discover(Usb::usb_device*, int, int)':
> usbwrap.cc:497: error: invalid use of incomplete type 'struct Usb::usb_device'
> usbwrap.h:67: error: forward declaration of 'struct Usb::usb_device'
> usbwrap.cc:497: error: invalid use of incomplete type 'struct Usb::usb_device'
> usbwrap.h:67: error: forward declaration of 'struct Usb::usb_device'
> usbwrap.cc:503: error: invalid use of incomplete type 'struct Usb::usb_device'
> usbwrap.h:67: error: forward declaration of 'struct Usb::usb_device'
> usbwrap.cc: In member function 'bool 
> Usb::ConfigDiscovery::Discover(Usb::usb_device*, int)':
> usbwrap.cc:523: error: invalid use of incomplete type 'struct Usb::usb_device'
> usbwrap.h:67: error: forward declaration of 'struct Usb::usb_device'
> usbwrap.cc:527: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:527: error: invalid use of incomplete type 'struct Usb::usb_device'
> usbwrap.h:67: error: forward declaration of 'struct Usb::usb_device'
> usbwrap.cc:528: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:528: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:528: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:528: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:528: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:528: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:528: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:528: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:542: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:544: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:544: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:549: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:550: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:555: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc:556: error: 'struct Usb::ConfigDesc' has no member named 'desc'
> usbwrap.cc: In member function 'bool 
> Usb::DeviceDiscovery::Discover(Usb::usb_device*)':
> usbwrap.cc:584: error: 'desc' was not declared in this scope
> usbwrap.cc:584: error: invalid use of incomplete type 'struct Usb::usb_device'
> usbwrap.h:67: error: forward declaration of 'struct Usb::usb_device'
> make[2]: *** [usbwrap.lo] Error 1
> make[2]: Leaving directory `/home/smcmackin/Download/barry-0.12/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/smcmackin/Download/barry-0.12'
> make: *** [all] Error 2


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to