[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: RPM 4.4.4 compile problems on Mac OS X
- From: "Otto Maddox" <ottomaddox fastmail fm>
- To: "Jeff Johnson" <n3npq jbj gmail com>, "RPM Package Manager" <rpm-list redhat com>
- Cc:
- Subject: Re: RPM 4.4.4 compile problems on Mac OS X
- Date: Thu, 09 Feb 2006 20:54:57 +0000
Thanks, Jeff, for your reply.
All I can make out is that these issues seems to be related to glibc
extensions. For example, _SC_UINT_MAX is defined on my Debian box and
documented in the glibc manual, but isn't defined on Mac OS X and is
not in the POSIX standard.
I tried #defining them based on UINT_MAX and ULONG_MAX from limits.h
(which made me nervous because it's probably the wrong thing to do)
and this seemed to work, but then there was still this problem
rpmds.c:2930: error: 'struct utsname' has no member named 'domainname'
which also seems to be related to a GNU extension. From the rpmds.c
source:
#if defined(_GNU_SOURCE)
if (un->domainname != NULL && strcmp(un->domainname, "(none)"))
rpmdsNSAdd(dsp, NS, "domainname", un->domainname, RPMSENSE_EQUAL);
#endif
I wonder why _GNU_SOURCE is being defined... Isn't it a glibc thing?
Anyway, I'll keep trying, and will have a go at 4.4.3 if I can't work
it out in the next day or two.
Good luck with your backups and restores.
On Thu, 9 Feb 2006, Jeff Johnson <n3npq jbj gmail com> said:
> Yep. My dual G5 ain't booting for the last 10 days, messing with 24
> hour backups/restores
> at the moment.
>
> So rpm-4.4.4 is not yet ported to Mac OS X.
>
> The port ain't hard, rpm-4.4.3 only required a few tweaks, same tweaks
> will be needed for rpm-4.4.4.
>
> Hmmm, Solaris has the same issue.
>
> #if defined(_SC_UINT_MAX)
> ...
> #endif
>
> #if defined(_SC_ULONG_MAX)
> ...
> #endif
>
> around those entries is one fix for your specific problem.
>
> Another is to figure out where Mac OS X has decided to hide
> those defines and include them.
>
> Yet another fix is to define the values appropriately if not already
> defined.
>
> hth
>
> 73 de Jeff
>
> On Feb 9, 2006, at 2:40 PM, Otto Maddox wrote:
>
> > After playing around with DarwinPorts (specifically, the
> > dp_light-olegb branch) and RPM, I've decided to start using RPM more
> > extensively. This is Mac OS X 10.4.4.
> >
> > So. I picked up rpm-4.4.4.tar.gz and installed its dependencies, but
> > am unable to compile it:
> >
> > ./autogen.sh --noconfigure.
> >
> > ./configure --without-included-gettext --with-libintl-prefix=/usr/
> > local
> > --with-libiconv-prefix=/usr/local --disable-nls --without-lua
> > --without-python
> >
> > make
> >
> > [lots of output and then bombs out:]
> >
> > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../build -I../rpmdb
> > -I../rpmio -I/usr/local/include/beecrypt -I../popt -I../misc -I../
> > zlib
> > -I/System/Library/Frameworks/CoreFoundation.framework/Headers -g -O2
> > -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith
> > -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -MT
> > rpmds.lo -MD -MP -MF .deps/rpmds.Tpo -c rpmds.c -fno-common -DPIC -o
> > .libs/rpmds.o
> > rpmds.c: In function 'rpmdsGetconf':
> > rpmds.c:2430: error: '_SC_UINT_MAX' undeclared (first use in this
> > function)
> > rpmds.c:2430: error: (Each undeclared identifier is reported only once
> > rpmds.c:2430: error: for each function it appears in.)
> > rpmds.c:2430: error: '_SC_ULONG_MAX' undeclared (first use in this
> > function)
> > rpmds.c:2445: warning: implicit declaration of function 'error'
> > rpmds.c: In function 'rpmdsUname':
> > rpmds.c:2928: error: 'struct utsname' has no member named 'domainname'
> > rpmds.c:2928: error: 'struct utsname' has no member named 'domainname'
> > rpmds.c:2929: error: 'struct utsname' has no member named 'domainname'
> > make[3]: *** [rpmds.lo] Error 1
> > make[2]: *** [all] Error 2
> > make[1]: *** [all-recursive] Error 1
> > make: *** [all] Error 2
> >
> > Does anybody have any idea what to do? Has anybody reported
> > successful compilation on Darwin?
--
http://www.fastmail.fm - And now for something completely differentÂ…
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]