Project

General

Profile

Actions

Bug #2429

closed

powerpc-linux-gcc compiling openssl error

Added by doggou (lin fu) over 14 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
ruby -v:
unknown
[ruby-core:27023]

Description

=begin
powerpc-linux-gcc -I. -I../../.ext/include/powerpc-linux -I../.././include -I../.././ext/openssl -DRUBY_EXTCONF_H="extconf.h" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -Wall -Wno-parentheses -fPIC -o ossl_x509ext.o -c ossl_x509ext.c
ossl_x509ext.c: In function ossl_x509ext_initialize': ossl_x509ext.c:285: warning: passing arg 2 of d2i_X509_EXTENSION' from incompatible pointer type
ossl_x509ext.c: In function ossl_x509ext_to_der': ossl_x509ext.c:418: error: structure has no member named ptr'
ossl_x509ext.c:418: error: structure has no member named `len'
make: *** [ossl_x509ext.o] 错误 1
=end

Actions #1

Updated by doggou (lin fu) over 14 years ago

=begin
struct RString {
struct RBasic basic;
union {
struct {
long len;
char *ptr;
union {
long capa;
VALUE shared;
} aux;
} heap;
char ary[RSTRING_EMBED_LEN_MAX + 1];
} as;
};
#define RSTRING_LEN(str)
(!(RBASIC(str)->flags & RSTRING_NOEMBED) ?
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) &
(RSTRING_EMBED_LEN_MASK >> RSTRING_EMBED_LEN_SHIFT)) :
RSTRING(str)->as.heap.len) //error: structure has no member named len' #define RSTRING_PTR(str) \ (!(RBASIC(str)->flags & RSTRING_NOEMBED) ? \ RSTRING(str)->as.ary : \ RSTRING(str)->as.heap.ptr) //error: structure has no member named ptr'
=end

Actions #2

Updated by nobu (Nobuyoshi Nakada) over 14 years ago

  • Category set to ext
  • ruby -v set to unknown

=begin
What's the revision of the compiling target?
=end

Actions #3

Updated by doggou (lin fu) over 14 years ago

=begin
ruby 1.9.1p243
revision 24175
ruby -v:
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]

=end

Actions #4

Updated by nobu (Nobuyoshi Nakada) over 14 years ago

=begin
Hi,

At Fri, 4 Dec 2009 12:56:35 +0900,
lin fu wrote in [ruby-core:27023]:

powerpc-linux-gcc -I. -I../../.ext/include/powerpc-linux -I../.././include -I../.././ext/openssl -DRUBY_EXTCONF_H="extconf.h" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -Wall -Wno-parentheses -fPIC -o ossl_x509ext.o -c ossl_x509ext.c
ossl_x509ext.c: In function ossl_x509ext_initialize': ossl_x509ext.c:285: warning: passing arg 2 of d2i_X509_EXTENSION' from incompatible pointer type
ossl_x509ext.c: In function ossl_x509ext_to_der': ossl_x509ext.c:418: error: structure has no member named ptr'
ossl_x509ext.c:418: error: structure has no member named `len'

Other lines before it have also RSTRING_LEN and RSTRING_PTR,
but no error occurs there?

Can't you show the preprocessed result?

--
Nobu Nakada

=end

Actions #5

Updated by doggou (lin fu) over 14 years ago

=begin
i'm sorry,The cause of this error is my system environmental issues
=end

Actions #6

Updated by naruse (Yui NARUSE) over 14 years ago

  • Status changed from Open to Closed

=begin

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0