symbolfunction(): compiletime configuration error? Failed to open "libc.so": /usr/lib/x86_64-linux-gnu/libc.so: invalid ELF header

Bug #955044 reported by Bruno Bigras
This bug report is a duplicate of:  Bug #816153: dante-server using the wrong libc.so. Edit Remove
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
dante (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I wasn't able to start dante-server on Ubuntu 11.10 (oneiric)

$ sudo service danted start
Starting Dante SOCKS daemon: Mar 14 13:20:22 (1331731222) danted[16798]: socks_seteuid(): old: 0, new: 13
Mar 14 13:20:22 (1331731222) danted[16798]: socks_reseteuid(): current: 13, new: 0
Mar 14 13:20:22 (1331731222) danted[16798]: socks_seteuid(): old: 0, new: 65534
Mar 14 13:20:22 (1331731222) danted[16798]: socks_reseteuid(): current: 65534, new: 0
Mar 14 13:20:22 (1331731222) danted[16798]: socks_seteuid(): old: 0, new: 65534
Mar 14 13:20:22 (1331731222) danted[16798]: socks_reseteuid(): current: 65534, new: 0
Mar 14 13:20:22 (1331731222) danted[16798]: fixsettings(): no methods enabled (total block)
Mar 14 13:20:22 (1331731222) danted[16798]: symbolfunction(): compiletime configuration error? Failed to open "libc.so": /usr/lib/x86_64-linux-gnu/libc.so: invalid ELF header
Mar 14 13:20:22 (1331731222) danted[16798]: sockdexit()
Mar 14 13:20:22 (1331731222) danted[16798]: sockdexit(): terminating

Revision history for this message
jan edholm (jan-edholm) wrote :

Same for me. Bummer. Worked so nice before...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dante (Ubuntu):
status: New → Confirmed
Revision history for this message
gk (kellygp) wrote :

This is related to: https://bugs.launchpad.net/ubuntu/+source/dante/+bug/816153

Bacause if I change the filename in the workaround the same technique works again:

sudo ln -sf /lib/x86_64-linux-gnu/libc-2.13.so /usr/lib/x86_64-linux-gnu/libc.so

changed to

sudo ln -sf /lib/x86_64-linux-gnu/libc-2.15.so /usr/lib/x86_64-linux-gnu/libc.so

See libc-2.15 for 12.04

Revision history for this message
Charles (slivkoff) wrote :

This issue continues in 12.04

The workaround of linking libc.so in /usr/lib/x86_64-linux-gnu/ will cause a problem with libc6-dev.

$ dpkg -S /usr/lib/x86_64-linux-gnu/libc.so
libc6-dev: /usr/lib/x86_64-linux-gnu/libc.so

Instead, by running danted through strace, I found:

  open("/lib/x86_64-linux-gnu/libc.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

just before

  open("/usr/lib/x86_64-linux-gnu/libc.so", O_RDONLY|O_CLOEXEC) = 4

Which then caused the error.

So, here is a cleaner solution:

$ cd /lib/x86_64-linux-gnu
$ sudo ln -s libc.so.6 libc.so

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.