When I try to compile some SNMP code there's an inline command I need to
get the required libs. When I run the command in fish, using () I get the
following:
gcc -o snmpdemoapp snmpdemoapp.o (net-snmp-config --libs)
/usr/bin/ld: warning: -z relro -Wl ignored.
/usr/bin/ld: warning: -z now -L/usr/lib -lnetsnmp -lssl -lssl -lcrypto -lm
ignored.
snmpdemoapp.o: In function `main':
/home/jski/amp-v-e-switch/vis/snmp/snmpdemoapp.c:28: undefined reference to
`init_snmp'
...
pdemoapp.c:101: undefined reference to `snmp_perror'
/home/jski/amp-v-e-switch/vis/snmp/snmpdemoapp.c:89: undefined reference to
`snmp_sess_perror'
collect2: error: ld returned 1 exit status
When I used Bourne, it works:
gcc -o snmpdemoapp snmpdemoapp.o `net-snmp-config --libs`
Why?
---John
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users