Hello,
Here:http://www.mail-archive.com/[email protected]/msg06933.html
I found that rdynamic is used by linux and -Wl,--export-dynamic by Sun Solaris.
You need to adapt your sripts or makefile.
But when I replace LDFLAGS = -rdynamic
by
LDFLAGS = -Wl,--export-dynamic
in the file Makefile.config
(I use :
ld: Software Generation Utilities - Solaris Link Editors: 5.8-1.284
on Sun Solaris 8 Sparc)
I have this error:
make[3]: Entering directory
`/home/webadm/mnogosearch/parser/elinks-0.12-20060911/src/viewer/text'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/webadm/mnogosearch/parser/elinks-0.12-20060911/src/viewer/text'
make[2]: Leaving directory
`/home/webadm/mnogosearch/parser/elinks-0.12-20060911/src/viewer'
[LINK] src/elinks
/usr/ccs/bin/ld: illegal option -- -
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)
[-64] enforce a 64-bit link-edit
[-a] create an absolute file
[-b] do not do special PIC relocations in a.out
[-B direct] specify `direct' bindings for executable when run
[-B dynamic | static]
search for shared libraries|archives
[-B eliminate] eliminate unqualified global symbols from the
symbol table
[-B group] relocate object from within group
[-B local] reduce unqualified global symbols to local
[-B reduce] process symbol reductions
[-B symbolic] bind external references to definitions when creating
shared objects
[-c name] record configuration file `name'
[-C] demangle C++ symbol name diagnostics
[-d y | n] operate in dynamic|static mode
[-D token,...] print diagnostic messages
[-e epsym] use `epsym' as entry point address
[-f name] specify library for which this file is an auxiliary
filter
[-F name] specify library for which this file is a filter
[-G] create a shared object
[-h name] use `name' as internal shared object identifier
[-i] ignore LD_LIBRARY_PATH setting
[-I name] use `name' as path of interpreter
[-l x] search for libx.so or libx.a
[-L path] search for libraries in directory `path'
[-m] print memory map
[-M mapfile] use processing directives contained in `mapfile'
[-N string] create a dynamic dependency for `string'
[-o outfile] name the output file `outfile'
[-p auditlib] identify audit library to accompany this object
[-P auditlib] identify audit library for processing the dependencies
of this object
[-Q y | n] do|do not place version information in output file
[-r] create a relocatable object
[-R path] specify a library search path to be used at run time
[-s] strip any symbol and debugging information
[-S supportlib]
specify a link-edit support library
[-t] do not warn of multiply-defined symbols that have
different sizes or alignments
[-u symname] create an undefined symbol `symname'
[-V] print version information
[-Y P,dirlist] use `dirlist' as a default path when searching for
libraries
[-z absexec] when building an executable absolute symbols
referenced in dynamic objects are promoted to
the executable
[-z allextract | defaultextract | weakextract]
extract all member files, only members that resolve
undefined tor tentative symbols, or allow extraction of
archive members to resolvetweak references from
archive files
[-z combreloc] combine multiple relocation sections
[-z nocompstrtab] disable compression of string tables
[-z defs] disallow undefined symbol references
[-z endfiltee] marks a filtee such that it will terminate a filters
search
[-z finiarray=function]
name of function to be appended to the .finiarray
[-z groupperm | nogroupperm]
enable|disable setting of group permissions
on dynamic dependencies
[-z ignore | record]
ignore|record unused dynamic dependencies
[-z initarray=function]
name of function to be appended to the .initarray
[-z initfirst] mark object to indicate that its .init section should
be executed before the .init section of any other
objects
[-z interpose] dynamic object is to be an `interposer' on direct
bindings
[-z lazyload | nolazyload]
enable|disable delayed loading of shared objects
[-z ld32=arg1,arg2,...]
define arguments applicable to the 32-bit class of ld(1)
[-z ld64=arg1,arg2,...]
define arguments applicable to the 64-bit class of ld(1)
[-z loadfltr] mark filter as requiring immediate loading of its
filtees at runtime
[-z muldefs] allow multiply-defined symbols
[-z nodefs] allow undefined symbol references
[-z nodefaultlib]
mark object to ignore any default library search path
[-z nodelete] mark object as non-deletable
[-z nodlopen] mark object as non-dlopen()'able
[-z nodump] mark object as non-dldump()'able
[-z nopartial] expand any partially initialized symbols
[-z noversion] don't record any version sections
[-z now] mark object as requiring non-lazy binding
[-z origin] mark object as requiring $ORIGIN processing
[-z preinitarray=function]
name of function to be appended to the .preinitarray
[-z redlocsym] reduce local syms in .symtab to a minimum
[-z rescan] rescan archive list until no further member
extraction occurs
[-z text] disallow output relocations against text
[-z textoff] allow output relocations against text
[-z textwarn] warn if there are relocations against text
[-z verbose] generate warnings for suspicious processings
collect2: ld returned 1 exit status
make[1]: *** [elinks] Error 1
make[1]: Leaving directory
`/home/webadm/mnogosearch/parser/elinks-0.12-20060911/src'
make: *** [all-recursive] Error 1
Can you adapt your scripts or Makefile to use it on Sun Solaris 8 system ?
Thanks in advance.
Yannick
*******************************************
On Sun 10 September 2006, Kalle Olavi Niemitalo <[EMAIL PROTECTED]> writes:
> [LINK] src/elinks
> gcc: unrecognized option `-rdynamic'
> make[1]: Leaving directory `/home/webadm/elinks-0.12-20060823/src'
I think you can ignore this error message. An elinks executable
was still generated, wasn't it? Make didn't say that the
compiler returned an error.
Pasky added the -rdynamic option to LDFLAGS in commit
450ac0056a84d75a54675a98e7eb898599b9389a:
| Use -rdynamic when available. It makes backtrace work right and
| it will be a must when dynamic .so modules will be introduced
| (not that it would be anytime soon). Looks like zero or only very
| minimal overhead.
If I understand correctly, "dynamic .so modules" refers to
dynamic loading of ELinks-specific plugins that could then call
functions defined in the elinks executable. This has apparently
not been implemented; at least I cannot find any dlsym() calls.
And if the backtrace doesn't work right, that isn't fatal.
Two things could be done:
1. Fix the check in the configure scrip t, so that it detects if
the compiler does not support -rdynamic, even if the compiler
does not return an error. There is a FIXME about this.
2. On systems that do not support -rdynamic, make the scrip t
choose some other option that has a similar effect.
Which linker are you using on Solaris 8?
Does it support any such option?
How can the scrip t detect which option should be used?
________________________________________________________________________
iFRANCE, exprimez-vous !
http://web.ifrance.com
_______________________________________________
elinks-users mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-users