[sisyphus] mozilla and Co backports

Denis V. Rybakov =?iso-8859-1?q?dendery_=CE=C1_inbox=2Eru?=
Чт Апр 7 01:30:20 MSD 2005


Имею alm 2.4 (оригинальный, с сизифа не обновлялся)

Пытаюсь собрать firefox 1.0.2 из src.rpm от федоры (уж что нашел).
Правки зависимостей все сделал, редхатовские патчи отключил.

Проблема в следующем

gmake[3]: Entering directory 
`/home/dry/RPM/BUILD/mozilla/extensions/negotiateauth'
nsNegotiateAuthFactory.cpp
c++ -o nsNegotiateAuthFactory.o -c -DOSTYPE=\"Linux2.4\" 
-DOSARCH=\"Linux\" -DHAVE_DEPENDENT_LIBS -DUSE_GSSAPI  
-I../../dist/include/xpcom -I../../dist/include/string 
-I../../dist/include/necko -I../../dist/include/pref 
-I../../dist/include/negotiateauth -I../../dist/include 
-I/home/dry/RPM/BUILD/mozilla/dist/include/nspr     -I. 
-I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti 
-fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align 
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy 
-Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread 
-pipe  -DNDEBUG -DTRIMMED -pipe -Wall -Os -march=athlon  
-I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../mozilla-config.h 
-Wp,-MD,.deps/nsNegotiateAuthFactory.pp nsNegotiateAuthFactory.cpp
In file included from nsNegotiateAuthFactory.cpp:64:
nsNegotiateAuthGSSAPI.h:74: error: syntax error before `)' token
nsNegotiateAuthGSSAPI.h:63: warning: `class nsNegotiateAuth' only 
defines a private destructor and has no friends
nsNegotiateAuthGSSAPI.h:63: warning: `class nsNegotiateAuth' has virtual 
functions but non-virtual destructor
nsNegotiateAuthGSSAPI.h:76: error: syntax error before `private'
nsNegotiateAuthGSSAPI.h:78: error: 'gss_OID' is used as a type, but is 
not defined as a type.
nsNegotiateAuthGSSAPI.h:81: error: syntax error before `}' token

смотрим что там

#if defined(HAVE_GSSAPI_H)
#include <gssapi.h>
#elif defined(HAVE_GSSAPI_GSSAPI_H)
#include <gssapi/gssapi.h>
#endif

#if defined(HAVE_GSSAPI_GENERIC_H)
#include <gssapi_generic.h>
#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
#include <gssapi/gssapi_generic.h>
#endif

....

/ The nsNegotiateAuth class provides responses for the GSS-API Negotiate 
method
// as specified by Microsoft in draft-brezak-spnego-http-04.txt

class nsNegotiateAuth : public nsIAuthModule
{
public:
    NS_DECL_ISUPPORTS
    NS_DECL_NSIAUTHMODULE

    nsNegotiateAuth();

private:
    ~nsNegotiateAuth() { Reset(); }

    void    Reset();
    gss_OID GetOID() { return mMechOID; };

private:
    gss_ctx_id_t mCtx;
    gss_OID      mMechOID;
    nsCString    mServiceName;
    PRUint32     mServiceFlags;
};

не может найти определения структур из gssapi, которое вероятнее всего 
находится
в gssapi.h, который входит в состав libgssapi в рамках проекта
"NFSv4 for linux 2.6 kernels" 
(http://www.citi.umich.edu/projects/nfsv4/linux/),
Ядро у меня понятное дело 2.4 и никакого libgssapi нет.

хочу обратить внимание, что ни один из #ifdef не активируется, в 
mozilla-config.h  у меня
никаких дефайнов относительно GSSAPI, логично было бы предположить, что 
скрипты
конфигурации должны были бы исключить nsNegotiateAuthGSSAPI.cpp из билда,
однако он пытается компилироваться.

тем не менее у меня нет особого желания копаться с этим дальше, возможно 
кто-то
уже сталкивался с этой проблемой - поделитесь решением или может даже 
уже есть
готовый backport?







Подробная информация о списке рассылки Sisyphus