Bug #5840
closedcmd/ypcmd build failed without usr/lib/libsocket.so on build host
100%
Description
+ /usr/gcc/4.8/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics-show-option -nodefaultlibs -D__sun -fno-strict-aliasing -fno-unit-at-a-time -fno-optimize-sibling-calls -O2 -m64 -mtune=opteron -Ui386 -U__i386 -Wall -Wextra -Werror -Wno-missing-braces -Wno-sign-compare -Wno-unknown-pragmas -Wno-unused-parameter -Wno-missing-field-initializers -Wno-array-bounds -Wno-implicit-function-declaration -Wno-parentheses -Wno-unused-variable -Wno-uninitialized -Wno-switch -Wno-extra -Wno-unused-label -Wno-address -Wno-unused-function -Wno-unused-but-set-variable -std=gnu89 -fno-inline-small-functions -fno-inline-functions-called-once -fno-ipa-cp -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/myshare/builds/ssd02/builds/dilos-illumos.lx/proto/root_i386/usr/include -Wl,-Bdirect -Wl,-M/myshare/builds/ssd02/builds/dilos-illumos.lx/usr/src/common/mapfiles/common/map.noexstk -Wl,-M/myshare/builds/ssd02/builds/dilos-illumos.lx/usr/src/common/mapfiles/common/map.pagealign -Wl,-M/myshare/builds/ssd02/builds/dilos-illumos.lx/usr/src/common/mapfiles/common/map.noexdata stdethers.o -o stdethers -lsocket -lc ld: fatal: library -lsocket: not found ld: fatal: file processing errors. No output written to stdethers collect2: error: ld returned 1 exit status *** Error code 1 dmake: Fatal error: Command failed for target `stdethers' Current working directory /myshare/builds/ssd02/builds/dilos-illumos.lx/usr/src/cmd/ypcmd
Updated by Gary Mills over 7 years ago
I'll take this one. Omissions from the Makefile cause this problem. I know how to fix them.
Updated by Igor Kozhukhov over 7 years ago
Gary Mills wrote:
I'll take this one. Omissions from the Makefile cause this problem. I know how to fix them.
i have fixed it and others problem with dependencies.
i have tested in on new env with 20 threads.
i can provide diff if you are interest.
i didn't post it yet because it was on testing stage
Updated by Gary Mills over 7 years ago
The problem in this case was in the Makefile: it was missing `-L' link options that point to library locations in the prototype area. I've fixed it by modifying the Makefile, and verified that this change fixes the problem you reported. I'm sorry that I didn't know that you were also working on a fix. Shall I post my fix, or do you want to post yours?
Updated by Igor Kozhukhov over 7 years ago
- Status changed from New to In Progress
- Assignee set to Gary Mills
Updated by Electric Monk over 7 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
git commit e7619b69689d6a40a07425ef14002f2ab4d724d9
commit e7619b69689d6a40a07425ef14002f2ab4d724d9 Author: Gary Mills <gary_mills@fastmail.fm> Date: 2015-05-15T22:34:49.000Z 5840 cmd/ypcmd build failed without usr/lib/libsocket.so on build host Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com> Approved by: Gordon Ross <gwr@nexenta.com>