Skip to content

Fix compile errors on Illumos - #236

Closed
vizanto wants to merge 1 commit into
NixOS:masterfrom
vizanto:master
Closed

vizanto wants to merge 1 commit into
NixOS:masterfrom
vizanto:master

Conversation

@vizanto

@vizanto vizanto commented Apr 3, 2014

Copy link
Copy Markdown
Contributor

Tested in a SmartOS zone.

Needed to include limits.h for this:

building src/libstore/build.o
  CXX    src/libstore/build.o
src/libstore/build.cc: In member function 'void nix::Worker::waitForInput()':
src/libstore/build.cc:3153:22: error: 'LONG_MAX' was not declared in this scope
     time_t nearest = LONG_MAX; // nearest deadline
                      ^

And -lsocket for missing symbols:

Undefined                       first referenced
 symbol                             in file
__xnet_socket                       src/nix-daemon/nix-daemon.o  (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1)
accept                              src/nix-daemon/nix-daemon.o  (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1)
listen                              src/nix-daemon/nix-daemon.o  (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1)
__xnet_bind                         src/nix-daemon/nix-daemon.o  (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1)

ld: fatal: symbol referencing errors. No output written to src/nix-daemon/nix-daemon
collect2: error: ld returned 1 exit status

edolstra added a commit that referenced this pull request Apr 3, 2014
@edolstra

edolstra commented Apr 3, 2014

Copy link
Copy Markdown
Member

Merged, thanks!

@edolstra edolstra closed this Apr 3, 2014
zolodev pushed a commit to zolodev/nix that referenced this pull request Jan 1, 2024
…ns/actions/checkout-3

chore(deps): bump actions/checkout from 2 to 3
P-E-Meunier pushed a commit to P-E-Meunier/nix that referenced this pull request Feb 26, 2025
…jects/renaming/diesel-1.4.6

Bump diesel from 1.4.3 to 1.4.6 in /sample_projects/renaming
CertainLach pushed a commit to deltarocks/nix that referenced this pull request Nov 4, 2025
…imization

importPaths(): Seek over paths that are already in the store
ConnorBaker added a commit to ConnorBaker/nix that referenced this pull request May 25, 2026
… audit

The post-Batch-G adversarial audit asked whether claimed-unfiled
opportunities were genuinely untracked or sub-scope of existing
candidates. The auditor found three of my eight "unfiled" claims
were wrong — already covered by NixOS#190 (prim_fetchTree), NixOS#108
(mkLazyValueThunk), or NixOS#4/NixOS#57 (proto-helper macro hygiene). The
remaining five lacked tracking numbers and lived only in commit
bodies, FIXMEs, or buried Branch-line prose. File them as
proper candidate entries:

NixOS#234 — Store::signPathInfo / signRealisation re-read every
  secret-key file from disk on every signing call. NixOS#100's
  helper-only landing intentionally excluded the cache; the
  FIXME comment in store-api.cc is the canonical pointer but
  no candidate tracked the lift. Filed in
  12-libutil-libstore-core-extras.md.

NixOS#235 — addPermRoot GC-root-naming has three behavioural
  divergences across the two legacy CLI sites that NixOS#91's helper
  extraction deliberately left unresolved (counter-increment
  timing, absPath timing, printGCWarning gating). NixOS#91's Branch
  line names the deferral but no separate candidate tracked
  the audit work needed before substitution. Filed in
  11-legacy-cli.md.

NixOS#236 — CmdHash is the only getCommandsFor-eligible
  NixMultiCommand that can't migrate without a registry-with-
  args mechanism. NixOS#93's Branch line names this as deferred but
  no separate candidate tracked it. Two paths sketched: per-
  format subclass split or registry-with-args extension. Filed
  in 11-legacy-cli.md.

NixOS#237 — Two libstore call sites still use bare 65536 literals
  for I/O buffer sizing (local-store.cc::addToStoreFromDump
  and derivations.cc::Derivation::unparse) where NixOS#167's
  kDefaultIOBlockSize is the canonical name. Cross-shard,
  blocked on libutil upstream merge per Batch-E ledger. Now
  has a tracking number beyond the FOLLOWUPS-ledger entry.
  Filed in 17-cross-cutting.md.

