Complie PERL Solaris 9 64-bit problems

K

krigare

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 ---
elf64_sparc:
-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

or
# 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
elf64_sparc:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,981
Messages
2,570,187
Members
46,730
Latest member
AudryNolan

Latest Threads

Top