Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #16223

Closed (moved)
(moved)
Open
Created May 27, 2015 by Trac@tracbot

Torsocks v2.1.0 fails to build on RHEL/CentOS 5.x

The newly-released torsocks v2.1.0 does not build in RHEL/CentOS v5.11 (all updates applied.)

This is the first error:

In file included from ref.h:23, from connection.h:28, from defaults.h:21, from log.c:27: compat.h:133:25: error: sys/eventfd.h: No such file or directory make[2]: *** [log.lo] Error 1

This is due to the fact that eventfd.h really does not exist on this system. If I change the include from sys/eventfd.h to sys/syscall.h the compile finishes without error, but then the link fails:

../../src/lib/.libs/libtorsocks.so: undefined reference to eventfd' ../../src/lib/.libs/libtorsocks.so: undefined reference to inotify_init1' ../../src/lib/.libs/libtorsocks.so: undefined reference to epoll_create1' ../../src/lib/.libs/libtorsocks.so: undefined reference to epoll_pwait' collect2: ld returned 1 exit status

No problems seen when building on a CentOS6 system, just on CentOS5.

The prior v2.0.0 does build on CentOS5 with the help of some function attribute trickery (prepending ATTR_HIDDEN to several function and data definitions).

Trac:
Username: tmpname0901

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking