DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th May 2008
lesmando24 lesmando24 is offline
New User
 
Join Date: May 2008
Posts: 2
Default i386 6.x binaries not working on AMD64 7.x (with compat)

I have installed freebsd 7 AMD64 and need to run a vendor program compiled on freebsd 6 i386 (no source supplied).
I have installed the port misc/compat6x. But for some reason, it does not recognise to use the 32 bit libraries.
I have added the libraries supplied to ldconfig.

[root@glue Base]# ldconfig -32 -r
/var/run/ld-elf32.so.hints:
search directories: /usr/lib32:/usr/local/lib32/compat:/opt/hds/Base

ld fails with this error (but works perfectly on freebsd7 i386 with compat6x installed).

[root@glue Base]# ld cvfwd
ld: warning: i386 architecture of input file `cvfwd' is incompatible with i386:x86-64 output
ld: warning: cannot find entry symbol _start; defaulting to 00000000004017d8

I think I have not configured something with ld.

Any help would be appreciated.

thanks,

les
Reply With Quote
  #2   (View Single Post)  
Old 28th May 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

Does 32 bit compatibilty is actually working?

In other words does any 32 bit applications run in 64 bit environment on that machine?
Reply With Quote
  #3   (View Single Post)  
Old 28th May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Default

whats cvfwd? is it an object file?

or did you mean to do ldd cvfwd?
Reply With Quote
  #4   (View Single Post)  
Old 29th May 2008
lesmando24 lesmando24 is offline
New User
 
Join Date: May 2008
Posts: 2
Default

I am not sure if other i386 binaries are working, everything else I have installed using compat6x is a 64bit version.

Quote:
Originally Posted by ephemera View Post
whats cvfwd? is it an object file?

or did you mean to do ldd cvfwd?
Sorry about that, it was ldd. cvfwd one of the binaries supplied by the installaiton disc.

On AMD64

[root@glue Base]# ldd cvfwd
ldd: cvfwd: can't read program header
ldd: cvfwd: not a dynamic executable

On i386

its-les-vm# ldd cvfwd
cvfwd:
libpthread.so.2 => /usr/local/lib/compat/libpthread.so.2 (0x2809c000)
libc.so.6 => /usr/local/lib/compat/libc.so.6 (0x280c1000)
Reply With Quote
  #5   (View Single Post)  
Old 29th May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Default

pity i dont have fbsd64 to play with.

try asking on the amd64 mailing list
Reply With Quote
  #6   (View Single Post)  
Old 29th May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Default

see:
http://groups.google.com/group/lucky...de047fd11064cc
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone with AMD64 random panics on i386? indiocolifa FreeBSD General 13 24th March 2009 02:53 AM
HDD formatted UFS under AMD64 experiences weirdness under I386 Gemini FreeBSD General 4 9th December 2008 05:27 AM
Allow i386 and amd64 to boot from extended DOS partitions lvlamb OpenBSD General 4 16th July 2008 03:24 PM
i386 drivers on amd64 kienjakenobi FreeBSD Ports and Packages 5 25th June 2008 05:37 PM
Revert from AMD64 to i386 chavez243 FreeBSD General 6 6th May 2008 12:24 PM


All times are GMT. The time now is 08:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick