LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2022, 11:43 PM   #1
azard
LQ Newbie
 
Registered: Jan 2009
Posts: 13

Rep: Reputation: 0
Building rpm


Hi all,
I am trying to build an rpm from source but stuck with the error below. Can anyone advice to solve the problems? I removed the text " && IS_IN (libc)" and the build went through fine. However I am concern of the implications in doing so. Thank you.

Command
-------
/root/rpmbuild/BUILD/gcc-2.96-20000731/obj-i686-redhat-linux/gcc/xgcc \
-B/root/rpmbuild/BUILD/gcc-2.96-20000731/obj-i686-redhat-linux/gcc/ -B/usr/i686-redhat-linux/bin/ \
-B/usr/i686-redhat-linux/lib/ -isystem /usr/i686-redhat-linux/include -c -O2 -pipe -march=i686 -I. \
-I../../../libio -D_IO_MTSAFE_IO -fpic ../../../libio/iogetline.c -o pic/iogetline.o

Error
-----
/usr/include/bits/stdio-lock.h:47:28: missing binary operator before '&&'

Source
------
#if defined _LIBC && IS_IN (libc)
# define _IO_acquire_lock(_fp) \
_IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, (_fp)); \
_IO_flockfile (_fp)
 
Old 10-23-2022, 06:16 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,149

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
how is IS_IN defined?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Require help for building rpm from .src.rpm during uncompressing tar.xz file Santoshkb Linux - General 4 09-16-2013 02:15 AM
configure path for dependent rpm packages for building source rpm package embeddedlinuxforall Linux - Newbie 1 03-01-2013 11:39 AM
error in building rpm of open ldap from source using rpm package manager Infotechie Linux - Software 2 05-02-2012 01:10 AM
Help building an .rpm from a .src.rpm ssenuta Linux - Software 6 04-10-2006 10:36 PM
Building RPM via src.Rpm ivanatora Linux - Newbie 2 02-20-2006 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration