I don't know much about Solaris. This is SunOS 5.10 ...
libs are in /usr/lib, which is included in LD_LIBRARY_PATH.
Yet, upon doing a make:
[...]
gcc -g -O2 -static -o zabbix_agent zabbix_agent.o stats.o
cpustat.o diskdevices.o interfaces.o perfstat.o zbxconf.o
../../src/libs/zbxsysinfo/libzbxagentsysinfo.a
../../src/libs/zbxsysinfo/solaris/libspecsysinfo.a
../../src/libs/zbxsysinfo/common/libcommonsysinfo.a
../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a
../../src/libs/zbxlog/libzbxlog.a ../../src/libs/zbxsys/libzbxsys.a
../../src/libs/zbxnix/libzbxnix.a
../../src/libs/zbxcomms/libzbxcomms.a
../../src/libs/zbxconf/libzbxconf.a
../../src/libs/zbxcommon/libzbxcommon.a
../../src/libs/zbxcrypto/libzbxcrypto.a -lkvm -lm -lresolv -lnsl
-lkstat -lsocket
ld: fatal: library -lkvm: not found
ld: fatal: library -lm: not found
ld: fatal: library -lresolv: not found
ld: fatal: library -lnsl: not found
ld: fatal: library -lkstat: not found
ld: fatal: library -lsocket: not found
ld: fatal: library -lc: not found
ld: fatal: library -lc: not found
ld: fatal: File processing errors. No output written to zabbix_agent
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `zabbix_agent'
What gives?