Porting NET-SNMP (UCD-SNMP) to QNX4

I am attempting to port net-snmp v4.2 (formerly ucd-snmp) to QNX 4. I
have previously
installed it successfully under FreeBSD and extended the agent without a

problem. In fact, I’m very happy with it and now am trying to build it
under QNX. Unfortunately, I’m running into a lot of problems.

Before I downloaded net-snmp, I installed gcc/egcs 2.91.66 and autoconf
2.13. I downloaded the latest config.sub and config.guess from
ftp.gnu.org, which appear to contain support for QNX4. I then installed

the net-snmp package, copied the config.sub and config.guess files into
the project directory, ran autoconf and then configure. When I view the

config.log file I see that there are lots of failures (e.g. can’t find
libraries, undefined symbols, etc.). I’ve never used autoconf before so

I’m a little confused by the output, although I have read the
introductory info documentation.

Before I get into too many more specifics, I was wondering if anyone had

already ported this to QNX4 already and could give me hope and help save

me hours of aggravation.

Thanks,

Carlos

Carlos Ramirez
Senior Software Engineer
WorldGate Communications, Inc.
http://www.wgate.com

“Carlos Ramirez” <cramirez@wgate.com> wrote in message
news:3A8ACC82.3A0D7CA@wgate.com

I am attempting to port net-snmp v4.2 (formerly ucd-snmp) to QNX 4. I
have previously
installed it successfully under FreeBSD and extended the agent without a

problem. In fact, I’m very happy with it and now am trying to build it
under QNX. Unfortunately, I’m running into a lot of problems.

Before I downloaded net-snmp, I installed gcc/egcs 2.91.66

Does that mean that you have ported gcc 2.91.66?? If not I was
told that porting gcc is a major effort because of the libraries and header
files.
You might want to look at Jean-Claude Michot port of version 2.8.1
at www.teaser.fr/~jcmichot

and autoconf
2.13. I downloaded the latest config.sub and config.guess from
ftp.gnu.org, which appear to contain support for QNX4.

I’m surprised, wouldn’t that be for QNX6!

I then installed
the net-snmp package, copied the config.sub and config.guess files into
the project directory, ran autoconf and then configure. When I view the
config.log file I see that there are lots of failures (e.g. can’t find
libraries, undefined symbols, etc.). I’ve never used autoconf before so
I’m a little confused by the output, although I have read the
introductory info documentation.

Before I get into too many more specifics, I was wondering if anyone had
already ported this to QNX4 already and could give me hope and help save
me hours of aggravation.

Just 1 hour ago I porte snmp++ to QNX6, took me 5 minutes to get it to
compile (haven’t run it yet thouhg)

Thanks,

Carlos

Carlos Ramirez
Senior Software Engineer
WorldGate Communications, Inc.
http://www.wgate.com

Does that mean that you have ported gcc 2.91.66?? If not I was
told that porting gcc is a major effort because of the libraries and header
files.
You might want to look at Jean-Claude Michot port of version 2.8.1
at > www.teaser.fr/~jcmichot

Actually, Jean-Claude Michot’s port of 2.8.1 is what I used. I got it from
ftp://ftp.freesoftware.com/pub/qnx/Qnx4/gcc/index.html. I said gcc 2.91.66
because that’s what is reported when I type “gcc -dumpversion” but the doc says
version 2.8.1. It seems to work ok, I’ve been able to compile simple programs
without a problem.

and autoconf
2.13. I downloaded the latest config.sub and config.guess from
ftp.gnu.org, which appear to contain support for QNX4.

I’m surprised, wouldn’t that be for QNX6!

It appears to me to support QNX4. ‘configure’ seems to guess at least that
much right.

Just 1 hour ago I porte snmp++ to QNX6, took me 5 minutes to get it to
compile (haven’t run it yet thouhg)

Unfortunately, I’m stuck with QNX4 :frowning: