The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > SuSE
.
google unix.com



SuSE SUSE Linux is a major operating system. The developer rights are owned by Novell, Inc.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
porting solaris to BSD yngwie High Level Programming 1 07-10-2007 06:08 PM
porting areef4u UNIX for Advanced & Expert Users 10 08-03-2006 09:32 AM
Porting tools veeru554 High Level Programming 5 12-09-2005 01:47 PM
HP-UX to linux porting arunprakash UNIX for Dummies Questions & Answers 0 02-21-2005 05:49 AM
Porting C codes from HP-UX to AIX Sinbad AIX 0 01-27-2005 12:48 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 01-01-2009
skaushal.schip skaushal.schip is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 6
64 bit Porting Problem !!!

Dear All,

I am trying to build my code (currently functioning on 32bit) on 64 bit SUSE machine.
I am getting following error:

warning: initializer element is not computable at load time
dau.gss.c:275: error: initializer element is not constant
dau.gss.c:275: error: (near initialization for `type_hs.utility.n')

in dau.gss.c the content is :

line no. Code

...
...
272 static DH_T_HS ca_type_hs =
273 {0, DH_B_OID, 0, 0, ASN1_OID, 0, 3, 0, 0x55, 4, 37};
274 static DH_T_HS type_hs =
275 {(UINT32)&ca_type_hs, DH_B_OID, 0, 0, ASN1_OID, 0, 3, 0, 0x55, 4, 36};
...
...

Following are some definitions related to the above mentioned code:

typedef unsigned int UINT32;
typedef unsigned char OCTET;
typedef unsigned short UINT16;

typedef struct dh_t_hs {
union {
UINT32 n;
struct dh_t_hs *p;
} utility;

OCTET cntrl;
OCTET flags;
UINT16 use;
UINT16 id2;
UINT16 use2;
UINT32 count;
UINT32 count_lmt;

union {
OCTET id [4];
OCTET prime [4];
UINT32 list [1];
struct dh_t_hs *construct [1];
} content;
} DH_T_HS, *DH_P_HS;


If I make the "n" variable unsigned long (in union "utility" within structure dh_t_hs) and if in "type_hs" variable (@ line 275 in the file dau.gss.c) I do "(unsigned long)&ca_type_hs", I dont get the above mentioned error.

But the problem is that I cant make the "n" variable unsigned long (in union "utility" within structure "dh_t_hs") as it used widely in the project as an integer only.

Could anybody please suggest some solution for the same?

Thanks in advance.

Regards.
Thanks in advance.

Regards,
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0