EXHIBIT 5.1

                 [WILSON SONSINI GOODRICH & ROSATI LETTERHEAD]


                                December 3, 2001


Solectron Corporation
777 Gibraltar Drive
Milpitas, CA 95035

     RE:  REGISTRATION STATEMENT ON FORM S-3

Ladies and Gentlemen:

     We have examined the Registration Statement on Form S-3 filed by you with
the Securities and Exchange Commission on November 7, 2001, as amended, (the
"Registration Statement") in connection with the registration under the Untied
States Securities Act of 1933, as amended, of 52,494,493 shares (the "Shares")
of your Common Stock, par value $0.001 per share, to be issued in connection
with your acquisition of C-MAC Industries, Inc., a corporation organized under
the laws of Canada, as described in the Registration Statement (the
"Transaction"). As your counsel in connection with the Transaction, we have
examined the proceedings taken and are familiar with the proceedings proposed
to be taken by you in connection with the issuance of the Shares in the
Transaction.

     It is our opinion that, when issued in the manner described in the
Registration Statement, the Shares will be legally and validly issued,
fully-paid and non-assessable.

     We consent to the use of this opinion as an exhibit to the Registration
Statement, and further consent to the use of our name whenever appearing in the
Registration Statement and any amendments thereto.


                                        Very truly yours,

                                        WILSON SONSINI GOODRICH & ROSATI
                                        Professional Corporation

                                        /s/  Wilson Sonsini Goodrich & Rosati

Palo Alto, CA
December 3, 2001