NixOS#238 — GitArchiveInputScheme::isLocked carries an in-source
  FIXME proposing Git tree hashes as the locking primitive
  instead of NAR hashes. Predates NixOS#51 and is independent of it
  (different function, different scope). Now has a tracking
  number rather than living only in source. Filed in
  19-eval-core-fetcher-lookup-json.md.

STATUS.md: catalog count bumped to 238 + 44; added a sentence
to the "Catalog split into 25 sections" recently-completed
entry explaining the NixOS#234-NixOS#238 origin.

FOLLOWUPS.md: new "Batch G follow-ups (adversarial-audit
second pass)" subsection with all five strikethroughs naming
the filed candidates and their homes.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker added a commit to ConnorBaker/nix that referenced this pull request May 25, 2026
The post-Batch-G adversarial-review pass over the next-pick list
flagged five candidates whose bodies overstate the case or
propose churn. Update each body to record the review verdict so
future readers see the actual ship-state, not the original framing.

NixOS#168 — SUPERSEDED by N31. The proposed cache-versions.hh is
  cosmetic colocation; it does not fix the version-in-filename
  antipattern. PRAGMA user_version (NixOS#201) closes the silent-
  corruption window; SqliteCache<Schema, UserVersion> (N13) closes
  the orphan-cache hazard. Recommended action: ship N31 directly
  and let it absorb NixOS#168's surface area.

NixOS#219 — RESOLVED as dead-code defence. Source-verified that the
  post-build hook child is registered with respectTimeouts=false;
  Worker::waitForInput only fires goal->timedOut(...) when the
  flag is true. The TimedOut arm cannot be reached on the post-
  build hook child's goal, so adding it would be defensive coding
  for an unreachable path — not a present-day latent bug.

NixOS#235 — re-scoped. Source-verified that NixOS#91's GcRootNamer landing
  on cleanup-nix-cli already absorbed counter-increment timing
  and absPath-timing divergences. The only residual divergence is
  printGCWarning gating (nix-store gates on store2 != nullptr;
  nix-instantiate runs unconditionally). Tightened body to
  describe the single remaining asymmetry; effort downgraded from
  small to trivial.

NixOS#236 — DECLINED. Both proposed paths are churn: per-format
  subclass family adds 7 new types to remove one inline factory
  list; getCommandsForWithArgs<...> registry is speculative
  public API with one consumer (the same anti-pattern that drove
  the libutil NixOS#163 revert). CmdHash retains its inline factory
  list deliberately; the decision is recorded on NixOS#93's Branch
  line so future readers see it from either entry point.

NixOS#231 — body tightened. Dropped the "sibling getIntArgNoUnit<N>
  template if a second caller appears" footnote — speculative-
  API framing. Ship the conservative form (inline getArg
  substitution at the one site); the helper can be re-filed if
  and when a second caller actually materialises.

No code changes; doc-branch only.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker added a commit to ConnorBaker/nix that referenced this pull request May 25, 2026
After the cross-shard cleanup landed, fan out the post-review
punch-list across single-shard commits. Three trivials (NixOS#183,
NixOS#231, NixOS#235) and three smalls (NixOS#226, NixOS#230, NixOS#234) shipped; three
rejected per body-edit verdicts (NixOS#168 superseded, NixOS#219 dead-code
defence, NixOS#236 declined); one deferred (NixOS#225 needs a libutil
helper that would create a third cross-shard violation if
bundled).

STATUS cleanup-branches table updated with the new tip SHAs:
- libstore   80fd74bca (was ec50b5b)
- libutil    190b08372 (was fdb46ab33)
- libfetchers 12a17bb65 (was d1a856c)
- nix-cli    24ebbcc (was 2a34c31)
plus the new candidate references (NixOS#183, NixOS#231, NixOS#235 on nix-cli;
NixOS#226 on libutil; NixOS#230 on libfetchers; NixOS#234 on libstore).

NixOS#235 carries a user-visible behaviour change: nix-store --realise
now warns about missing --add-root regardless of store type
(matching nix-instantiate's existing behaviour). rl-next entry
ships on the same branch.

Final cross-shard audit: zero true violations. The few remaining
multi-directory commits are either consumer call-site adoption
(libflake/libmain → src/nix/) which is the normal "ripple" pattern,
or internal-api-docs/source pairs which are auto-updated when
public surface changes — neither blocks independent landing.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants