Re: Compile Problems - v3.4.0 - uuid_t
Jacob Smullyan <[email protected]> Sun, 16 Oct 2005 22:46:33 -0400
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Oct 16, 2005 at 07:05:32PM -0400, Patrick Lewis wrote:
> I am having problems compiling Skunkweb, and Google isn't being very
> friendly in helping with an answer.
>
> Some make output:
>
> building 'uuid._uuid' extension
> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-
> madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -
> I/sw/include -I/Library/Frameworks/Python.framework/Versions/2.4/
> include/python2.4 -c uuid/_uuidmodule.c -o build/temp.darwin-8.2.0-
> Power_Macintosh-2.4/uuid/_uuidmodule.o
> In file included from /Library/Frameworks/Python.framework/Versions/
> 2.4/include/python2.4/Python.h:41,
> from uuid/_uuidmodule.c:9:
> /usr/include/unistd.h:121: error: conflicting types for 'uuid_t'
> uuid/dav_opaquelock.h:66: error: previous declaration of 'uuid_t' was
> here
> uuid/_uuidmodule.c: In function 'uuid_getuuid':
> uuid/_uuidmodule.c:23: warning: passing argument 2 of
> 'dav_create_opaquelocktoken' from incompatible pointer type
> uuid/_uuidmodule.c:24: warning: passing argument 1 of
> 'dav_format_opaquelocktoken' from incompatible pointer type
> error: command 'gcc' failed with exit status 1
> make[1]: *** [build] Error 1
> make: *** [build] Error 1
>
> I'm on a Mac, OSX 10.4 (Tiger), Python 2.4.1.
>
> I'd really like to get this installed, if anyone would be so kind as
> to work with me in resolving this, I would appreciate it.
Interesting. It used to compile on OS X, but I haven't tried with
Tiger. I don't have the same platform to test against, but evidently,
your unistd.h defines uuid_t. So why not rename it in skunkweb?
cd pylibs/uuid
for f in $(grep -l uuid_t *.{h,c})
do
sed -i s/uuid_t/sw_uuid_t/g $f
done
Now it should build.
If this works for you, I'll check it in. (It compiled for me, at
least).
Cheers,
js
--
Jacob Smullyan
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDUxCJuqamFyFXXLIRAje+AJ91GV9ey/NPagoKsdAbki4Ub8+nRgCgjbzo AcOJ5baqtsEse4sjFbs2ddE= =XDWq -----END PGP SIGNATURE-----