Hello
We have done something similar and have used:
./configure \
:
:
--host="powerpc-linux" \
--with-endianness=big \
:
CC=powerpc-linux-gcc \
AR=powerpc-linux-ar \
RANLIB=powerpc-linux-ranlib \
STRIP=powerpc-linux-strip \
LD=powerpc-linux-ld
ie no --build, no --target
That works for us!
PS We didn't get everything to work without specifying the tools things this way. I do
not recall exactely what failed and which of the tools that are used, but it was not
CC or AR that failed.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf
> Of Robert
> Story (Coders)
> Sent: 10. juni 2004 16:13
> To: lew kenny
> Cc: [EMAIL PROTECTED]
> Subject: Re: A question for the porting net-snmp to PowerPC.
>
>
> On Thu, 10 Jun 2004 10:28:21 +0800 lew wrote:
> LK> ./configure --with-cc=/LinuxPPC/CDK/bin/powerpc-linux-gcc \
> LK> --with-ar=/LinuxPPC/CDK/bin/powerpc-linux-ar \
> LK> --build=i686-pc-linux-gnu --host=powerpc \
> LK> --target=ppc-linux --with-endianness=big \
> LK> --with-perl-modules \
> LK> --with-prefix=/netsnmp-for-ppc
> LK>
> LK> With compiling the files again, the past parse error disappeared.
> LK>
> LK> But I get a new error to substitute it:
> LK> /LinuxPPC/CDK/powerpc-linux/bin/ld: snmp_version.o:
> compiled for a little
> LK> endian system and target is big endian
> LK> File in wrong format: failed to merge target specific
> data of file
> LK> ../snmplib/.libs/libnetsnmp.a(snmp_version.o)
> LK>
> LK> I set the big endian in the step of configuration, and I
> don't the cause of
> LK> the error about endianess?
> LK> Would u give me some idea of this problem?
>
> Did you 'make distclean' before you re-ran configure? I'm
> guessing not.
>
> Try 'make clean' and then another make. If that doesn't help,
> them 'make
> distclean', re-run configure and make. If that still doesn't
> help, let us know
> and we'll go from there.
>
> --
> Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
> <irc://irc.freenode.net/#net-snmp>
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders