Bug #1078
closedillumos-gate build issues on oi_151
100%
Description
There appears to be some issues when building illumos-gate on oi_151. The environment I'm using is a fresh install from the oi-dev-151-text-x86-20110526-1.iso image. I'm using illumos-gate as of d89753efabc8 (same changeset as oi_151) with all of the mq_onnv-gate patches in branch oi151.
Two issues I've seen so far:
1) Bug #495 is back, causing the following errors:
undefined symbol: __FUNCTION__http://www.illumos.org/issues/495
Manually fixing /usr/include/net-snmp/net-snmp-config.h worked around this problem.
2) I'm getting getting lots of "unused search path" errors during the runtime check. See attached mail_msg file.
Files
Related issues
Updated by Chris Jordan over 11 years ago
- Assignee set to OI SFW
- Tags changed from needs-triage to perl
Setting assignee to OI SFW since net-snmp is in that consolidation. Note this was also reported in bug #1090.
Updated by Alasdair Lumsden over 11 years ago
- Priority changed from Normal to Urgent
- Target version set to oi_151
This should be considered a blocker as it affects building illumos
Updated by Albert Lee over 11 years ago
A long-term change which would make this issue go away is described here:
http://lists.illumos.org/pipermail/developer/2010-December/001128.html
Updated by Bayard Bell over 11 years ago
- % Done changed from 0 to 50
The only other striking difference here is the choice of compilers:
buffyg@buffyg.uk.openindiana.org:~/code/sfw-gate$ diff /usr/include/net-snmp/net-snmp-config.h proto/root_i386/usr/include/net-snmp/net-snmp-config.h 71c71 < #define HAVE_CPP_UNDERBAR_FUNCTION_DEFINED 1 --- > /* #undef HAVE_CPP_UNDERBAR_FUNCTION_DEFINED */ 101c101 < #define KERNEL_LOC "/dev/ksyms" --- > #define KERNEL_LOC "unknown" 114c114 < #define UNAMEPROG "/sbin/uname" --- > #define UNAMEPROG "/usr/bin/uname" 1603c1603 < #define NETSNMP_CONFIGURE_OPTIONS "'--prefix=/usr' '--with-default-snmp-version=3' '--with-sys-contact=root@localhost' '--with-sys-location=Unknown' '--with-logfile=/var/log/snmpd.log' '--with-persistent-directory=/var/net-snmp' '--datadir=/etc/net-snmp' '--mandir=/usr/share/man' '--with-mibdirs=/etc/net-snmp/snmp/\ mibs' '--enable-agentx-dom-sock-only' '--enable-ucd-snmp-compatibility' '--enable-ipv6' '--enable-mfd-rewrites' '--with-transports=UDP TCP UDPIPv6 TCPIPv6' '--with-mib-modules=host disman/event-mib ucd-snmp/diskio udp-mib tcp-mib if-mib' '--with-pkcs=/usr/lib' '--with-perl-modules=DESTDIR= INSTALLDIRS=vendor' '--with\ -ldflags=-R/usr/lib' '--libdir=/usr/lib' 'CC=/opt/sunstudio12.1/bin/cc' 'CFLAGS=-xO3 -m32 -xchip=pentium -xspace -Xa -xildoff -xc99=all ' 'CXX=/opt/sunstudio12.1/bin/CC'" --- > #define NETSNMP_CONFIGURE_OPTIONS "'--prefix=/usr' '--with-default-snmp-version=3' '--with-sys-contact=root@localhost' '--with-sys-location=Unknown' '--with-logfile=/var/log/snmpd.log' '--with-persistent-directory=/var/net-snmp' '--datadir=/etc/net-snmp' '--mandir=/usr/share/man' '--with-mibdirs=/etc/net-snmp/snmp/\ mibs' '--enable-agentx-dom-sock-only' '--enable-ucd-snmp-compatibility' '--enable-ipv6' '--enable-mfd-rewrites' '--with-transports=UDP TCP UDPIPv6 TCPIPv6' '--with-mib-modules=host disman/event-mib ucd-snmp/diskio udp-mib tcp-mib if-mib' '--with-pkcs=/usr/lib' '--with-perl-modules=DESTDIR= INSTALLDIRS=vendor' '--with\ -ldflags=-R/usr/lib' '--libdir=/usr/lib' 'CC=/opt/SUNWspro/bin/cc' 'CFLAGS=-xO3 -m32 -xchip=pentium -xspace -Xa -xildoff -xc99=all ' 'CXX=/opt/SUNWspro/bin/CC'"
I'd propose to patch the current file to resolve the diff as follows.
buffyg@buffyg.uk.openindiana.org:~/code/sfw-gate$ diff /usr/include/net-snmp/net-snmp-config.h proto/root_i386/usr/include/net-snmp/net-snmp-config.h 71c71 < #define HAVE_CPP_UNDERBAR_FUNCTION_DEFINED 1 --- > /* #undef HAVE_CPP_UNDERBAR_FUNCTION_DEFINED */ 1603c1603 < #define NETSNMP_CONFIGURE_OPTIONS "'--prefix=/usr' '--with-default-snmp-version=3' '--with-sys-contact=root@localhost' '--with-sys-location=Unknown' '--with-logfile=/var/log/snmpd.log' '--with-persistent-directory=/var/net-snmp' '--datadir=/etc/net-snmp' '--mandir=/usr/share/man' '--with-mibdirs=/etc/net-snmp/snmp/\ mibs' '--enable-agentx-dom-sock-only' '--enable-ucd-snmp-compatibility' '--enable-ipv6' '--enable-mfd-rewrites' '--with-transports=UDP TCP UDPIPv6 TCPIPv6' '--with-mib-modules=host disman/event-mib ucd-snmp/diskio udp-mib tcp-mib if-mib' '--with-pkcs=/usr/lib' '--with-perl-modules=DESTDIR= INSTALLDIRS=vendor' '--with\ -ldflags=-R/usr/lib' '--libdir=/usr/lib' 'CC=/opt/sunstudio12.1/bin/cc' 'CFLAGS=-xO3 -m32 -xchip=pentium -xspace -Xa -xildoff -xc99=all ' 'CXX=/opt/sunstudio12.1/bin/CC'" --- > #define NETSNMP_CONFIGURE_OPTIONS "'--prefix=/usr' '--with-default-snmp-version=3' '--with-sys-contact=root@localhost' '--with-sys-location=Unknown' '--with-logfile=/var/log/snmpd.log' '--with-persistent-directory=/var/net-snmp' '--datadir=/etc/net-snmp' '--mandir=/usr/share/man' '--with-mibdirs=/etc/net-snmp/snmp/\ mibs' '--enable-agentx-dom-sock-only' '--enable-ucd-snmp-compatibility' '--enable-ipv6' '--enable-mfd-rewrites' '--with-transports=UDP TCP UDPIPv6 TCPIPv6' '--with-mib-modules=host disman/event-mib ucd-snmp/diskio udp-mib tcp-mib if-mib' '--with-pkcs=/usr/lib' '--with-perl-modules=DESTDIR= INSTALLDIRS=vendor' '--with\ -ldflags=-R/usr/lib' '--libdir=/usr/lib' 'CC=/opt/SUNWspro/bin/cc' 'CFLAGS=-xO3 -m32 -xchip=pentium -xspace -Xa -xildoff -xc99=all ' 'CXX=/opt/SUNWspro/bin/CC'"
Updated by Andrzej Szeszo over 11 years ago
Instead of using SFW built net-snmp and going through distro-import and distro-publish process I went ahead and re-used Oracle's userland build recipes to re-build net-snmp with Sun Studio 12. I have pushed updated packages to /dev-il repo for testing.
Build recipes can be found here for now (temporary location):
http://hg.openindiana.org/aszeszo/oi-extras/file/6eb7b62e444c/oi-extras/net-snmp
Updated by Albert Lee over 11 years ago
2) is check_rtime whining about the NSPR libraries depending on libgcc_s now, i.e. someone built them with GCC.
Updated by Jon Tibble over 11 years ago
- Status changed from New to Resolved
- % Done changed from 50 to 100
The correct SFW is in the integration dock, the fixed nspr is in the repo and available on infra for pulling into the dock (if it's not been pulled already) so currently illumos should build fine with oi_151.
Updated by Gordon Ross over 11 years ago
I'm still seeing check_rtime noise. Is this fully resolved?
Updated by Gordon Ross over 11 years ago
You can confirm if this problem is still there by:
elfdump -d /usr/lib/mps/secv1/libnspr4.so |grep libgcc_s
I was able to work-around the check_rtime noise by loading an
older version of pkg:/library/nspr contents (from oi148a)
Updated by Andrew Stormont over 9 years ago
Can someone mark this as related to #2245?
Updated by Marcel Telka over 9 years ago
Andrew Stormont wrote:
Can someone mark this as related to #2245?
Done.