>Number: 7517 >Category: c++ >Synopsis: g++ incompatible options and multiple compilations >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Aug 06 23:56:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Pascal Bonfils >Release: 1 >Organization: >Environment: Linux 2.4.18-3 >Description: unable to build a rpm from source because it seems that some compilation options are not any more supported together : > > g++: ne peut spécifier -o avec -c ou -S et de multiples compilations this could be translated as : g++ : do not specify -o with -c or -S and multiple compilations. This a common problem with many source rpm's. >How-To-Repeat: rpm --rebuild qcad-1.4.16-1.src.rpm >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="bug.txt" Content-Disposition: inline; filename="bug.txt" rpm --rebuild qcad-1.4.16-1.src.rpm Installing qcad-1.4.16-1.src.rpm Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.69864 + umask 022 + cd /usr/src/redhat/BUILD + cd /usr/src/redhat/BUILD + rm -rf qcad-1.4.16-src + /bin/gzip -dc /usr/src/redhat/SOURCES/qcad-1.4.16-src.tar.gz + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd qcad-1.4.16-src ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chown -Rhf root . ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chgrp -Rhf root . + /bin/chmod -Rf a+rX,g-w,o-w . + echo 'Patch #0 (qcad-datadir.patch):' Patch #0 (qcad-datadir.patch): + patch -p1 -s + echo 'Patch #1 (qcad-pl.po.patch):' Patch #1 (qcad-pl.po.patch): + patch -p1 -s + echo 'Patch #2 (qcad-Makefile.patch):' Patch #2 (qcad-Makefile.patch): + patch -p1 -s + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.39156 + umask 022 + cd /usr/src/redhat/BUILD + cd qcad-1.4.16-src + /usr/bin/make 'CXXFLAGS=%{rpmcflags} -fno-rtti -fno-exceptions -DNO_DEBUG -DDATADIR=\"/usr/X11R6/share/\"' 'INCPATH=-I/usr/X11R6/include -I/usr/X11R6/include/qt' MOC=moc 'LDFLAGS=%{rpmldflags}' qcad g++ -c %{rpmcflags} -fno-rtti -fno-exceptions -DNO_DEBUG -DDATADIR=\"/usr/X11R6/share/\" -I/usr/X11R6/include -I/usr/X11R6/include/qt -o exprparser.o exprparser.cpp g++: ne peut spécifier -o avec -c ou -S et de multiples compilations make: *** [exprparser.o] Erreur 1 error: Bad exit status from /var/tmp/rpm-tmp.39156 (%build)