> Okay, thanks. I really don't need _EXACT_ match, but close. Again, my > aim is to equip GlibC with some logging facilities IF anyone is using the > gethostbyname(). Given the help from this list, I was able to rebuild > GlibC for CentOS and am testing my stuff now. > > I appreciate your help on this matter. Not knowing where the knobs are was > the hardest part. I have just about completed my testing. > > Again, thanks for the help! > > AndyUghh!! I just realized that the app that I'm testing has parts that are linked against 32-Bit libraries. I have to test that as well. Ouch! This leads to the question: How do I tell rpmbuild to build the i686 version of the library in place of the x86_64? I've done some looking around on the web and I have found something about: setarch i686 mock -r <something> ... rebuild <my.rpm> Not being able to find the "mock" package for CentOS, I thought maybe: setarch i686 rpmbuild -ba glibc.spec would work. This ended with an error: enable-bind-now --with-tls --with-__thread --build i686-redhat-linux --host i686-redhat-linux --enable-multi-arch --enable-systemtap --disable-profile --enable-experimental-malloc --enable-nss-crypt checking build system type... i686-redhat-linux-gnu checking host system type... i686-redhat-linux-gnu checking for i686-redhat-linux-gcc... gcc checking for suffix of object files... configure: error: in `/home/akennedy/rpmbuild/BUILD/glibc-2.12-2-gc4ccff1/build-i686-linuxnptl': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. error: Bad exit status from /var/tmp/rpm-tmp.2d2i9G (%build) I have also looked through the glibc.spec file for something that would make me think that I could change the target variant. "rpmbuild --target=i686 -ba glibc.spec" gives the same output as the setarch i686 above. Again, any help on this would be greatly appreciated. Thanks, Andy
On Tue, Mar 10, 2015 at 5:47 PM, ANDY KENNEDY <ANDY.KENNEDY at adtran.com> wrote:>> > How do I tell rpmbuild to build the i686 version of the library in place of the x86_64? I've > done some looking around on the web and I have found something about: > > setarch i686 mock -r <something> ... rebuild <my.rpm> > > Not being able to find the "mock" package for CentOS, I thought maybe:??? Mock is in EPEL.> setarch i686 rpmbuild -ba glibc.spec >If you repackaged the source rpm you should be able to: mock -r epel-6-i386 --rebuild glibc-xxx.srpm -- Les Mikesell lesmikesell at gmail.com
Hi Andy, mock is part of EPEL and is almost certainly what you want to use. Kahlil (Kal) Hodgson GPG: C9A02289 Head of Technology (m) +61 (0) 4 2573 0382 DealMax Pty Ltd GitHub: @tartansandal Suite 1416 401 Docklands Drive Docklands VIC 3008 Australia "All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1925 On 11 March 2015 at 09:47, ANDY KENNEDY <ANDY.KENNEDY at adtran.com> wrote:> > Okay, thanks. I really don't need _EXACT_ match, but close. Again, my > > aim is to equip GlibC with some logging facilities IF anyone is using the > > gethostbyname(). Given the help from this list, I was able to rebuild > > GlibC for CentOS and am testing my stuff now. > > > > I appreciate your help on this matter. Not knowing where the knobs are > was > > the hardest part. I have just about completed my testing. > > > > Again, thanks for the help! > > > > Andy > > Ughh!! I just realized that the app that I'm testing has parts that are > linked against 32-Bit > libraries. I have to test that as well. Ouch! > > This leads to the question: > > How do I tell rpmbuild to build the i686 version of the library in place > of the x86_64? I've > done some looking around on the web and I have found something about: > > setarch i686 mock -r <something> ... rebuild <my.rpm> > > Not being able to find the "mock" package for CentOS, I thought maybe: > > setarch i686 rpmbuild -ba glibc.spec > > would work. This ended with an error: > > enable-bind-now --with-tls --with-__thread --build i686-redhat-linux > --host i686-redhat-linux --enable-multi-arch --enable-systemtap > --disable-profile --enable-experimental-malloc --enable-nss-crypt > checking build system type... i686-redhat-linux-gnu > checking host system type... i686-redhat-linux-gnu > checking for i686-redhat-linux-gcc... gcc > checking for suffix of object files... configure: error: in > `/home/akennedy/rpmbuild/BUILD/glibc-2.12-2-gc4ccff1/build-i686-linuxnptl': > configure: error: cannot compute suffix of object files: cannot compile > See `config.log' for more details. > error: Bad exit status from /var/tmp/rpm-tmp.2d2i9G (%build) > > I have also looked through the glibc.spec file for something that would > make me think that > I could change the target variant. > > "rpmbuild --target=i686 -ba glibc.spec" gives the same output as the > setarch i686 above. > > Again, any help on this would be greatly appreciated. > > Thanks, > Andy > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
apologies for last top post :-(
> -----Original Message----- > From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Les Mikesell > Sent: Tuesday, March 10, 2015 6:02 PM > To: CentOS mailing list > Subject: Re: [CentOS] Glibc sources? > > On Tue, Mar 10, 2015 at 5:47 PM, ANDY KENNEDY <ANDY.KENNEDY at adtran.com> wrote: > >> > > How do I tell rpmbuild to build the i686 version of the library in place of the x86_64? I've > > done some looking around on the web and I have found something about: > > > > setarch i686 mock -r <something> ... rebuild <my.rpm> > > > > Not being able to find the "mock" package for CentOS, I thought maybe: > > ??? Mock is in EPEL.De-ignorant me please: How does one discern the package name "EPEL" from mock? I tried everything I could think of (keeping in mind that I've been a Slackware fan since 1993 or so) from "yum provides */mock" to various other commands that were as equally useless to me. Google wasn't even my friend -- though I did find the Fedora mock developer's page -- but I read something else that says that one cannot use Fedora packages within CentOS without resolving too many dependencies. Just a little light will do. . . I've felt my way around in the CentOS dark so far without too many cuts. Thanks, Andy> > > setarch i686 rpmbuild -ba glibc.spec > > > > If you repackaged the source rpm you should be able to: > mock -r epel-6-i386 --rebuild glibc-xxx.srpm > > -- > Les Mikesell > lesmikesell at gmail.com