Re: gcc issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---- Steve <zephod@xxxxxxxxxx> wrote: 
> 
> ---- Mamoru Tasaka <mtasaka@xxxxxxxxxxxxxxxxxxx> wrote: 
> > Steve wrote, at 02/05/2009 03:55 AM +9:00:
> > > ---- Kevin Kofler <kevin.kofler@xxxxxxxxx> wrote: 
> > >> Steve wrote:
> > >>> I had tried putting #define __USE_GNU in the code but that didn't make any
> > >>> difference.
> > >> You need to #define _GNU_SOURCE, not __USE_GNU. glibc #undefs all the
> > >> __USE_* macros, then #defines them based on the _*_SOURCE macros you used.
> > >>
> > > 
> > > ...and now I know...
> > > but that still doesn't explain why _GNU_SOURCE is not defined in the dhcp-4.0.0 src rpm.
> > 
> > Note that dhcp-4.0.0-22.fc9 srpm has:
> > -------------------------------------------------------------
> > CFLAGS="%{optflags} -fPIC -D_GNU_SOURCE" \
> > %configure \
> >     --disable-dhcpv6 \
> >     --with-srv-lease-file=%{_localstatedir}/lib/dhcpd/dhcpd.leases \
> >     --with-cli-lease-file=%{_localstatedir}/lib/dhclient/dhclient.leases \
> >     --with-srv-pid-file=%{_localstatedir}/run/dhcpd.pid \
> >     --with-cli-pid-file=%{_localstatedir}/run/dhclient.pid \
> >     --with-relay-pid-file=%{_localstatedir}/run/dhcrelay.pid
> > -------------------------------------------------------------
> 
> Interesting. I'll take another look tomorrow morning. Perhaps there is a completly different reason why the make is failing with that error or perhaps something funky happened with configure.
> 
> Steve.

OK, now I am really confused. 

I went to rpmfind (http://rpmfind.net/linux/RPM/fedora/updates/9/x86_64/dhclient-4.0.0-22.fc9.x86_64.html) to get the dhcp src rpm and downloaded it. It comes from ftp://download.fedora.redhat.com/pub/fedora/linux/updates/9/SRPMS.newkey/dhcp-4.0.0-22.fc9.src.rpm

When I ran rpm -qp on the downloaded rpm I get this:

$ rpm -qp dhcp-4.0.0-22.fc9.src.rpm
dhcp-4.0.0-22.fc9.ppc

ppc?!!? Is this the correct rpm?

I installed the rpm anyway
# rpm -iv dhcp-4.0.0-22.fc9.src.rpm

which created, amongst other things /usr/src/redhat/SOURCES/dhcp-4.0.0.tar.gz
I unpacked:
# gunzip -cd dhcp-4.0.0.tar.gz | tar xvf -
which created a /usr/src/redhat/SOURCES/dhcp-4.0.0 directory. I cd'd to the directory and ran
# ./configure
which ran with no errors
# grep -R GNU_SOURCE *
#

No mention of GNU_SOURCE anywhere.
I'd be interested to see if anyone can reproduce these results.

Mamoru, how did you get that info you posted from the src rpm?

Steve

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux