pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/38733: libmpeg3 doesn't build on Mac OS X 10.5.2 (round 3)!
The following reply was made to PR pkg/38733; it has been noted by GNATS.
From: Steven Sartorius <ssartor%bellatlantic.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/38733: libmpeg3 doesn't build on Mac OS X 10.5.2 (round 3)!
Date: Sun, 25 May 2008 09:31:16 -0400
On May 24, 2008, at 03:50, Antoine Reilles wrote:
> The following reply was made to PR pkg/38733; it has been noted by
> GNATS.
>
> From: Antoine Reilles <Antoine.Reilles%loria.fr@localhost>
> To: gnats-bugs%NetBSD.org@localhost
> Cc:
> Subject: Re: pkg/38733: libmpeg3 doesn't build on Mac OS X 10.5.2
> (round 3)!
> Date: Sat, 24 May 2008 08:35:32 +0200
>
> --6c2NcOVqGQ03X4Wi
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
>
> On Fri, May 23, 2008 at 09:25:01PM +0000, ssartor%bellatlantic.net@localhost
>
> wrote:
>> libmpeg3 still does not build on Mac OS X 10.5.2:
>> =20
>> gcc -c `cat work/c_flags` mpeg3io.c -o work/mpeg3io.o
>> In file included from mpeg3io.c:22:
>> /usr/include/sys/stat.h:261: error: redefinition of 'struct stat'
>> gnumake: *** [work/mpeg3io.o] Error 1
>> *** Error code 2
>
> Oh, 10.5 has stat64, so the
> # define fopen64 fopen
> # define fseeko64 fseek
> # define stat64 stat
> part of patch-ah should be avoided on 10.5.
>
> I don't know which define to use to detect 10.5
>
Not a define but the bootstrap file in pkgsrc detects the version of
Mac OS X with the following code snippet:
uname -r | awk -F . '{ print "10."$1-4; }'
Running this on my Mac produces '10.5'.
Steve
Home |
Main Index |
Thread Index |
Old Index