[Bug 235907] bash-static doesn't link after compile
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Feb 21 04:55:53 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235907
Bug ID: 235907
Summary: bash-static doesn't link after compile
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: walterp at gmail.com
If you run make config and select the static option, the link stage fails with
errors.
cc -shared -Wl,-soname,print -fstack-protector -fuse-ld=bfd -static -o print
print.o
/usr/bin/ld.bfd: warning: cannot find entry symbol _start; defaulting to
0000000000400170
print.o: In function `print_builtin':
print.c:(.text+0x15): undefined reference to `reset_internal_getopt'
print.c:(.text+0x57): undefined reference to `internal_getopt'
print.c:(.text+0x70): undefined reference to `list_optarg'
print.c:(.text+0x87): undefined reference to `list_optarg'
print.c:(.text+0x8f): undefined reference to `all_digits'
print.c:(.text+0x9e): undefined reference to `list_optarg'
...
/usr/lib/libc.a(getenv.o): In function `__clean_env':
/usr/src/lib/libc/stdlib/getenv.c:250: undefined reference to `environ'
/usr/src/lib/libc/stdlib/getenv.c:251: undefined reference to `environ'
/usr/lib/libc.a(getenv.o): In function `getenv':
/usr/src/lib/libc/stdlib/getenv.c:440: undefined reference to `environ'
/usr/lib/libc.a(getenv.o): In function `__merge_environ':
/usr/src/lib/libc/stdlib/getenv.c:546: undefined reference to `environ'
/usr/src/lib/libc/stdlib/getenv.c:558: undefined reference to `environ'
/usr/lib/libc.a(getenv.o):/usr/src/lib/libc/stdlib/getenv.c:338: more undefined
references to `environ' follow
...
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list