469,602 Members | 2,112 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

Complie PERL Solaris 9 64-bit problems

Here is what I get:
gcc -L/usr/local/lib -o miniperl \
miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lc
ld: fatal: file miniperlmain.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to miniperl
collect2: ld returned 1 exit status
make: *** [miniperl] Error 1

and ld -help shows ELF64_sparc support but not ELFCLASS64 Any
suggestions (this is ld from binutils-2.14)??
ld --help
Usage: ld [options] file...
-- trimed output of help ---
-Bgroup Selects group name lookup rules for DSO
--disable-new-dtags Disable new dynamic tags
--enable-new-dtags Enable new dynamic tags
--eh-frame-hdr Create .eh_frame_hdr section
-z combreloc Merge dynamic relocs into one section and sort
-z defs Disallows undefined symbols
-z initfirst Mark DSO to be initialized first at runtime
-z interpose Mark object to interpose all DSOs but executable
-z loadfltr Mark object requiring immediate process
-z muldefs Allow multiple definitions
-z nocombreloc Don't merge dynamic relocs into one section
-z nocopyreloc Don't create copy relocs
-z nodefaultlib Mark object not to use default search paths
-z nodelete Mark DSO non-deletable at runtime
-z nodlopen Mark DSO not available to dlopen
-z nodump Mark DSO not available to dldump
-z now Mark object non-lazy runtime binding
-z origin Mark object requiring immediate $ORIGIN processing
at runtime
-z KEYWORD Ignored for Solaris compatibility

# ld --help|grep 64
ld: supported targets: elf32-sparc elf64-sparc a.out-sunos-big
elf64-little elf64-big elf32-little elf32-big srec symbolsrec tekhex
binary ihex
ld: supported emulations: elf32_sparc elf64_sparc
Jul 19 '05 #1
0 2144

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Christian Eriksson | last post: by
9 posts views Thread by Martin Foster | last post: by
10 posts views Thread by Hendry Taylor | last post: by
13 posts views Thread by Otto J. Makela | last post: by
13 posts views Thread by Mary Lei | last post: by
1 post views Thread by bomahony | last post: by
reply views Thread by guiromero | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.