Bugs item #1887429, was opened at 2008-02-05 22:36
Message generated for change (Comment added) made by marcusmeissner
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108874&aid=1887429&group_id=8874Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: build system
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 1
Private: No
Submitted By: Jean-Etienne LAMIAUD (j-etienne)
>Assigned to: Marcus Meissner (marcusmeissner)
Summary: libgphoto2 compilation issues on MacOS X
Initial Comment:
I am compiling libgphoto2 on MacOS X 10.5
libgphoto2_port/serial/unix.c uses the macro O_NDELAY which is not defined for POSIX code (I mean, in MacOS X include files, I have not verified this for real POSIX compliance). I replaced it with O_NONBLOCK to continue compilation.
Some source files in the camlib use u_char which is also not defined for POSIX code in the include files. To override strict POSIX compliance, I have added the following code in ibgphoto2_port/gphoto2/gphoto2-port-portability.h after the definition of _POSIX_C_SOURCE
#ifdef __APPLE_CC__
#define _DARWIN_C_SOURCE
#endif
Cf
http://developer.apple.com/releasenotes/Darwin/SymbolVariantsRelNotes/index.html#//apple_ref/doc/uid/TP40006658-DontLinkElementID_4 for some explanation on the _DARWIN_C_SOURCE macro.
This is a quick and dirty workaround, but it worked to compile the library to the end ; I guess that a correct implementation should use a macro in config.h set by the configure script.
----------------------------------------------------------------------
>Comment By: Marcus Meissner (marcusmeissner)
Date: 2008-06-26 06:51
Message:
Logged In: YES
user_id=48092
Originator: NO
i fixed most of these now for 2.5 and 2.4.2.
I dont get the one about DARWIN_C_SOURCE though.
----------------------------------------------------------------------
Comment By: Hubert Figuiere (hfiguiere)
Date: 2008-02-10 02:56
Message:
Logged In: YES
user_id=27487
Originator: NO
patches welcome.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108874&aid=1887429&group_id=8874-------------------------------------------------------------------------
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_______________________________________________
gphoto-bugs mailing list
gphoto-bugs@...
https://lists.sourceforge.net/lists/listinfo/gphoto-bugs