Date: Thu, 21 Feb 2019 04:55:51 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 235907] bash-static doesn't link after compile Message-ID: <bug-235907-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235907 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@FreeBSD.org Reporter: walterp@gmail.com If you run make config and select the static option, the link stage fails w= ith errors. cc -shared -Wl,-soname,print -fstack-protector -fuse-ld=3Dbfd -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 undef= ined references to `environ' follow ... cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-235907-7788>