Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Jul 2022 07:28:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 265008] 'undefined symbol: environ' which shouldn't happen according to environ(7)
Message-ID:  <bug-265008-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265008

            Bug ID: 265008
           Summary: 'undefined symbol: environ' which shouldn't happen
                    according to environ(7)
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

The Criterion project (https://github.com/Snaipe/Criterion) fails to build
with:
cc  -o src/libcriterion.so.3.2.0 src/libcriterion.so.3.2.0.p/err.c.o
src/libcriterion.so.3.2.0.p/mutex.c.o
src/libcriterion.so.3.2.0.p/capi_specifiers.c.o
src/libcriterion.so.3.2.0.p/capi_stream.c.o
src/libcriterion.so.3.2.0.p/compat_alloc.c.o
src/libcriterion.so.3.2.0.p/compat_kill.c.o
src/libcriterion.so.3.2.0.p/compat_mockfile.c.o
src/libcriterion.so.3.2.0.p/compat_path.c.o
src/libcriterion.so.3.2.0.p/compat_pipe.c.o
src/libcriterion.so.3.2.0.p/compat_process.c.o
src/libcriterion.so.3.2.0.p/compat_processor.c.o
src/libcriterion.so.3.2.0.p/compat_section.c.o
src/libcriterion.so.3.2.0.p/compat_strtok.c.o
src/libcriterion.so.3.2.0.p/compat_time.c.o
src/libcriterion.so.3.2.0.p/core_abort.c.o
src/libcriterion.so.3.2.0.p/core_assert.c.o
src/libcriterion.so.3.2.0.p/core_client.c.o
src/libcriterion.so.3.2.0.p/core_ordered-set.c.o
src/libcriterion.so.3.2.0.p/core_report.c.o
src/libcriterion.so.3.2.0.p/core_runner.c.o
src/libcriterion.so.3.2.0.p/core_runner_coroutine.c.o
src/libcriterion.so.3.2.0.p/core_stats.c.o
src/libcriterion.so.3.2.0.p/core_test.c.o
src/libcriterion.so.3.2.0.p/csptr_array.c.o
src/libcriterion.so.3.2.0.p/csptr_mman.c.o
src/libcriterion.so.3.2.0.p/entry_entry.c.o
src/libcriterion.so.3.2.0.p/entry_options.c.o
src/libcriterion.so.3.2.0.p/entry_params.c.o
src/libcriterion.so.3.2.0.p/io_event.c.o
src/libcriterion.so.3.2.0.p/io_file.c.o src/libcriterion.so.3.2.0.p/io_json=
.c.o
src/libcriterion.so.3.2.0.p/io_output.c.o
src/libcriterion.so.3.2.0.p/io_redirect.c.o
src/libcriterion.so.3.2.0.p/io_tap.c.o src/libcriterion.so.3.2.0.p/io_xml.c=
.o
src/libcriterion.so.3.2.0.p/log_logging.c.o
src/libcriterion.so.3.2.0.p/log_normal.c.o
src/libcriterion.so.3.2.0.p/protocol_connect.c.o
src/libcriterion.so.3.2.0.p/protocol_messages.c.o
src/libcriterion.so.3.2.0.p/protocol_protocol.c.o
src/libcriterion.so.3.2.0.p/string_brz.c.o
src/libcriterion.so.3.2.0.p/string_extglobmatch.c.o
src/libcriterion.so.3.2.0.p/string_fmt.c.o
src/libcriterion.so.3.2.0.p/string_i18n.c.o
src/libcriterion.so.3.2.0.p/string_xxd.c.o
src/libcriterion.so.3.2.0.p/protocol_criterion.pb.c.o
src/libcriterion.so.3.2.0.p/string_diff.c.o
src/libcriterion.so.3.2.0.p/core_theories.c.o -Wl,--as-needed
-Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group
-Wl,-soname,libcriterion.so.3 -fstack-protector-strong -O2 -pipe
-fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing
-fno-omit-frame-pointer -Wl,-rpath,/usr/local/lib
-Wl,-rpath-link,/usr/local/lib subprojects/boxfort/src/libboxfort.a
subprojects/nanomsg/libnanomsg.a subprojects/nanopb/libprotobuf_nanopb_stat=
ic.a
-Wl,--exclude-libs,ALL -pthread -lrt -lm /usr/local/lib/libffi.so
/usr/local/lib/libgit2.so -lpthread -Wl,--end-group
ld: error: undefined symbol: environ
>>> referenced by sandbox-posix.c



extern is defined in sandbox-posix.c:
> extern char **environ;
so it should just exist and no such error should ever occur.


There was a dedicated bug report for this but I can't find it now.

--=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-265008-227>