linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* A configure error for samba3 on ppc
@ 2005-08-07  9:15 JohnsonCheng
  2005-08-09 10:24 ` Clemens Koller
  0 siblings, 1 reply; 4+ messages in thread
From: JohnsonCheng @ 2005-08-07  9:15 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 413 bytes --]

When I configure samba3.0.10 on ppc as following command:

CC=powerpc-linux-gcc AR=powerpc-linux-ar RANLIB=powerpc-linux-ranlib
./configure -host=powerpc-linux

 

I got a configure error message as following:

Configure: error: cannot run test program while cross compiling

See 'config.log' for more details

 

I think this is a samba configure bug, do anybody know how to pass it?

 

Thanks,

Johnson Cheng


[-- Attachment #2: Type: text/html, Size: 3541 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: A configure error for samba3 on ppc
  2005-08-07  9:15 A configure error for samba3 on ppc JohnsonCheng
@ 2005-08-09 10:24 ` Clemens Koller
  2005-08-09 10:54   ` JohnsonCheng
  0 siblings, 1 reply; 4+ messages in thread
From: Clemens Koller @ 2005-08-09 10:24 UTC (permalink / raw)
  To: JohnsonCheng; +Cc: linuxppc-embedded

Hi, JohnsonCheng!

you wrote:
> When I configure samba3.0.10 on ppc as following command:
> 
> CC=powerpc-linux-gcc AR=powerpc-linux-ar RANLIB=powerpc-linux-ranlib
> ./configure -host=powerpc-linux
> 
> I got a configure error message as following:
> Configure: error: cannot run test program while cross compiling
> See 'config.log' for more details
> 
> I think this is a samba configure bug, do anybody know how to pass it?

No, it's not a bug. It's exactly what the message trys to tell you.
Samba wants to do some tests. But as it's not a native build,
it doesn't want to execute itself for the tests. Because
samba might not run on a different platform as it was built for.

If you want to do the tests, you need to let to do it on the
target where it was built for and not where it was built on.

Samba works fine over here on ppc embedded systems.

Greets,

Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany

http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: A configure error for samba3 on ppc
  2005-08-09 10:24 ` Clemens Koller
@ 2005-08-09 10:54   ` JohnsonCheng
  0 siblings, 0 replies; 4+ messages in thread
From: JohnsonCheng @ 2005-08-09 10:54 UTC (permalink / raw)
  To: 'Clemens Koller'; +Cc: linuxppc-embedded

Yes. But how can I pass the testing?
For cross-compile environment, the HOST and the TARGET are almost not the
same, so many utility can configure for cross-compile with host setting
except samba.
It seems not sense.

Thanks,
Johnson Cheng

-----Original Message-----
From: Clemens Koller [mailto:clemens.koller@anagramm.de] 
Sent: Tuesday, August 09, 2005 6:24 PM
To: JohnsonCheng
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: A configure error for samba3 on ppc

Hi, JohnsonCheng!

you wrote:
> When I configure samba3.0.10 on ppc as following command:
> 
> CC=powerpc-linux-gcc AR=powerpc-linux-ar RANLIB=powerpc-linux-ranlib
> ./configure -host=powerpc-linux
> 
> I got a configure error message as following:
> Configure: error: cannot run test program while cross compiling
> See 'config.log' for more details
> 
> I think this is a samba configure bug, do anybody know how to pass it?

No, it's not a bug. It's exactly what the message trys to tell you.
Samba wants to do some tests. But as it's not a native build,
it doesn't want to execute itself for the tests. Because
samba might not run on a different platform as it was built for.

If you want to do the tests, you need to let to do it on the
target where it was built for and not where it was built on.

Samba works fine over here on ppc embedded systems.

Greets,

Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany

http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: A configure error for samba3 on ppc
       [not found] <0MKrQq-1E2Rl01y8u-0004mW@mxeu12.kundenserver.de>
@ 2005-08-09 13:31 ` Clemens Koller
  0 siblings, 0 replies; 4+ messages in thread
From: Clemens Koller @ 2005-08-09 13:31 UTC (permalink / raw)
  To: JohnsonCheng; +Cc: linuxppc-embedded

Hi, JohnsonCheng!

you wrote:
> Yes. But how can I pass the testing?

Running it on the target - where it is actually supposed to work.

> For cross-compile environment, the HOST and the TARGET are almost not the
> same, so many utility can configure for cross-compile with host setting
> except samba.

Well, you can tell configure to skip the tests silently if HOST!=TARGET
or give the message you got. But I wouldn't expect configure to guess
how it can get the code from the host to the target.
Yes, it's indeed a bad virus ;-)

> It seems not sense.

I'd like to see the message.
For me I prefer to compile things native - if somehow possible.

Greets,

Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany

http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19

> -----Original Message-----
> From: Clemens Koller [mailto:clemens.koller@anagramm.de] 
> Sent: Tuesday, August 09, 2005 6:24 PM
> To: JohnsonCheng
> Cc: linuxppc-embedded@ozlabs.org
> Subject: Re: A configure error for samba3 on ppc
> 
> Hi, JohnsonCheng!
> 
> you wrote:
> 
>>When I configure samba3.0.10 on ppc as following command:
>>
>>CC=powerpc-linux-gcc AR=powerpc-linux-ar RANLIB=powerpc-linux-ranlib
>>./configure -host=powerpc-linux
>>
>>I got a configure error message as following:
>>Configure: error: cannot run test program while cross compiling
>>See 'config.log' for more details
>>
>>I think this is a samba configure bug, do anybody know how to pass it?
> 
> 
> No, it's not a bug. It's exactly what the message trys to tell you.
> Samba wants to do some tests. But as it's not a native build,
> it doesn't want to execute itself for the tests. Because
> samba might not run on a different platform as it was built for.
> 
> If you want to do the tests, you need to let to do it on the
> target where it was built for and not where it was built on.
> 
> Samba works fine over here on ppc embedded systems.
> 
> Greets,
> 
> Clemens Koller

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-09 13:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-07  9:15 A configure error for samba3 on ppc JohnsonCheng
2005-08-09 10:24 ` Clemens Koller
2005-08-09 10:54   ` JohnsonCheng
     [not found] <0MKrQq-1E2Rl01y8u-0004mW@mxeu12.kundenserver.de>
2005-08-09 13:31 ` Clemens Koller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).