From nobody  Tue Nov 24 14:12:08 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id OAA13686;
          Tue, 24 Nov 1998 14:12:08 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199811242212.OAA13686@hub.freebsd.org>
Date: Tue, 24 Nov 1998 14:12:08 -0800 (PST)
From: sdn@slip.net
To: freebsd-gnats-submit@freebsd.org
Subject: 'ELF interpreter /usr/libexec/ld-elf.so.1 not found' after running 'mysqld' from package mysql-3.21.33.tgz
X-Send-Pr-Version: www-1.0

>Number:         8850
>Category:       ports
>Synopsis:       'ELF interpreter /usr/libexec/ld-elf.so.1 not found' after running 'mysqld' from package mysql-3.21.33.tgz
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 24 14:20:00 PST 1998
>Closed-Date:    Tue Nov 24 14:23:26 PST 1998
>Last-Modified:  Tue Nov 24 14:25:50 PST 1998
>Originator:     Steve Davidson
>Release:        2.2.7-RELEASE
>Organization:
>Environment:
FreeBSD monarch.slip.net 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Wed Jul 22 08:48:29 GMT 1998     root@builder.cdrom.com:/usr/src/sys/compile/GENERIC  i386
>Description:
Subject: ELF interpreter /usr/libexec/ld-elf.so.1 not found

Description:
        On FreeBSD 2.2.7, when I run /usr/local/libexec/mysqld (ver. 3.21.33, installed
        via 'pkg_add'), I get:

% ./mysqld
ELF interpreter /usr/libexec/ld-elf.so.1 not found
Abort

How-To-Repeat: 
Download mysql-3.21.33.tgz from any 'ftp://ftp.freebsd.org/pub/freebsd/packages-current' location
Do a 'pkg_add mysql-3.21.33.tgz' and the error will appear during the pkg add.
        
Also, run '/usr/local/libexec/mysqld' anytime after the install.

Fix: 
I assume that I need to acquire the file /usr/libexec/ld-elf.so.1 and place it in
'/compat/linux'.  

I can't find the file anywhere on my system.

Submitter-Id:   sdn@slip.net  
Originator:     Steve Davidson
Organization:  
MySQL support: none 
Synopsis:       mysqld produces the error: 'ELF interpreter /usr/libexec/ld-elf.so.1 not found'
Severity:       critical
Priority:       high
Category:       mysql
Class:          support
Release:        mysql-3.21.33 (FreeBSD package distribution)

Environment:
        <machine, os, target, libraries (multiple lines)>
System: FreeBSD 2.2.7-RELEASE root@builder.cdrom.com:/usr/src/sys/compile/GENERIC  i386


Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gcc /usr/bin/cc
GCC: gcc version 2.7.2.1
Compilation info: CC='gcc'  CFLAGS=''  CXX='gcc'  CXXFLAGS=''  LDFLAGS=''
Configure command: --with-unix-socket-path=/var/tmp/mysql.sock --with-low-memory --with-mit-threads=yes
Perl: This is perl, version 4.0

>How-To-Repeat:
How-To-Repeat: 
Download mysql-3.21.33.tgz from any 'ftp://ftp.freebsd.org/pub/freebsd/packages-current' location
Do a 'pkg_add mysql-3.21.33.tgz' and the error will appear during the pkg add.
        
Also, run '/usr/local/libexec/mysqld' anytime after the install.


>Fix:
Fix: 
I assume that I need to acquire the file /usr/libexec/ld-elf.so.1 and place it in
'/compat/linux'.  

I can't find the file anywhere on my system.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: billf 
State-Changed-When: Tue Nov 24 14:23:26 PST 1998 
State-Changed-Why:  
Originator is running a 2.2.x system, and downloading from packages-current 
He _should_ download from packages-stable or packages-2.2.7. 

ELF programs tend to fail on a.out systems. 
>Unformatted:
