Re: [osol-discuss] Perl 6 on snv_55b x86

2007-06-07 Thread Rod Evans
Stefan Parvu wrote: If you were to elfdump(1) the archive object, I think you'll discover the same error. the result after elfdump: http://www.nbl.fi/~nbl97/elfdump.libHSCabal.a.out.gz Hmm, no errors, it seems that for once ld(1) has some stronger error checking than elfdump - I should fix

Re: [osol-discuss] Perl 6 on snv_55b x86

2007-06-05 Thread Rod Evans
Stefan Parvu wrote: ld: fatal: symbol `s44W_info' in file /export/home/sparvu/ghc/lib/ghc-6.6.1/libHSCabal.a(Utils__90.o): \ section [1] .text: size 1042: symbol (address 0x400, size 20) lies outside of containing section ... Anyone any ideas ? Is this a GNU ld / Sun ld issue ? The

[osol-discuss] Re: [tools-linking] Making a secured process

2007-05-24 Thread Rod Evans
Vishwajeet wrote: Q-2 If my executable has a dependency then it should load that dependency only from /usr/lib/secure or /lib/secure. In my another program it is not taking from /usr/lib/secure rather it is taking from /usr/lib/ or /lib as default path for looking a shared object. ld.so.1(1)

[osol-discuss] Re: What code construct would create a Relative relocation record

2007-02-22 Thread Rod Evans
Go visit: http://www.opensolaris.org/jive/thread.jspa?threadID=24771tstart=0 http://www.opensolaris.org/jive/thread.jspa?threadID=24565tstart=0 Might you all be involved in the same discussion? -- Rod. This message posted from opensolaris.org

Re: [osol-discuss] Assembler Output

2007-01-23 Thread Rod Evans
Deepak Bhatia wrote: I am working on a project related to the dynamic linker on Solaris. You have asked a number of rudimentary questions in regards this area of Solaris on this alias, and I have suggested that you target your questions to [EMAIL PROTECTED], which is a more appropriate alias

Re: [osol-discuss] Assembler Output

2007-01-23 Thread Rod Evans
[EMAIL PROTECTED] wrote: Rod Evans wrote: Given that we're now several years into the *new* Solars :-), I have on my list of things to do, the EOL of all this AOUT technology. I find it hard to believe that anyone still expects a 4.x binary to run on Solaris (although Sun had a few squirreled

Re: [osol-discuss] Debug the Dynamic Linker

2007-01-16 Thread Rod Evans
Deepak Bhatia wrote: Will it possible for you to help us in case we ask questions inside the dynamic linker code ? I recommend you send questions to [EMAIL PROTECTED] I'm on this alias, and so are a lot of others who may be able to help. -- Rod.

Re: [osol-discuss] RE: usr/src/tools/proto (was Installing Solaris Sources, onbld tools, compilers)

2007-01-10 Thread Rod Evans
Deepak Bhatia wrote: #bldenv -d ./opensolaris.sh Then I goto particular directory to do dmake all. It says sh:/usr/src/cmd/sgs/tools/i386/sgsmsg It looks like this is the continuation of a previous post where you're trying to build the runtime linker :-) As with many subsystems under

Re: [osol-discuss] Debug the Dynamic Linker

2007-01-09 Thread Rod Evans
Deepak Bhatia wrote: mdb document seems to be very large. Do we have a quick user guide for the same. There's some Tips and Tricks here: http://www.opensolaris.org/os/community/mdb/ perhaps that'll help you start. -- Rod. ___

Re: [osol-discuss] Debug the Dynamic Linker

2007-01-08 Thread Rod Evans
DEEPAK BHATIA wrote: Can anyone please suggest how to proceed ? How do I tell the OS to invoke my dynamic linker instead of the original one. You can explicitly invoke a different runtime linker: oxpoly 428. cp /usr/lib/ld.so.1 /tmp/ld.so.1 oxpoly 429. /tmp/ld.so.1 /bin/cat [1] 17398

Re: [osol-discuss] wrong ELF class: ELFCLASS64

2006-12-19 Thread Rod Evans
Mohd Hisham Auyob wrote: ld: fatal: file /oracle/app/oracle/product/10.2.0/lib//libclntsh.so: wrong ELF class: ELFCLASS64 ld: fatal: file /oracle/app/oracle/product/10.2.0/lib/scorept.o: wrong ELF class: ELFCLASS64 ld: fatal: File processing errors. No output written to t.exe

Re: [osol-discuss] Finding the path for libraries

2006-11-30 Thread Rod Evans
Joerg Schilling wrote: The problem is that I need an address from inside the module in case I like to get the name for an arbitrary library handle. Do you believe that it should always work to try retrieving the address for _DYNAMIC? Yes, I don't know of any dynamic objects that don't have a

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Rod Evans
Joerg Schilling wrote: This may still not prove your claim as the final ELF spec has been done by Sun and ATT as part of the the joined work for SVr4. The original ELF spec was indeed created by these players. But, the design allowed for a great deal of extensibility. All of the UN*X's have

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-27 Thread Rod Evans
Alan Modra wrote: On Mon, Nov 27, 2006 at 10:04:42PM +0100, Martin Man wrote: There seems to be a bug in GNU ld that does not link filter symbols properly. I'd hardly call it a bug. By the sound of things, Sun has made some extensions to ELF that GNU ld doesn't understand. Someone (you

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-27 Thread Rod Evans
Alan Modra wrote: The question, I think, is why the ABS state of the symbol *definition* is inherited by the symbol state of the *reference*. A reference is typically undefined (UNDEF). Perhaps because the Sys V ABI says: SHN_ABS The symbol has an absolute value that will not change

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-27 Thread Rod Evans
Rod Evans wrote: Martin might have to add some c stub functions to his builds so that his libraries provide non-ABS filter symbols in the mean time. Arrr, but then the gnu linker probably doesn't grok symbol filter definitions from a mapfile, so the sc tub trick wouldn't provide much use

Re: [osol-discuss] shared library symbols at address 0x00000000

2006-11-17 Thread Rod Evans
Martin Man wrote: I'm just curious why this happens, what these symbols mean, and what are they used for. Seems that GNU ld is picking them up in situations where it shouldn't be, and I would like to reproduce a test case where ld can deliberately exhibit this bug. ... P.S. an excerpt of $

Re: [osol-discuss] problem while compiling php

2006-10-25 Thread Rod Evans
wb wrote: Hi. I try to compile php 5.16 for apache 2.059 and mysql 4.0.17: ./configure --with-apxs2=/usr/local/apache/bin/apxs --enable-ftp --with-mysql=/usr/local/mysql and when I try to make, it finishes sadly as: ... getenv 0xd5

Re: [osol-discuss] Re: problem while compiling php

2006-10-25 Thread Rod Evans
wb wrote: uh? could you explain please? There is a flag that you can pass to ld(1), -z text that: In dynamic mode only, forces a fatal error if any relo- cations against non-writable, allocatable sections remain. For historic reasons, this mode is not

Re: [osol-discuss] Linker switch to check whether library symbols collide with libc ?

2006-09-18 Thread Rod Evans
Does Solaris and/Or Sun Studio have any linker/compiler flags to warn users if a library or other code defines a symbol which is already used by libc ? For example MacOSX seems to create the following output when you define |strtol| in an application library (this is from

Re: [osol-discuss] Linker switch to check whether library symbols collide with libc ?

2006-09-16 Thread Rod Evans
Roland Mainz wrote: Does Solaris and/Or Sun Studio have any linker/compiler flags to warn users if a library or other code defines a symbol which is already used by libc ? -- snip -- I'd like to get similar output in Solaris - is that somehow possible ? Multiple definitions within dynamic

Re: [osol-discuss] Re: Compiling sysbench on Solaris 10

2006-09-08 Thread Rod Evans
Frank Mash wrote: # Set up my environment CC=/opt/SUNWspro/bin/cc CFLAGS=-xarch=v9 LD_LIBRARY_PATH=/usr/local/mysql/lib:/usr/ccs/lib:/usr/lib:/usr/local/lib:/lib:/usr/ucblib These three paths are searched by

Re: [osol-discuss] Re: Compiling sysbench on Solaris 10

2006-09-08 Thread Rod Evans
Torrey McMahon wrote: Rod Evans wrote: I'd have thought things could be simpler by adding: -L usr/local/mysql/lib -L /usr/local/lib to the link-edit command line (LDFLAGS?). And don't forget, LD_LIBRARY_PATH is recognized by the runtime linker (ld.so.1) too. Thus you are forcing

Re: [osol-discuss] Re: Re: Re: Re: Re: Compiling sysbench on Solaris 10

2006-09-06 Thread Rod Evans
Martin Bochnig wrote: you cannot mix -xarch=v9 and -xarch=v8 objects. Somethings gets compiled 32 bits, something else 64bits, then the /usr/ccs/bin/ld linker cannot link different ELFCLASS objects. It might be a mistake in a makefile. Looks very good otherwise. Try to either make everything

Re: [osol-discuss] B37 fails to build with Text relocation remains against symbol unknown in /usr/lib/64/values-xpg6.o

2006-05-25 Thread Rod Evans
Roland Mainz wrote: + /opt/SUNWspro/bin/cc -xO3 -xarch=amd64 . -L/home/test001/ksh93/on_build1/test1/usr/src/cmd/sgs/libconv/amd64 -lconv -lc Text relocation remains referenced against symbol offset in file unknown

[osol-discuss] Re: [tools-linking] ld.so refuses to properly handle paths with colon

2006-05-02 Thread Rod Evans
Note: I'm moving this conversation over to [EMAIL PROTECTED] To follow up, please use tools-linking and drop opensolaris-discuss. Holger Berger wrote: On 4/30/06, Rod Evans [EMAIL PROTECTED] wrote: The colon has been the standard separator of multiple pathnames within the link-editing

Re: [osol-discuss] ld.so refuses to properly handle paths with colon

2006-04-30 Thread Rod Evans
[EMAIL PROTECTED] wrote: No, this is another case In short you cannot dlopen a library with a : in the pathname That seems like a bug. Perhaps, but the intent has been to make all pathname processing within ld.so.1 consistent. FILTERS, RUNPATHS, LD_LIBRARY_PATH, dependencies, in fact,

Re: [osol-discuss] ld.so refuses to properly handle paths with colon

2006-04-29 Thread Rod Evans
Robert Lunnon wrote: Wine now uses softlinks named x: (where x is the device name to link to) placed in the filesystem. Wine preserved the Windows naming including the colon in the link name. Unfortunately ld.so.1 doesn't seem to be able to load a library across these links being confused by

Re: [osol-discuss] linker behaviour

2005-10-05 Thread Rod Evans
Robert Lunnon wrote: I have run across a problem in the latest wine sources, that seems to be related to the linker (This is on Solaris 10 GA BTW). Wine's gcc links shared libraries including an archive (.a) that defines main() (main calls WinMain and format the command line for

[osol-discuss] New community - Tools/Dynamic Linking

2005-09-15 Thread Rod Evans
The tools community has a new member - Dynamic Linking http://www.opensolaris.org/os/community/tools/linker and its own alias: [EMAIL PROTECTED] Comments, questions and lively discussions, welcome. -- Rod. ___ opensolaris-discuss mailing list

[osol-discuss] New community proposal: Dynamic Linking

2005-08-29 Thread Rod Evans
I'd like to propose the creation of a new community that focuses on Dynamic Linking. Primarily, this would discuss issues regarding the runtime linker (ld.so.1(1)), and link-editor (ld(1)). However, having supported these utilities for some time now, the core issues that are normally discussed

Re: [osol-discuss] Re: Re: Why I do think OpenSolaris ought to work with Debian (fwd)

2005-07-26 Thread Rod Evans
Laszlo Peter wrote: Hi Rod, Thanks for the detailed response. Of course I agree that it's better to avoid the problem by carefully controlling public interface changes. However more and more software in Solaris comes from external sources ... So we can't break the interfaces we'd shipped

Re: [osol-discuss] Re: Re: Why I do think OpenSolaris ought to work with Debian (fwd)

2005-07-23 Thread Rod Evans
Laca wrote: As far as I understand, the main problem with multiple versions (apart from the increased maintenance effort) is that different versions of the same lib may end up linked to the same executable (through dependent libs) and it'll cause unpredictable runtime linking and most likely a