[Apt-Rpm] 0.5.15lorg3.93 Solaris build issue
David Halik
dhalik at jla.rutgers.edu
Wed Sep 19 09:11:02 PDT 2007
Actually, I was just able to fix part of this. Didn't realize
/usr/local/include/rpm was not in the CPP path. Now I'm getting the
RPMSENSE problem like I saw on the list already. I'll try those patches
out later and see how it goes. Maybe I can get this to compile afterall...
"rpm/rpmhandler.cc", line 92: Error: RPMSENSE_ANY is not defined.
"rpm/rpmhandler.cc", line 247: Error: RPMSENSE_MISSINGOK is not defined.
"rpm/rpmhandler.cc", line 777: Error: Singleton is not a member of
RPMPackageData.
"rpm/rpmhandler.cc", line 834: Warning: WriteLock hides
RPMDBHandler::WriteLock.
"rpm/rpmhandler.cc", line 1291: Error: RPMSENSE_ANY is not defined.
"rpm/rpmhandler.cc", line 1688: Error: RPMSENSE_ANY is not defined.
24 Error(s) and 20 Warning(s) detected.
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.
>
>
--
================================
David Halik
Student Programmer
OSS/NBCS - OIT Rutgers
dhalik at jla.rutgers.edu
================================
More information about the Apt-Rpm
mailing list