Hello everyone,
I am having trouble with the make command installing iftop on Solaris 9. I have installed libpcap, and ncurses. The configure command ran fine, and I also installed in promisicus mode. Below is the error I am getting when I run the make command.
ld: fatal: Symbol referencing errors. No output written to iftop collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `iftop' Current working directory /opt/iftop/iftop-0.16 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /opt/iftop/iftop-0.16 *** Error code 1 make: Fatal error: Command failed for target `all'
Any assistance would be greatly appreciated.
Tim Clashin
On Wed, Mar 24, 2004 at 01:58:24PM -0600, Tim.Clashin@calcucare.com wrote:
Hello everyone,
I am having trouble with the make command installing iftop on Solaris 9. I have installed libpcap, and ncurses. The configure command ran fine, and I also installed in promisicus mode. Below is the error I am getting when I run the make command.
ld: fatal: Symbol referencing errors. No output written to iftop collect2: ld returned 1 exit status
-- does it not list the symbols for which there were referencing errors?
I don't see the symbols, not much of a compling guru to be honest with you. Below is a tail of the make running.
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -g -O2 -c `test -f 'vector.c' || echo './'`vector.c gcc -g -O2 -L/usr/local/lib -o iftop addr_hash.o edline.o hash.o iftop.o ns_hash.o options.o resolver.o screenfilter.o serv_hash.o sorted_ ist.o threadprof.o ui.o util.o addrs_ioctl.o addrs_dlpi.o dlcommon.o stringmap.o cfgfile.o vector.o -lpcap -lnsl -lm -lsocket -lncurses -lp hread Undefined first referenced symbol in file initscr32 ui.o acs32map ui.o w32addch ui.o ld: fatal: Symbol referencing errors. No output written to iftop collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `iftop' Current working directory /opt/iftop/iftop-0.16 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /opt/iftop/iftop-0.16 *** Error code 1 make: Fatal error: Command failed for target `all'
Due note, I did read one of your users questions regarding iftop having problems installing on solaris 8. I did change the options.c file and changed the variable "u_int32_t" to "unsigned int"
If their is something else I should be looking for, please let me know. Thanks again for your help.
Tim Clashin
Chris Lightfoot chris@ex-parrot.com 03/24/2004 02:02 PM
To Tim.Clashin@calcucare.com cc iftop-users@lists.beasts.org Subject Re: [Iftop-users] Help
On Wed, Mar 24, 2004 at 01:58:24PM -0600, Tim.Clashin@calcucare.com wrote:
Hello everyone,
I am having trouble with the make command installing iftop on Solaris 9.
I
have installed libpcap, and ncurses. The configure command ran fine,
and
I also installed in promisicus mode. Below is the error I am getting
when
I run the make command.
ld: fatal: Symbol referencing errors. No output written to iftop collect2: ld returned 1 exit status
-- does it not list the symbols for which there were referencing errors?
On Wed, Mar 24, 2004 at 02:08:23PM -0600, Tim.Clashin@calcucare.com wrote:
I don't see the symbols, not much of a compling guru to be honest with you. Below is a tail of the make running.
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -g -O2 -c `test -f 'vector.c' || echo './'`vector.c gcc -g -O2 -L/usr/local/lib -o iftop addr_hash.o edline.o hash.o iftop.o ns_hash.o options.o resolver.o screenfilter.o serv_hash.o sorted_ ist.o threadprof.o ui.o util.o addrs_ioctl.o addrs_dlpi.o dlcommon.o stringmap.o cfgfile.o vector.o -lpcap -lnsl -lm -lsocket -lncurses -lp hread Undefined first referenced symbol in file initscr32 ui.o acs32map ui.o w32addch ui.o ld: fatal: Symbol referencing errors. No output written to iftop collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `iftop' Current working directory /opt/iftop/iftop-0.16 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /opt/iftop/iftop-0.16 *** Error code 1 make: Fatal error: Command failed for target `all'
hmm. The functions it can't find are parts of ncurses, but from the options it looks like you've got it linking against the right library. Which version of ncurses have you got on that machine? Where is it installed?
I installed ncurses5.4, and used the default install in /usr/local.
Thanks for your assistance,
Tim Clashin
Chris Lightfoot chris@ex-parrot.com 03/24/2004 02:16 PM
To Tim.Clashin@calcucare.com cc iftop-users@lists.beasts.org Subject Re: [Iftop-users] Help
On Wed, Mar 24, 2004 at 02:08:23PM -0600, Tim.Clashin@calcucare.com wrote:
I don't see the symbols, not much of a compling guru to be honest with you. Below is a tail of the make running.
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -g -O2 -c `test
-f 'vector.c' || echo './'`vector.c gcc -g -O2 -L/usr/local/lib -o iftop addr_hash.o edline.o hash.o iftop.o ns_hash.o options.o resolver.o screenfilter.o serv_hash.o
sorted_
ist.o threadprof.o ui.o util.o addrs_ioctl.o addrs_dlpi.o dlcommon.o stringmap.o cfgfile.o vector.o -lpcap -lnsl -lm -lsocket -lncurses
-lp
hread Undefined first referenced symbol in file initscr32 ui.o acs32map ui.o w32addch ui.o ld: fatal: Symbol referencing errors. No output written to iftop collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `iftop' Current working directory /opt/iftop/iftop-0.16 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /opt/iftop/iftop-0.16 *** Error code 1 make: Fatal error: Command failed for target `all'
hmm. The functions it can't find are parts of ncurses, but from the options it looks like you've got it linking against the right library. Which version of ncurses have you got on that machine? Where is it installed?
On Wed, Mar 24, 2004 at 02:19:15PM -0600, Tim.Clashin@calcucare.com wrote:
I installed ncurses5.4, and used the default install in /usr/local.
Thanks for your assistance,
-- hmm. I'm confused. When I said that they were functions from ncurses, I was wrong -- those don't have the `32's in them. Can you do,
strings /usr/local/lib/libncurses.a | grep initscr
and tell me what that gives?
Here's the output you requested.
strings /usr/local/lib/libncurses.a | grep initscr
initscr lib_initscr.o/ 1080143147 0 1 100644 1568 ` lib_initscr.c initscr
Tim Clashin
Chris Lightfoot chris@ex-parrot.com 03/24/2004 02:24 PM
To Tim.Clashin@calcucare.com cc iftop-users@lists.beasts.org Subject Re: [Iftop-users] Help
On Wed, Mar 24, 2004 at 02:19:15PM -0600, Tim.Clashin@calcucare.com wrote:
I installed ncurses5.4, and used the default install in /usr/local.
Thanks for your assistance,
-- hmm. I'm confused. When I said that they were functions from ncurses, I was wrong -- those don't have the `32's in them. Can you do,
strings /usr/local/lib/libncurses.a | grep initscr
and tell me what that gives?
On Wed, Mar 24, 2004 at 02:08:23PM -0600, Tim.Clashin@calcucare.com wrote:
I don't see the symbols, not much of a compling guru to be honest with you. Below is a tail of the make running.
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -g -O2 -c `test -f 'vector.c' || echo './'`vector.c gcc -g -O2 -L/usr/local/lib -o iftop addr_hash.o edline.o hash.o iftop.o ns_hash.o options.o resolver.o screenfilter.o serv_hash.o sorted_ ist.o threadprof.o ui.o util.o addrs_ioctl.o addrs_dlpi.o dlcommon.o stringmap.o cfgfile.o vector.o -lpcap -lnsl -lm -lsocket -lncurses -lp hread Undefined first referenced symbol in file initscr32 ui.o acs32map ui.o w32addch ui.o ld: fatal: Symbol referencing errors. No output written to iftop collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `iftop' Current working directory /opt/iftop/iftop-0.16 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /opt/iftop/iftop-0.16 *** Error code 1 make: Fatal error: Command failed for target `all'
Due note, I did read one of your users questions regarding iftop having problems installing on solaris 8. I did change the options.c file and changed the variable "u_int32_t" to "unsigned int"
If their is something else I should be looking for, please let me know. Thanks again for your help.
Tim Clashin
Chris Lightfoot chris@ex-parrot.com 03/24/2004 02:02 PM
To Tim.Clashin@calcucare.com cc iftop-users@lists.beasts.org Subject Re: [Iftop-users] Help
On Wed, Mar 24, 2004 at 01:58:24PM -0600, Tim.Clashin@calcucare.com wrote:
Hello everyone,
I am having trouble with the make command installing iftop on Solaris 9.
I
have installed libpcap, and ncurses. The configure command ran fine,
and
I also installed in promisicus mode. Below is the error I am getting
when
I run the make command.
ld: fatal: Symbol referencing errors. No output written to iftop collect2: ld returned 1 exit status
-- does it not list the symbols for which there were referencing errors?
-- Arthur: This new learning amazes me, Sir Bedevere. Explain again how sheeps' bladders may be employed to prevent earthquakes. (from `Monty Python and the Holy Grail')
Chris,
I finally got iftop to work and it was by accident. I was trying to install another piece of software on the same box that I was trying to install iftop. The software specifically said that the program would not compile with gcc 3.1, and I need 2.95. So I uninstalled gcc 3.1 and installed gcc 2.95. I also set the library path to be LD_RUN_PATH=/opt/sfw/lib:/usr/lib:/usr/local/lib.
After making these changes, iftop compiled like a champ and now works on Solaris 9.
Thanks again for all your help.
Tim Clashin
Chris Lightfoot chris@ex-parrot.com 03/24/2004 02:28 PM
To Tim.Clashin@calcucare.com cc iftop-users@lists.beasts.org Subject Re: [Iftop-users] Help
On Wed, Mar 24, 2004 at 02:08:23PM -0600, Tim.Clashin@calcucare.com wrote:
I don't see the symbols, not much of a compling guru to be honest with you. Below is a tail of the make running.
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -g -O2 -c `test
-f 'vector.c' || echo './'`vector.c gcc -g -O2 -L/usr/local/lib -o iftop addr_hash.o edline.o hash.o iftop.o ns_hash.o options.o resolver.o screenfilter.o serv_hash.o
sorted_
ist.o threadprof.o ui.o util.o addrs_ioctl.o addrs_dlpi.o dlcommon.o stringmap.o cfgfile.o vector.o -lpcap -lnsl -lm -lsocket -lncurses
-lp
hread Undefined first referenced symbol in file initscr32 ui.o acs32map ui.o w32addch ui.o ld: fatal: Symbol referencing errors. No output written to iftop collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `iftop' Current working directory /opt/iftop/iftop-0.16 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /opt/iftop/iftop-0.16 *** Error code 1 make: Fatal error: Command failed for target `all'
Due note, I did read one of your users questions regarding iftop having problems installing on solaris 8. I did change the options.c file and changed the variable "u_int32_t" to "unsigned int"
If their is something else I should be looking for, please let me know. Thanks again for your help.
Tim Clashin
Chris Lightfoot chris@ex-parrot.com 03/24/2004 02:02 PM
To Tim.Clashin@calcucare.com cc iftop-users@lists.beasts.org Subject Re: [Iftop-users] Help
On Wed, Mar 24, 2004 at 01:58:24PM -0600, Tim.Clashin@calcucare.com
wrote:
Hello everyone,
I am having trouble with the make command installing iftop on Solaris
9.
I
have installed libpcap, and ncurses. The configure command ran fine,
and
I also installed in promisicus mode. Below is the error I am getting
when
I run the make command.
ld: fatal: Symbol referencing errors. No output written to iftop collect2: ld returned 1 exit status
-- does it not list the symbols for which there were referencing errors?
-- Arthur: This new learning amazes me, Sir Bedevere. Explain again how sheeps' bladders may be employed to prevent earthquakes. (from `Monty Python and the Holy Grail')