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

2011-12-10 Thread Bruno Damour

On 12/10/11 04:29 PM, Ali Bahrami wrote:

I think the error message about not finding stdio.h is likely at
the root of things. Have you installed the system header files?

# pkg search -r /usr/include/stdio.h
# INDEX  ACTION VALUE   PACKAGE
# path   file   usr/include/stdio.h 
pkg:/system/header@0.5.11-0.175.0.0.0.2.1


# pkg install system/header
OMG, you are right, I had to reinstall the zone, because it wouldn't 
upgrade, and I forgot to re-install system/header...

Thank you so much
Bruno
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Solaris 11 and Samba and change ACL do not work

2011-12-10 Thread Chris Ridd

On 9 Dec 2011, at 16:05, Andrew Watkins wrote:

> 
> Hi,
> 
> I will try here as my first port of call.
> 
> I am using Samba to server files to our Windows users and I want them to 
> change permissions of files so they can give access to other users.
> 
> Before any says anything I am doing this in a ZONE so CIFS server is not 
> available in Solaris zones.
> 
> Well, it does not seem to work and I have followed a few blog entries but 
> they all give the same result:
> 
> - Edit file properties
> - Add user to Windows Security Tab and select Apply:
>   "Unable to save permission changes on MyFile.txt"
>   "Access is denied"
> 
> Should this be a problem?
> 
> The blog entries I have followed (why are they never 100% complete!)
> 
> http://blog.mc-thias.org/?title=registering-a-samba-solaris-10-server-as-a-ms-ad-member&more=1&c=1&tb=1&pb=1
> 
> http://blog.allanglesit.com/2011/03/solaris-11-join-ad-domain-for-samba/
> 
> Any pointers?

Are you using "vfs objects = zfsacl" ?

This 

 looks useful...

Chris
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


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 guess that I'm trying to 
cross compile without providing a --host option.
I sort of guess this is related to solaris 11 now beeing 64bit only ?
Doesn anyone know how I could recover a working gcc (apart from installing the 
ips provided gcc which is gcc-4.5.2 and recompiling my gcc 4.6.2) ?
Thanks for any hint
Bruno

...

configure:6049: gcc -o conftest -I/usr/local/include -L/opt/local/lib -R/opt/local/lib 
conftest.c >&5

> conftest.c:17:19: fatal error: stdio.h: No such file or directory


   This has nothing to do with "Solaris being 64-bit only".
All that means is that there's no longer a 32-bit kernel.
Most people haven't run the 32-bit kernel for years, as x86
hardware has been able to support 64-bits for a long time.
Rest assured that S11's ability to run 32-bit code in natively
in userland is still there.

It's been ages since I built gcc, but I think that the messages about
cross compiling are just part of the process it goes through. Had the
test compile worked, it would likely have determined that it wasn't
building a cross compiler.

I think the error message about not finding stdio.h is likely at
the root of things. Have you installed the system header files?

# pkg search -r /usr/include/stdio.h
# INDEX  ACTION VALUE   PACKAGE
# path   file   usr/include/stdio.h 
pkg:/system/header@0.5.11-0.175.0.0.0.2.1

# pkg install system/header

- Ali
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


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

2011-12-10 Thread Bruno Damour

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 guess that I'm 
trying to cross compile without providing a --host option.

I sort of guess this is related to solaris 11 now beeing 64bit only ?
Doesn anyone know how I could recover a working gcc (apart from 
installing the ips provided gcc which is gcc-4.5.2 and recompiling my 
gcc 4.6.2) ?

Thanks for any hint
Bruno

Example from config.log

configure:5900: checking whether the C compiler works
configure:5922: gcc  -I/usr/local/include -L/opt/local/lib 
-R/opt/local/lib conftest.c >&5

configure:5926: $? = 0
configure:5975: result: yes
configure:5978: checking for C compiler default output file name
configure:5980: result: a.out
configure:5986: checking for suffix of executables
configure:5993: gcc -o conftest  -I/usr/local/include -L/opt/local/lib 
-R/opt/local/lib conftest.c >&5

configure:5997: $? = 0
configure:6019: result:
configure:6041: checking whether we are cross compiling
configure:6049: gcc -o conftest  -I/usr/local/include -L/opt/local/lib 
-R/opt/local/lib conftest.c >&5

conftest.c:17:19: fatal error: stdio.h: No such file or directory
compilation terminated.
configure:6053: $? = 1
configure:6060: ./conftest
./configure[6062]: eval[1]: ./conftest: not found [No such file or 
directory]

configure:6064: $? = 127
configure:6071: error: in `/root/data/R-2.14.0':
configure:6073: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org