Installing systemC 2.2.0 on Suse 11.0

Hi,
Last week I installed OSuse 11.0 in my laptop. everything is working fine.
I want to use systemC 2.2.0 so I downloaded the .tar file from the Home - Open SystemC Initiative (OSCI).
I followed the installation instruction and during gmake some errors are generated. It seems that the version of the gcc is important (from what I’ve read in some forums).
I also found a rpm for OSuse 10.3 of the systemC 2.2.0 which contains a fix to support gcc 4.3.x ( installing a systemc rpm). I’m getting the same output that Srinivas Boppu got.
Also the package is not installed: rpm -q systemc -> "
package systemc is not installed”.

– HELP !!!.

Does anyone have any suggestion?

Thanks
A.Viteri

On Wed, 13 Aug 2008 13:26:03 GMT
aviteriv <aviteriv@no-mx.forums.opensuse.org> wrote:

>
> Hi,
> Last week I installed OSuse 11.0 in my laptop. everything is working
> fine.
> I want to use systemC 2.2.0 so I downloaded the .tar file from the
> ‘Home - Open SystemC Initiative (OSCI)’ (http://www.systemc.org).
> I followed the installation instruction and during gmake some errors
> are generated. It seems that the version of the gcc is important (from
> what I’ve read in some forums).
> I also found a rpm for OSuse 10.3 of the systemC 2.2.0 which contains a
> fix to support gcc 4.3.x ( ‘installing a systemc rpm’
> (http://tinyurl.com/5fwbdq)). I’m getting the same output that Srinivas
> Boppu got.
> Also the package is not installed: rpm -q systemc → "
> “-package systemc is not installed-”.
>
> – HELP !!!.
>
> Does anyone have any suggestion?
>
> Thanks
> A.Viteri
>
>

I signed up at systemc.org… tight-knit community.

<minor rant about website usability and ease of was here>

Wait! I found the tgz file… it’s not that easy to find. But it’s there.

OMG! The license agreement! My eyes!

Let’s see…

tar xjf systemc-2.2.0.tgz
cd systemc-2.2.0
…/configure

complaints about missing missing and stuff, no show-stoppers though. Yes,
that last sentence DOES make sense!

make

nice! mostly warnings about needing parens around stuff, with -Wall too!

ok, 2 errors:
‘getenv’ not in ‘std’ sc_utils_ids.cpp:110
‘strcmp’ not declared this scope, sc_utils_ids.cpp:111
… easy fix

added:

#include <cstdlib>
#include <cstring>

to file src/sysc/util/sc_utils_ids.cpp, at line 62, following existing
#include “sysc/utils/sc_report.h” statement

reran make

compiled without error.

All fixed!!

Loni


L R Nix
lornix@lornix.com