lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

Problems building 1143 in Solaris 8

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Development
Author Message
cmsmith
Helper


Joined: 15 Feb 2005
Posts: 14

PostPosted: Sun Mar 27, 2005 5:17 am    Post subject: Problems building 1143 in Solaris 8 Reply with quote

Running Solaris 8 with GCC, attempting to build NetMRG from SVN - build 1143.

1) When running configure, I'm getting this:

checking if Net-SNMP needs crypto support... yes
checking if UCD-SNMP needs crypto support... no
checking for CRYPTO_free in -lcrypto... yes
checking for snmp_timeout in -lnetsnmp... yes
./configure: line 6783: syntax error near unexpected token `external'
./configure: line 6783: `AM_GNU_GETTEXT(external)'
make: *** [config.status] Error 2

Commented line 6783 as well as the corresponding line in configure.ac, and I get passed this.

2) What are setenv and unsetenv supposed to do in monitors.cpp? Where should they be defined?

CXX monitors.o
monitors.cpp: In function `void export_params_to_env(DeviceInfo&)':
monitors.cpp:464: error: `setenv' undeclared (first use this function)
monitors.cpp:464: error: (Each undeclared identifier is reported only once for each function it appears in.)
monitors.cpp: In function `void remove_params_from_env(DeviceInfo&)':
monitors.cpp:473: error: `unsetenv' undeclared (first use this function)
make[2]: *** [monitors.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

3) Need -lrt added to LIBS for solaris. Without it, I get undefined symbol for nanosleep. I added it to src/Makefile, but there is probably a better place to put it.

LINK netmrg-gatherer
Undefined first referenced
symbol in file
nanosleep netmrg.o (symbol belongs to implicit dependency /lib/librt.so.1)
ld: fatal: Symbol referencing errors. No output written to netmrg-gatherer
collect2: ld returned 1 exit status
make[2]: *** [netmrg-gatherer] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Back to top
keb
Contributor


Joined: 09 Jul 2003
Posts: 44
Location: Camp Hill, PA, USA

PostPosted: Sun Mar 27, 2005 7:22 am    Post subject: Re: Problems building 1143 in Solaris 8 Reply with quote

cmsmith wrote:
Running Solaris 8 with GCC, attempting to build NetMRG from SVN - build 1143.


Which version of gcc are you using to build netmrg? Also, is this the Intel or Sparc version of Solaris 8?

cmsmith wrote:
1) When running configure, I'm getting this:

checking if Net-SNMP needs crypto support... yes
checking if UCD-SNMP needs crypto support... no
checking for CRYPTO_free in -lcrypto... yes
checking for snmp_timeout in -lnetsnmp... yes
./configure: line 6783: syntax error near unexpected token `external'
./configure: line 6783: `AM_GNU_GETTEXT(external)'
make: *** [config.status] Error 2

Commented line 6783 as well as the corresponding line in configure.ac, and I get passed this.


Do you have gettext 0.14.1 installed? When you run configure, does it run autoconf to rebuild the configure script before continuing? Sometimes the autotools can be picky with timestamps of certain files. If you make changes (or simply "touch $file") it will try to rebuild the scripts.

cmsmith wrote:
2) What are setenv and unsetenv supposed to do in monitors.cpp? Where should they be defined?


These are to provide parameters to external scripts without passing each param in as an argument. I believe this was added in response to a bug report. These two calls should be defined in the stdlib.h system header.

cmsmith wrote:
3) Need -lrt added to LIBS for solaris. Without it, I get undefined symbol for nanosleep. I added it to src/Makefile, but there is probably a better place to put it.


Feel free to submit a bug report at bugs.netmrg.net with this information. We should be able to resolve this in the next release (0.19).

-Kevin
Back to top
cmsmith
Helper


Joined: 15 Feb 2005
Posts: 14

PostPosted: Sun Mar 27, 2005 6:26 pm    Post subject: Re: Problems building 1143 in Solaris 8 Reply with quote

keb wrote:
Which version of gcc are you using to build netmrg? Also, is this the Intel or Sparc version of Solaris 8?


Solaris 8 on SPARC - GCC 3.4.2, packaged by sunfreeware.com

keb wrote:
Do you have gettext 0.14.1 installed? When you run configure, does it run autoconf to rebuild the configure script before continuing? Sometimes the autotools can be picky with timestamps of certain files. If you make changes (or simply "touch $file") it will try to rebuild the scripts.


I did not have gettext 0.14.1. It was running aclocal, automake, and autoconf whenever I run configure. I think it was because I commented the AM_GETTEXT line from configure.ac. Installed gettext and uncommented the line and it cleared up this problem.

keb wrote:
Feel free to submit a bug report at bugs.netmrg.net with this information. We should be able to resolve this in the next release (0.19).


Will do.
Back to top
cmsmith
Helper


Joined: 15 Feb 2005
Posts: 14

PostPosted: Sun Mar 27, 2005 6:38 pm    Post subject: Re: Problems building 1143 in Solaris 8 Reply with quote

keb wrote:
These are to provide parameters to external scripts without passing each param in as an argument. I believe this was added in response to a bug report. These two calls should be defined in the stdlib.h system header.


Apparently these are not defined on solaris. Found this on a google search: http://lists.gnu.org/archive/html/bug-coreutils/2004-11/msg00019.html
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Development All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group