[Apt-Rpm] 0.5.15lorg3.93 Solaris build issue

Gary L. Greene Jr. greeneg at tolharadys.net
Wed Sep 19 08:11:40 PDT 2007


On Wednesday 19 September 2007 08:00:01 am David Halik wrote:
> >> +#ifndef __GNUC__
> >> +#define *__attribute__*(X)
> >> +#endif
> >
> > Are the **s above intentional? They should not be there.
>
> That was a mistake on my part. When I copied it off of the cached google
> site it threw the stars in.
>
> > Where did you add the snippet? You must #define the macro before it is
> > used anywhere in the code. Your compiler should have an option to do
> > this from the command line.
>
> Using -D__attribute__\(X\) only removes the attribute errors, I still
> receive the line ending errors. Either way if I'm going to redefine it
> to essentially nothing I might as well commented it out like you said
> below.
>
> > You could also try removing the __attribute__ decorations by hand on
> > lines 51-53 of both include/apt-pkg/sha1.h and apt-pkg/contrib/sha1.h:
>
> This seems to work, but I'm worried that the functionality might be
> needed somewhere. I do know that there is some way to use suncc pragma
> to accomplish the same funtion as __attribute__ align, but I haven't
> been successful. Anyone know suncc better out there? I'd love to get
> this built since we were able to get JBJ's rpm 4.4.9 built for Solaris 9
> with a little help.
>
> I'm don't think this is related to my earlier tinkering, but the build
> doesn't get much farther before dying some more... I see this is going
> to be a battle :( The code definitely doesn't like Suncc
>
>  CC -DHAVE_CONFIG_H -I. -I../include -I../include/apt-pkg
> -DLIBDIR=\"/usr/local/lib\" -DPKGDATADIR=\"/usr/local/share/apt\"
> -DLOCALEDIR=\"/usr/local/share/locale\" -DAPT_DOMAIN=\"apt\"
> -I../lua/include -I../lua/local -I/usr/local/include/libxml2
> -I/usr/local/include -I/usr/local/include -I/usr/include/rpm -g -c
> rpm/rpmhandler.cc  -KPIC -DPIC -o rpm/.libs/rpmhandler.o
> "../include/apt-pkg/fileutl.h", line 77: Warning: FileName hides
> FileFd::FileName.
> "../include/apt-pkg/cacheiterators.h", line 55: Warning: Owner hides
> pkgCache::PkgIterator::Owner.
> "../include/apt-pkg/cacheiterators.h", line 96: Warning: Owner hides
> pkgCache::PkgIterator::Owner.
> "../include/apt-pkg/cacheiterators.h", line 151: Warning: Owner hides
> pkgCache::VerIterator::Owner.
> "../include/apt-pkg/cacheiterators.h", line 216: Warning: Owner hides
> pkgCache::DepIterator::Owner.
> "../include/apt-pkg/cacheiterators.h", line 222: Warning: Owner hides
> pkgCache::DepIterator::Owner.
> "../include/apt-pkg/cacheiterators.h", line 268: Warning: Owner hides
> pkgCache::PrvIterator::Owner.
> "../include/apt-pkg/cacheiterators.h", line 274: Warning: Owner hides
> pkgCache::PrvIterator::Owner.
> "/usr/local/include/rpm/rpmlib.h", line 979: Warning: Identifier
> expected instead of "}".
> "../include/apt-pkg/rpmhandler.h", line 347: Warning: String literal
> converted to char* in formal argument Tag in call to
> RPMRepomdReaderHandler::FindTag(char*).
> "../include/apt-pkg/rpmhandler.h", line 348: Warning: String literal
> converted to char* in formal argument Tag in call to
> RPMRepomdReaderHandler::FindTag(char*).
> "../include/apt-pkg/rpmhandler.h", line 349: Warning: String literal
> converted to char* in formal argument Tag in call to
> RPMRepomdReaderHandler::FindVerTag(char*).
> "../include/apt-pkg/rpmhandler.h", line 350: Warning: String literal
> converted to char* in formal argument Tag in call to
> RPMRepomdReaderHandler::FindVerTag(char*).
> "../include/apt-pkg/rpmhandler.h", line 351: Warning: String literal
> converted to char* in formal argument Tag in call to
> RPMRepomdReaderHandler::FindVerTag(char*).
> "../include/apt-pkg/tagfile.h", line 58: Warning: Stop hides
> pkgTagSection::Stop.
> "../include/apt-pkg/tagfile.h", line 61: Warning: Stop hides
> pkgTagSection::Stop.
> "../include/apt-pkg/rpmpackagedata.h", line 42: Warning: declarator
> required in declaration.
> "../include/apt-pkg/rpmpackagedata.h", line 42: Error: Use ";" to
> terminate declarations.
> "../include/apt-pkg/rpmpackagedata.h", line 42: Error: "}" expected
> instead of ">".
> "../include/apt-pkg/rpmpackagedata.h", line 42: Error: Use ";" to
> terminate declarations.
> "../include/apt-pkg/rpmpackagedata.h", line 42: Error: A declaration was
> expected instead of ">".
> "../include/apt-pkg/rpmpackagedata.h", line 75: Error: A declaration was
> expected instead of "public".
> "../include/apt-pkg/rpmpackagedata.h", line 79: Error: Priorities is not
> defined.
> "../include/apt-pkg/rpmpackagedata.h", line 79: Error: Priorities is not
> defined.
> "../include/apt-pkg/rpmpackagedata.h", line 79: Error: Badly formed
> expression.
> "../include/apt-pkg/rpmpackagedata.h", line 79: Error: Badly formed
> expression.
> "../include/apt-pkg/rpmpackagedata.h", line 80: Error: Priorities is not
> defined.
> "../include/apt-pkg/rpmpackagedata.h", line 84: Error: Flags is not
> defined. "../include/apt-pkg/rpmpackagedata.h", line 88: Error:
> IgnorePackages is not defined.
> "../include/apt-pkg/rpmpackagedata.h", line 88: Error: IgnorePackages is
> not defined.
> "../include/apt-pkg/rpmpackagedata.h", line 88: Error: Badly formed
> expression.
> "../include/apt-pkg/rpmpackagedata.h", line 88: Error: Badly formed
> expression.
> "../include/apt-pkg/rpmpackagedata.h", line 123: Error:
> DuplicatedPackages is not defined.
> "../include/apt-pkg/rpmpackagedata.h", line 147: Error: There must be an
> identifier to declare.
> "/usr/local/include/rpm/rpmdb.h", line 11: Error: Could not open include
> file<rpmlib.h>.
> "/usr/local/include/rpm/rpmdb.h", line 12: Error: Could not open include
> file<mire.h>.
> "/usr/local/include/rpm/rpmdb.h", line 1061: Error: rpmMireMode is not
> defined.
> "/usr/local/include/rpm/rpmdb.h", line 1061: Error: Badly formed
> expression. "/usr/local/include/rpm/rpmdb.h", line 1192: Error:
> "rpmdbSetIteratorRE(_rpmdbMatchIterator*, rpmTag_e)" is expected to
> return a value.
> "/usr/local/include/rpm/rpmevr.h", line 21: Error: evrFlags_e is not
> defined.
> "/usr/local/include/rpm/rpmevr.h", line 22: Error: evrFlags_e is not
> defined.
> "/usr/local/include/rpm/rpmevr.h", line 67: Warning: Identifier expected
> instead of "}".
> "/usr/local/include/rpm/rpmns.h", line 51: Warning: Identifier expected
> instead of "}".
> "rpm/rpmhandler.cc", line 92: Error: RPMSENSE_ANY is not defined.
> Compilation aborted, too many Error messages.

Another thing to be aware of is that Apt-RPM does not currently support RPM < 
4.4.6, due to API problems. There are a few untested patches floating around 
the mailing list for this issue, but there has not been any official work 
from Panu regarding getting Apt-RPM working for the newer www.rpm5.org 
releases.

-- 
Gary L. Greene, Jr.
Sent from: peorth.tolharadys.net
 08:09:17 up 10 days,  9:34,  1 user,  load average: 0.16, 0.06, 0.02
=========================================================================
Developer and Project Lead for the AltimatOS open source project
Volunteer Developer for the KDE open source project
 See www.tolharadys.net and www.kde.org for more information
=========================================================================

Please avoid sending me Word or PowerPoint attachments.



More information about the Apt-Rpm mailing list