Mantis - lsof
Viewing Issue Advanced Details
4893 packaging block always 2012-02-07 17:03 2012-08-01 13:45
isabellf  
dam  
normal  
closed  
fixed  
none    
none  
0004893: lsof does not build on Solaris 11
While trying to build on Solaris 10 with gcc (I'm not confident about all the flags here, but Dagobert also tried on one of the Solaris11 build servers in your farm with additional failures):

PATH=/opt/gcc/4.2.3/bin:/usr/sfw/bin:/opt/csw/bin:/usr/sbin:/usr/ccs/bin:/usr/bin:/bin:/usr/sbin:/sbin
export PATH
CFLAGS="-m64 -R/usr/sfw/lib/amd64"
export CFLAGS
CXXFLAGS="-m64 -R/usr/sfw/lib/amd64"
export CXXFLAGS
export CXXFLAGS
LDFLAGS="-m64 -L/opt/gcc/4.2.3/lib/amd64 -R/usr/sfw/lib/amd64"
export LDFLAGS
LD_LIBRARY_PATH=/opt/gcc/4.2.3/lib/amd64
export LD_LIBRARY_PATH
export LSOF_VERS=110000; ./Configure solaris
make

I got the following error:

dnode.c:42:30: error: sys/fs/sdev_impl.h: No such file or directory



Need to send request to Vic Abell (lsof maintainer)
Issue History
2012-02-07 17:03 isabellf New Issue
2012-02-07 17:13 isabellf Note Added: 0009586
2012-02-07 18:35 dam Status new => assigned
2012-02-07 18:35 dam Assigned To => dam
2012-02-07 18:56 dam Note Added: 0009587
2012-02-11 18:51 dam Status assigned => feedback
2012-02-12 15:14 isabellf Note Added: 0009594
2012-08-01 08:12 ghenry Note Added: 0010069
2012-08-01 11:11 dam Note Added: 0010070
2012-08-01 13:45 dam Note Added: 0010073
2012-08-01 13:45 dam Status feedback => closed
2012-08-01 13:45 dam Resolution open => fixed

Notes
(0009586)
isabellf   
2012-02-07 17:13   
Email sent:

Hi Vic.
I just want to report that lsof 4.85 does not build on Solaris 11. I spoke with Dagobert Michelsen of OpenCSW and is offering access to their build server if you want to test it yourself. He said it’s due to “cachefs” not being around anymore on Solaris 11.

Dagobert, I opened a ticket on https://www.opencsw.org/mantis, [^] I tried building with GCC, I know you tried something different, so if you have time to add your data here, it might help.
 0004893 packaging block new 2012-02-07 “lsof does not build on Solaris 11”

Thanks for your help.

François Isabelle.
(0009587)
dam   
2012-02-07 18:56   
Experimental packages for 4.86A.sun for Solaris 11 Sparc and amd64 are available at
  http://buildfarm.opencsw.org/experimental.html#lsof [^]
Please let me know if they work.

Best regards -- Dago
(0009594)
isabellf   
2012-02-12 15:14   
I tested the amd64 build, it was fine.
I didn't run any test on Sparc yet.
(0010069)
ghenry   
2012-08-01 08:12   
hello,
it doesn't work for me (Sun X2200 amd64):
# uname -a
SunOS solqual 5.11 11.0 i86pc i386 i86pc Solaris
# /opt/csw/bin/lsof
lsof: can't read namelist from /dev/ksyms

is it because i'm logged into a zone?
(0010070)
dam   
2012-08-01 11:11   
Indeed, lsof can only be run from the global zone. This is a restriction of the lsof software requiring access to the global kernel tables. It is probably best to disallow installation of the package in the non-global zones.
(0010073)
dam   
2012-08-01 13:45   
The official 4.86,REV=2012.08.01 has been pushed for Solaris 9/10/11 to unstable/.