Skip to contentSkip to conversation

A configure error for samba3 on ppc

DISCUSSION JohnsonCheng 2 participants 3 messages Aug 7, 2005 – Aug 9, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

Hi, JohnsonCheng!

Quoted 10 lines · you

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

#2 lore raw

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:[email protected]]
Sent: Tuesday, August 09, 2005 6:24 PM
To: JohnsonCheng
Cc: [email protected]
Subject: Re: A configure error for samba3 on ppc

Hi, JohnsonCheng!

Quoted 10 lines · you

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