[GE dev] ubuntu compilation error

hintak htl10 at users.sourceforge.net
Fri May 28 13:00:21 BST 2010


    [ The following text is in the "utf-8" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some characters may be displayed incorrectly. ]

The missing headers is part of the libXp (the Xprint extension). Ubuntu probably has it named libXp-dev . 

--- On Fri, 28/5/10, andre <Andre.Alefeld at sun.com> wrote:

> Hi,
> 
> maybe you can try the following patch, this depends on the
> openssl 
> version you are using. One additional remark when building
> qmon assure 
> to use openmotif and not lesstif.
> You need the X11 devel packages installed which might be
> not the case on 
> your system.
> 
> Andre
> 
> ---------------------------------------------------------------------------------------------
> diff -r1.79 cl_ssl_framework.c
> 1860c1860
> < cl_com_ssl_func__SSL_get_fd = SSL_get_fd;
> ---
>  > cl_com_ssl_func__SSL_get_fd = (int (*)(const
> SSL*s))SSL_get_fd;
> 1882,1887c1882,1887
> < cl_com_ssl_func__PEM_ASN1_read_bio =
> PEM_ASN1_read_bio;
> < cl_com_ssl_func__d2i_X509 = d2i_X509;
> < cl_com_ssl_func__d2i_PKCS8_PRIV_KEY_INFO =
> d2i_PKCS8_PRIV_KEY_INFO;
> < cl_com_ssl_func__d2i_PrivateKey = d2i_PrivateKey;
> < cl_com_ssl_func__d2i_AutoPrivateKey =
> d2i_AutoPrivateKey;
> < cl_com_ssl_func__d2i_PKCS8PrivateKey_bio =
> d2i_PKCS8PrivateKey_bio;
> ---
>  > cl_com_ssl_func__PEM_ASN1_read_bio = (void *(*)(void
> *(*d2i)(),const 
> char *name,BIO *bp,void **x, pem_password_cb *cb, void 
> *u))PEM_ASN1_read_bio;
>  > cl_com_ssl_func__d2i_X509 = (X509* (*)(X509 **a,
> const unsigned char 
> **pp, long length))d2i_X509;
>  > cl_com_ssl_func__d2i_PKCS8_PRIV_KEY_INFO =
> (PKCS8_PRIV_KEY_INFO* 
> (*)(PKCS8_PRIV_KEY_INFO **a, const unsigned char **pp, long
> 
> length))d2i_PKCS8_PRIV_KEY_INFO;
>  > cl_com_ssl_func__d2i_PrivateKey = (EVP_PKEY* (*)(int
> type, EVP_PKEY 
> **a, const unsigned char **pp, long
> length))d2i_PrivateKey;
>  > cl_com_ssl_func__d2i_AutoPrivateKey = (EVP_PKEY*
> (*)(EVP_PKEY **a, 
> const unsigned char **pp, long length))d2i_AutoPrivateKey;
>  > cl_com_ssl_func__d2i_PKCS8PrivateKey_bio = (EVP_PKEY*
> (*)(BIO *bp, 
> EVP_PKEY **x, pem_password_cb *cb, void
> *u))d2i_PKCS8PrivateKey_bio;
> 1889c1889
> < cl_com_ssl_func__ASN1_item_d2i = ASN1_item_d2i;
> ---
>  > cl_com_ssl_func__ASN1_item_d2i = (ASN1_VALUE*
> (*)(ASN1_VALUE **pval, 
> const unsigned char **in, long len, const ASN1_ITEM
> *it))ASN1_item_d2i;
> 1892c1892
> < cl_com_ssl_func__PEM_ASN1_read = PEM_ASN1_read;
> ---
>  > cl_com_ssl_func__PEM_ASN1_read = (void *(*)(void
> *(*d2i)(),const char 
> *name,FILE *fp,void **x, pem_password_cb *cb, void
> *u))PEM_ASN1_read;
> 1895,1896c1895,1896
> < cl_com_ssl_func__d2i_X509_CRL = d2i_X509_CRL;
> < cl_com_ssl_func__X509_STORE_set_flags =
> X509_STORE_set_flags;
> ---
>  > cl_com_ssl_func__d2i_X509_CRL = (X509_CRL*
> (*)(X509_CRL **a, const 
> unsigned char **pp, long length))d2i_X509_CRL;
>  > cl_com_ssl_func__X509_STORE_set_flags = (int
> (*)(X509_STORE *ctx, 
> unsigned long flags))X509_STORE_set_flags;
> 
> 
> On 05/28/10 13:12, unknown_coder wrote:
> > Hi, everyone.
> > my platform is Ubuntu 9.10. I am trying to compile SGE
> source, but when I do ./aimk a lot of errors are coming up.
> > This is an example:
> >
> > ./aimk -only-core -no-jni
> >
> > cc1: warnings being treated as errors
> > ../libs/comm/cl_ssl_framework.c:238: warning: type
> defaults to ?int? in declaration of ?STACK?
> > ../libs/comm/cl_ssl_framework.c:238: error: expected
> ?;?, ?,? or ?)? before ?*? token
> > ../libs/comm/cl_ssl_framework.c:239: warning: type
> defaults to ?int? in declaration of ?STACK?
> > ../libs/comm/cl_ssl_framework.c:239: error: expected
> ?;?, ?,? or ?)? before ?*? token
> > ../libs/comm/cl_ssl_framework.c: In function
> ?cl_com_ssl_destroy_symbol_table?:
> > ../libs/comm/cl_ssl_framework.c:996: error:
> ?cl_com_ssl_func__sk_num? undeclared (first use in this
> function)
> > ../libs/comm/cl_ssl_framework.c:996: error: (Each
> undeclared identifier is reported only once
> > ../libs/comm/cl_ssl_framework.c:996: error: for each
> function it appears in.)
> > ../libs/comm/cl_ssl_framework.c:997: error:
> ?cl_com_ssl_func__sk_value? undeclared (first use in
> this function)
> > ../libs/comm/cl_ssl_framework.c: In function
> ?cl_com_ssl_build_symbol_table?:
> > ../libs/comm/cl_ssl_framework.c:1703: error:
> ?cl_com_ssl_func__sk_num? undeclared (first use in this
> function)
> > ../libs/comm/cl_ssl_framework.c:1703: warning: type
> defaults to ?int? in declaration of ?STACK?
> > ../libs/comm/cl_ssl_framework.c:1703: error: expected
> ?;?, ?,? or ?)? before ?*? token
> > ../libs/comm/cl_ssl_framework.c:1703: error: expected
> ?;? before ?dlsym?
> > ../libs/comm/cl_ssl_framework.c:1710: error:
> ?cl_com_ssl_func__sk_value? undeclared (first use in
> this function)
> > ../libs/comm/cl_ssl_framework.c:1710: warning: type
> defaults to ?int? in declaration of ?STACK?
> > ../libs/comm/cl_ssl_framework.c:1710: error: expected
> ?;?, ?,? or ?)? before ?*? token
> > ../libs/comm/cl_ssl_framework.c:1710: error: expected
> ?;? before ?dlsym?
> > make: *** [cl_ssl_framework.o] Error 1
> > not done
> >
> > I can let it go, because my goal is to compile qmon
> only (at least qmon). So, when I run
> > ./aimk -only-qmon
> > I get the following
> >
> > Building in directory:
> /home/alexander/gridengine/source
> > making in LINUX86_26/ for LINUX86 at host
> alexander-desktop
> > _________Q_M_O_N__________________________
> > gcc -c -DSGE_ARCH_STRING=\"lx26-x86\" -O3 -Wall
> -Werror -Wstrict-prototypes -DUSE_POLL -DLINUX -DLINUX86
> -DLINUX86_26 -D_GNU_SOURCE -DGETHOSTBYNAME_R6
> -DGETHOSTBYADDR_R8  -DLOAD_OPENSSL
> -I/usr/local/BerkeleyDB.4.8/include//usr/local/BerkeleyDB.4.8/include
> -DTARGET_32BIT  -DSPOOLING_dynamic -DSECURE
> -I/usr/local/ssl/include -Wno-strict-aliasing
> -D_FILE_OFFSET_BITS=64 -DCOMPILE_DC
> -D__SGE_COMPILE_WITH_GETTEXT__ 
> -D__SGE_NO_USERMAPPING__ -I../Xmt310 -Wno-strict-prototypes
> -Wno-error  -DHAVE_MEMMOVE -DXMT_HAS_STRERROR
> -I../3rdparty/qmon/Xmt310 -I../3rdparty/qmon/Xbae
> -I../3rdparty/qmon/iconlist -I../3rdparty/qmon/ltree
> -I../3rdparty/qmon/outline -I../3rdparty/qmon/rowcol
> -I../3rdparty/qmon/spinbox -I../clients/qmon
> -I../3rdparty/qmon/tab -I/usr/X11R6/include -fPIC
> ../Xmt310/Xmt/All.c
> > In file included from ../Xmt310/Xmt/Xmt.h:56,
> >               
>    from ../Xmt310/Xmt/All.c:23:
> > /usr/include/Xm/Xm.h:59:34: error:
> X11/extensions/Print.h: No such file or directory
> > In file included from ../Xmt310/Xmt/Xmt.h:56,
> >               
>    from ../Xmt310/Xmt/All.c:23:
> > /usr/include/Xm/Xm.h:827: error: expected
> specifier-qualifier-list before ?XPContext?
> > make: *** [All.o] Error 1
> > not done
> >
> > I tried to follow steps form "Instruction of how to
> build SGE 6.2u3 on CentOS 5.3" of pine_ml, but the problem
> is still alive.
> > If somebody built it earlier or had a similar problem,
> please give me advise or send you aimk and aimk.site files
> for studying. My e-mail is an88sapr at rmbler.ru
> >
> > There are the aimk and the aimk.site from my source
> directory attached below.
> >
> >
> ------------------------------------------------------
> > http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=39&dsMessageId=259326
> >
> > To unsubscribe from this discussion, e-mail: [dev-unsubscribe at gridengine.sunsource.net].
> 
> -- 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - -
> Andre Alefeld           
>     Phone: ++49 (0)941 3075-255
> Software Engineering     
>    Fax:   ++49 (0)941
> 3075-222
> Sun Microsystems GmbH
> Dr.-Leo-Ritter-Str. 7     
>    mailto: andre.alefeld at sun.com
> D-93049 Regensburg       
>    http://www.sun.com/gridware
> 
> ------------------------------------------------------
> http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=39&dsMessageId=259336
> 
> To unsubscribe from this discussion, e-mail: [dev-unsubscribe at gridengine.sunsource.net].
>

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=39&dsMessageId=259337

To unsubscribe from this discussion, e-mail: [dev-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list