mh-6.8.3 nad Solaris 2.3 (uip/mhn.c)

mh-6.8.3 nad Solaris 2.3 (uip/mhn.c)

Post by Kenji Okamo » Fri, 09 Dec 1994 20:33:56



I'm having strange error messages to compile mh-6.8.3 on Solaris 2.3.
It's mhn.c under uip directory.  I have no ther problem to compile mh-6.8.3.

When I compile mhn.c like as
        make mhn
under uip directory. gcc-2.6.2 says

        mhn.c: 1022: warning: no semicolon at end of struct or union
        mhn.c: 1022: parse error before `.'
        mhn.c: 1024: parse error before `}'.

However, the source codes from line 1022 to 1026 are as follows:

1022:   struct str2init {
1023:           char    *si_key;
1024:           int     si_value;
1025:           int     (*si_init) ();
1026:   };

I can't find no problems in those source lines.  Actually, I did compile
this successfully on Solaris 2.1 for X86 by gcc-2.5.8 :-)

Does anyone have solved this problem?

Kenji
------------------------------------------------------------------------------

 ______  __ |__   |  Universiy of Osaka Prefecture, Dept. of Earth Science,
|__\/__|   /|\    |  Gakuen-cho 1 - 1, Sakai, Osaka 593, Japan

------------------------------------------------------------------------------

 
 
 

mh-6.8.3 nad Solaris 2.3 (uip/mhn.c)

Post by Casper H.S. D » Fri, 09 Dec 1994 23:03:49



>I'm having strange error messages to compile mh-6.8.3 on Solaris 2.3.
>It's mhn.c under uip directory.  I have no ther problem to compile mh-6.8.3.

add #undef si_value before this definition:

Quote:>1022:       struct str2init {
>1023:               char    *si_key;
>1024:               int     si_value;
>1025:               int     (*si_init) ();
>1026:       };

It's in the latest MH FAQ.

Casper

 
 
 

mh-6.8.3 nad Solaris 2.3 (uip/mhn.c)

Post by Frederic Cor » Fri, 09 Dec 1994 22:46:59


Quote:>>Kenji Okamoto Writes :
>>When I compile mhn.c like as
>>        make mhn
>>under uip directory. gcc-2.6.2 says

>>        mhn.c: 1022: warning: no semicolon at end of struct or union
>>        mhn.c: 1022: parse error before `.'
>>        mhn.c: 1024: parse error before `}'.
>>However, the source codes from line 1022 to 1026 are as follows:
>>1022:   struct str2init {
>>1023:           char    *si_key;
>>1024:           int     si_value;
>>1025:           int     (*si_init) ();
>>1026:   };
>>I can't find no problems in those source lines.  Actually, I did compile

))this successfully on Solaris 2.1 for X86 by gcc-2.5.8 :-)

si_value is already defined as a macro in /usr/include/sys/siginfo.h !!!!
This means that perhaps mh has never been compiled on a solaris....

you can change this variable as :

struct str2init {
    char   *si_key;
    int     si_value_f;
    int   (*si_init) ();

Quote:};

in all the file.

The compil is ok but I have never succeed to start mh on my solaris ....

If you are sucessfull, tell it to me !

FC
--
***************************************************************

GSI-ERLI                        
1 Place des Marseillais               tel: 33 (1) 48 93 81 21
94227 Charenton Le Pont               fax: 33 (1) 43 75 79 79
FRANCE
***************************************************************

 
 
 

mh-6.8.3 nad Solaris 2.3 (uip/mhn.c)

Post by Kenji Okamo » Sat, 10 Dec 1994 20:57:57


Hi, Kenji again,



  | si_value is already defined as a macro in /usr/include/sys/siginfo.h !!!!
  | This means that perhaps mh has never been compiled on a solaris....
  |
  | you can change this variable as :
  |
  | struct str2init {
  |     char   *si_key;
  |     int         si_value_f;
  |     int   (*si_init) ();
  | };
  | in all the file.

Thanks, Frederic.  I also found famous Casper's comment on this problem.
Sorry, Casper, I should have been more carefull to search previous articles.
His suggestion was just #undef si_value before the struct definition.

  | The compil is ok but I have never succeed to start mh on my solaris ....
  |
  | If you are sucessfull, tell it to me !

Yes, I'm using MH now on my Solaris 2.3.

Kenji
------------------------------------------------------------------------------

 ______  __ |__   |  Universiy of Osaka Prefecture, Dept. of Earth Science,
|__\/__|   /|\    |  Gakuen-cho 1 - 1, Sakai, Osaka 593, Japan

------------------------------------------------------------------------------

 
 
 

1. Compiling mh-6.8.3 on Solaris 2.4

Hi,

Does someone know how to compile mh-6.8.3 under Solaris 2.4.
I use the SUNWspro cc but it's always saying me :

ld: fatal: file xali: unknown type, unable to process using elf(3E) libraries
ld: fatal: File processing errors.  No output written to ali

With /usr/ucb/cc and gcc it's the same.

--
% VASSELLERIE Pierre                                                          *
* DASGAL,Observatoire de Paris-Meudon,5,Place J. Janssen,F-92195 Meudon Cedex %
% Tel: (33 1) 45 07 78 49  - Fax: (33 1) 45 07 78 78                          *

2. error 301 and final "/"

3. lock-problem with mh-6.8.3

4. htdig on mandriva 2008.0 "host not found"

5. mh-6.8.3, xmail

6. run fvwm95 before setup xf86config?

7. How to compile MH-6.8.3??

8. rename files in numerical order

9. Anyone get mh-6.8.3 to compile?

10. Configure/Compiling mh-6.8.3 on SCO ODT 2

11. MH 6.8.3 on Solaris 2.3 with gcc

12. MH 6.8.3 under Solaris 2.3

13. MH for Solaris 2.3