Project

General

Profile

Actions

Feature #15301

open

Want 64bit libfmd_snmp as net-snmp 4 is now 64bit only

Added by Till Wegmüller 5 months ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

While updating net-snmp to version 4 in OpenIndiana we noticed we could not build illumos-gate anymore.

As it turns out libfmd_snmp is still compiled as 32bit and as we could not compile net-snmp as 32bit due to not having a 32bit perl anymore, illumos-gate now fails to build.

I would like to drop 32bit libfmd in general as this is a system component and already exists as 64bit.

Error message as reference

/ws/toasty/oi-userland/components/openindiana/illumos-gate/illumos-gate/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386/cw --linker /ws/toasty/oi-userland/components/openindiana/illumos-gate/illumos-gate/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/amd64/ld --primary gcc7,/usr/gcc/7/bin/gcc,gnu  -- -O -m32 -xspace -Xa  -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -_gcc=-Wno-missing-braces -_gcc=-Wno-sign-compare -_gcc=-Wno-unknown-pragmas -_gcc=-Wno-unused-parameter -_gcc=-Wno-missing-field-initializers -_gcc=-Wno-array-bounds -_smatch=-p=illumos_user -_smatch=--disable=uninitialized,check_check_deref -_smatch=-Wno-vla -_smatch=-Wno-one-bit-signed-bitfield -_smatch=-Wno-external-function-has-definition -_smatch=-Wno-old-style-definition -_smatch=-Wno-strict-prototypes -_smatch=--fatal-checks -_smatch=--timeout=0   -xc99=%all    -W0,-xglobalstatic -_gcc=-fno-inline-small-functions  -_gcc=-fno-inline-functions-called-once  -_gcc=-fno-ipa-cp  -_gcc=-fno-ipa-icf  -_gcc=-fno-clone-functions -_gcc=-fno-reorder-functions  -_gcc=-fno-reorder-blocks-and-partition  -_gcc=-fno-aggressive-loop-optimizations -_gcc=--param=max-inline-insns-single=450    -_gcc=-fstack-protector-strong -v -fPIC -o libfmd_snmp.so.1 -shared -Wl,-hlibfmd_snmp.so.1 -Wl,-ztext -Wl,-zdefs -Wl,-Bdirect  -Wl,-M../common/mapfile-vers -Wl,-M/ws/toasty/oi-userland/components/openindiana/illumos-gate/illumos-gate/usr/src/common/mapfiles/common/map.pagealign -Wl,-M/ws/toasty/oi-userland/components/openindiana/illumos-gate/illumos-gate/usr/src/common/mapfiles/common/map.noexdata  -Wl,-zassert-deflib -Wl,-zguidance -Wl,-zfatal-warnings -Wl,-zassert-deflib=libnetsnmp.so -Wl,-zassert-deflib=libnetsnmpagent.so -R/usr/lib/fm  pics/debug_subr.o  pics/init.o             pics/module.o   pics/problem.o  pics/resource.o         pics/scheme.o  -L/ws/toasty/oi-userland/components/openindiana/illumos-gate/illumos-gate/proto/root_i386/lib -L/ws/toasty/oi-userland/components/openindiana/illumos-gate/illumos-gate/proto/root_i386/usr/lib    -lssp_ns -L/ws/toasty/oi-userland/components/openindiana/illumos-gate/illumos-gate/proto/root_i386/usr/lib/fm -lfmd_adm -luutil -lnvpair -ltopo -lnetsnmp -lnetsnmpagent -lc
+ /usr/gcc/7/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics-show-option -nodefaultlibs -D__sun -O -m32 -Wall -Wextra -Werror -Wno-missing-braces -Wno-sign-compare -Wno-unknown-pragmas -Wno-unused-parameter -Wno-missing-field-initializers -Wno-array-bounds -std=gnu99 -fno-inline-small-functions -fno-inline-functions-called-once -fno-ipa-cp -fno-ipa-icf -fno-clone-functions -fno-reorder-functions -fno-reorder-blocks-and-partition -fno-aggressive-loop-optimizations --param=max-inline-insns-single=450 -fstack-protector-strong -fPIC -o libfmd_snmp.so.1 -shared -Wl,-hlibfmd_snmp.so.1 -Wl,-ztext -Wl,-zdefs -Wl,-Bdirect -Wl,-M../common/mapfile-vers -Wl,-M/ws/toasty/oi-userland/components/openindiana/illumos-gate/illumos-gate/usr/src/common/mapfiles/common/map.pagealign -Wl,-M/ws/toasty/oi-userland/components/openindiana/illumos-gate/illumos-gate/usr/src/common/mapfiles/common/map.noexdata -Wl,-zassert-deflib -Wl,-zguidance -Wl,-zfatal-warnings -Wl,-zassert-deflib=libnetsnmp.so -Wl,-zassert-deflib=libnetsnmpagent.so -R/usr/lib/fm pics/debug_subr.o pics/init.o pics/module.o pics/problem.o pics/resource.o pics/scheme.o -L/ws/toasty/oi-userland/components/openindiana/illumos-gate/illumos-gate/proto/root_i386/lib -L/ws/toasty/oi-userland/components/openindiana/illumos-gate/illumos-gate/proto/root_i386/usr/lib -lssp_ns -L/ws/toasty/oi-userland/components/openindiana/illumos-gate/illumos-gate/proto/root_i386/usr/lib/fm -lfmd_adm -luutil -lnvpair -ltopo -lnetsnmp -lnetsnmpagent -lc
ld: fatal: library -lnetsnmp: not found
ld: fatal: library -lnetsnmpagent: not found
ld: fatal: file processing errors. No output written to libfmd_snmp.so.1
collect2: error: ld returned 1 exit status
*** Error code 1

Actions #1

Updated by Marcel Telka 5 months ago

Isn't this problem already fixed (or worked around) by https://github.com/OpenIndiana/oi-userland/pull/10436?

Actions #2

Updated by Till Wegmüller 5 months ago

We created PR 10436 as response to this issue and the Conversations in IRC. That works as Workaround for us.

However we would still like to have a 64bit fmd only. Which is why this is catagorized as feature.

Most work will start with ARM though as that is a pure 63bit platform.

Actions

Also available in: Atom PDF