Re: [osol-discuss] gcc compilation problem after upgrade to solaris 11.0

2011-12-10 Thread Ali Bahrami
On 12/10/11 4:20 AM, Bruno Damour wrote: Hello, I upgraded some time ago from solaris 11 express to solaris 11.0. I have a gcc/gnu installation built from sources in a zone. I've discovered that trying now to compile doesn't work any longer. Typically, configure fails with a message seaming to

Re: [osol-discuss] 32-bit noexec_user_stack on per-process basis?

2010-10-21 Thread Ali Bahrami
On 10/20/10 21:42, Richard L. Hamilton wrote: While I still like the idea of a runtime function (new syscall or extension to mprotect()) to control default stack or heap permissions (mainly for use with a preloadable shared object to apply to existing binaries that don't have a spare program

Re: [osol-discuss] 32-bit noexec_user_stack on per-process basis?

2010-10-20 Thread Ali Bahrami
On 10/20/10 3:39 AM, casper@sun.com wrote: I had a few minutes today to try an experiment, and I'm afraid the idea of having ld always generate a PT_SUNWSTACK is a non-starter. The problem is that it overrides the behavior of 'set noexec_user_stack=1' in /etc/system, and can

Re: [osol-discuss] 32-bit noexec_user_stack on per-process basis?

2010-10-19 Thread Ali Bahrami
On 10/17/10 10:01, Ali Bahrami wrote: I've had the same thought about having ld always generate a PT_SUNWSTACK, and even sent some internal email yesterday proposing it to my fellow linker alien. It's actually simpler than what we do now, since we'd just remove the code that checks the header

Re: [osol-discuss] 32-bit noexec_user_stack on per-process basis?

2010-10-17 Thread Ali Bahrami
On 10/17/10 4:58 AM, Richard L. Hamilton wrote: While it doesn't help existing binaries, would it be possible to for new 32-bit binaries persuade the linker to issue a redundant (same as ABI) PT_SUNWSTACK header? That I suppose elfedit _would_ be able to change after-the-fact. I gather one

Re: [osol-discuss] 32-bit noexec_user_stack on per-process basis?

2010-10-16 Thread Ali Bahrami
On 10/16/10 08:54 AM, Richard L. Hamilton wrote: Doesn't help with existing binaries, but it's good to know for when one can re-link. If there's a way to construct an LD_PRELOAD'able shared object to do the trick for existing binaries, I don't see how given the description of mprotect(2), to

Re: [osol-discuss] Doc for build upgrade

2010-09-02 Thread Ali Bahrami
On 09/02/10 08:18, Rob McMahon wrote: On 02/09/2010 12:30, Rob McMahon wrote: Eric Andersen wrote: If you want to build the official Oracle ON, I don't know. I think you need access to closed bits of the OS. If you want to move to the Illumos ON, there are instructions here (at least to get

Re: [osol-discuss] Community distro, teamwork and being clear

2010-07-22 Thread Ali Bahrami
On 07/22/10 14:19, Paul Gress wrote: On 07/22/10 04:35 AM, Dennis Clarke wrote: See : http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/sgs/packages/common/SUNWonld-README Note that there is specific references to Solaris 8 and Solaris 10 update 10 and Nevada and even Solaris

Re: [osol-discuss] Using opensolaris 134 and sunstudio compiler

2010-07-20 Thread Ali Bahrami
Andre Lue wrote: getting ld: fatal: file smartd.o: wrong ELF class: ELFCLASS64 when trying to build 64 bit versions of programs for most things where the 32 bit version builds fine. gmake all-recursive gmake[1]: Entering directory `/home/andre.l/smart/smartmontools-5.38' Making all in .

Re: [osol-discuss] Solaris gcc but gnu-ld

2010-07-12 Thread Ali Bahrami
On 07/11/10 07:40, Günther Schmidt wrote: Hi all, is it possible to make Sun's gcc-3.4.3 use the gnu linker instead of the hard-wired Sun ld? Günther Hi Günther, From reading the rest of this thread, I gather that the GNU ld -x option is the problem. -x --discard-all

Re: [osol-discuss] Solaris gcc but gnu-ld

2010-07-12 Thread Ali Bahrami
On 07/12/10 14:37, Günther Schmidt wrote: Hi Ali, as it turns out everything went fine, ie. the compilation of ghc (6.10.4) succeeded without problems. The configure script was already set to check whether ld understood the -x option or not, but it chose the ld it found in the path, which was

Re: [osol-discuss] Solaris gcc but gnu-ld

2010-07-12 Thread Ali Bahrami
On 07/12/10 15:00, Rainer Orth wrote: Ali Bahramiali.bahr...@oracle.com writes: It sounds like configure is using the wrong test. Indeed, this is plain nonsense. Rather than ask which ld is in the users path, it should be asking which ld the compiler is configured to use. Of course,

Re: [osol-discuss] open source apps on Solaris OpenSolaris Nevada etc.

2010-04-30 Thread Ali Bahrami
Dennis Clarke wrote: ELF Header ei_magic: { 0x7f, E, L, F } ei_class: ELFCLASS32 ei_data: ELFDATA2LSB ei_osabi: ELFOSABI_SOLARISei_abiversion: EAV_SUNW_CURRENT e_machine: EM_386 e_version: EV_CURRENT e_type: ET_EXEC e_flags:

Re: [osol-discuss] OpenSolaris, Solaris 10, SXCE, Indiana: which to use for a developer?

2010-01-02 Thread Ali Bahrami
Jürgen Keil wrote: On Sat, Jan 02, 2010, Jürgen Keil wrote: [OpenSolaris Indiana: GNU?] Well, it does have both the gnu utilities (/usr/gnu/bin) and the solaris counterparts, and in the default setup the /usr/gnu/bin directory is ahead of /usr/bin in $PATH. I simply removed /usr/gnu/bin from

Re: [osol-discuss] ld: fatal: Error 1 running make on libiconv 1.13.1

2009-10-25 Thread Ali Bahrami
Pen-Yuan Hsing wrote: Hello, I am trying to compile and install the latest libiconv 1.13.1 (downloaded directly from the official GNU site) on my installation of i386 OpenSolaris 2009.06. 1. [i]./configure --prefix=/usr/gnu --enable-shared --with-pic[/i] 2. [i]make[/i] ends with this error:

Re: [osol-discuss] emacs mappings on opensolaris

2009-10-14 Thread Ali Bahrami
Harry Putnam wrote: When I first started using opensolaris about a yr ago... some kind soul here told me how to set things up so that emacs works like it does on linux. Not having to use Esc-x instead of M-x for example.. and so that backspc does delete to the left... I don't recall if there

Re: [osol-discuss] [zfs-discuss] Which kind of ACLs does tmpfssupport?

2009-09-15 Thread Ali Bahrami
Roland Mainz wrote: Umpf... the matching code is linked with -Bdirect ... AFAIK I can't interpose library functions linked with this option, right ? You could set LD_NODIRECT to defeat direct bindings --- see ld.so.1(1). However, I agree with the thought that it would be easier to just have a

Re: [osol-discuss] How Best to Handle

2008-07-30 Thread Ali Bahrami
Daniel Templeton wrote: snip 2) Offer a single package that includes all the tuned libraries under a sub-directory and provide a way to switch among them, such as the modules command (which is on our list of things to port). This sounds like a pretty good match for hardware

Re: [osol-discuss] Problems compiling Build 87

2008-04-11 Thread Ali Bahrami
Joerg Schilling wrote: Is this expected or did I do something wrong: Check ELF runtime attributes ./lib/amd64/libc.so.1: .SUNW_dynsymsort: duplicate 0x0015a500: $dtrace30275.mutex_lock_kernel, mutex_lock_kernel ./lib/amd64/libc.so.1: .SUNW_dynsymsort: duplicate

Re: [osol-discuss] BSD vs SYSV ps (was [osol-announce] No update on SXCE Build 79)

2008-02-01 Thread Ali Bahrami
[EMAIL PROTECTED] wrote: Agreed, especially since both ps's are really the same program: % ls -ilF /usr/bin/ps /usr/ucb/ps 198275 -r-xr-xr-x 71 root bin 8164 Jan 27 02:11 /usr/bin/ps* 198275 -r-xr-xr-x 71 root bin 8164 Jan 27 02:11 /usr/ucb/ps* No, not really.

[osol-discuss] BSD vs SYSV ps (was [osol-announce] No update on SXCE Build 79)

2008-01-31 Thread Ali Bahrami
James Carlson wrote: [EMAIL PROTECTED] writes: One particular annoyance of mine being that it is fairly easy to write a single ps which does both ps -ef and ps uxga. Not only easy to write, but that's the default on other OSes. (AIX had that a decade or more ago. :-) That's one of the

Re: [osol-discuss] Solaris 11 release timing (or should I run Solaris 10 on a laptop?)

2007-11-26 Thread Ali Bahrami
Sergio Enrique Schvezov wrote: Maybe things have changed... [i]Here at IBM Rational, we are not using OpenSolaris at all - we are tasked with making things work on Solaris 10, not OpenSolaris. What external version of Solaris 10 will have this linker fix, and in what expected

Re: [osol-discuss] gcc with GNU ld ?

2007-09-08 Thread Ali Bahrami
Akhilesh Mritunjai wrote: Joerg, I'm aware of the issue... but what I'm actually saying is that wouldn't it be more consistent if gcc uses gld and sun cc uses sun ld ? This message posted from opensolaris.org ___ opensolaris-discuss

Re: [osol-discuss] Two problems in the nightly build mail

2007-07-06 Thread Ali Bahrami
陶捷 Tao Jie wrote: I don't know, but I've succeeded to build ON b66 with SS12 and it works well now. But it's a debug version. And as I've mentioned in the previous email, I fail to Install the non-debug version. 2007/7/6, Boyd Adamson [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:

Re: [osol-discuss] Two problems in the nightly build mail

2007-07-05 Thread Ali Bahrami
陶捷 Tao Jie wrote: snip Check ELF runtime attributes ./lib/amd64/libelf.so.1: .SUNW_dynsymsort: duplicate 0x00023e38: elf32_getehdr, _elf32_getehdr ./lib/amd64/libelf.so.1: .SUNW_dynsymsort: duplicate 0x000240c8: _elf32_getphdr, elf32_getphdr

Re: [osol-discuss] librtld_db failed to initialize; symbols from

2007-07-02 Thread Ali Bahrami
Madhusudhan Reddy wrote: Thanks mph i have checked the values of ulimit for both process and file...both are set as unlimited. As you have said that core might be truncated.Actually i have seen this problem coming only a few times...why is it so ? I have taken the output of truss and but i