Project

General

Profile

Bug #1078

illumos-gate build issues on oi_151

Added by Bryan Leaman over 8 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
Start date:
2011-05-29
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
snmp

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

mail_msg (69.1 KB) mail_msg Build output Bryan Leaman, 2011-05-29 03:42 PM

Related issues

Related to OpenIndiana Distribution - Bug #495: oi_148 and illumos-gateClosed2010-12-10

Actions
Related to OpenIndiana Distribution - Bug #1542: Mozilla library regressionResolved2011-09-20

Actions
Related to OpenIndiana Distribution - Bug #4190: Update to Net-SNMP 5.4.1.2Resolved2013-10-082013-10-31

Actions

History

#1

Updated by Chris Jordan over 8 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.

#2

Updated by Chris Jordan over 8 years ago

  • Tags changed from perl to snmp
#3

Updated by Alasdair Lumsden over 8 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

#4

Updated by Albert Lee over 8 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

#5

Updated by Bayard Bell over 8 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'" 
#6

Updated by Andrzej Szeszo over 8 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

#7

Updated by Albert Lee over 8 years ago

2) is check_rtime whining about the NSPR libraries depending on libgcc_s now, i.e. someone built them with GCC.

#8

Updated by Jon Tibble over 8 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.

#9

Updated by Gordon Ross over 8 years ago

I'm still seeing check_rtime noise. Is this fully resolved?

#10

Updated by Gordon Ross over 8 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)

#11

Updated by Andrew Stormont about 6 years ago

Can someone mark this as related to #2245?

#12

Updated by Marcel Telka about 6 years ago

Andrew Stormont wrote:

Can someone mark this as related to #2245?

Done.

Also available in: Atom PDF