Skip to content

Instantly share code, notes, and snippets.

@tuantm8
Last active November 29, 2021 17:32
Show Gist options
  • Select an option

  • Save tuantm8/f5b5b70c9ee48464e5fb64cd8393b8d3 to your computer and use it in GitHub Desktop.

Select an option

Save tuantm8/f5b5b70c9ee48464e5fb64cd8393b8d3 to your computer and use it in GitHub Desktop.
Howto compile Bernstein’s daemontools. Source: http://siyahsapkaorg.blogspot.com/2015/05/howto-compile-bernsteins-daemontools-on.html #daemontools #multilog #envdir

###Problem: aokanx@aokanx-VirtualBox:~/Downloads/admin/daemontools-0.76$ ./package/install Linking ./src/* into ./compile... Compiling everything in ./compile... sh find-systype.sh > systype rm -f compile sh print-cc.sh > compile ... ./load envdir unix.a byte.a /usr/bin/ld: errno: TLS definition in /lib/x86_64-linux-gnu/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o /lib/x86_64-linux-gnu/libc.so.6: error adding symbols: Bad value collect2: error: ld returned 1 exit status make: *** [envdir] Error 1

###Solution: Add gcc parameter: -include /usr/include/errno.h to admin/daemontools-0.76/src/conf-cc

###Compile: aokanx@aokanx-VirtualBox:~/Downloads/admin/daemontools-0.76$ sudo ./package/install [sudo] password for aokanx: Linking ./src/* into ./compile... Compiling everything in ./compile... make: Nothing to be done for `default'. Copying commands into ./command... Creating symlink daemontools -> daemontools-0.76... Making command links in /command... Making compatibility links in /usr/local/bin... Creating /service... Adding svscanboot to /etc/rc.local... Reboot now to start svscan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment