[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Fwd: Kernel Compile error -lcrypt-old



At Mon, 03 Jan 2005 11:43:23 +0900,
yashi wrote:
> 
> At Wed, 29 Dec 2004 13:12:54 -0700,
> emanuel stiebler wrote:
> > 
> > Greg Miller wrote:
> > 
> > >     .....
> > >     /bin/mb-ld.real: cannot find -lcrypt-old
> > 
> > Actually it is "-lcrypt_old" and happens (at least here) in:
> > user/ftpd
> > 
> > Do you actually need both, the lcrypt And lcrypt_old ?
> 
> no, you do not (usually).
> 
> some how microblaze's config.arch is not using common/config.arch.
> that's why those things are happining.
> 
> here is a quick hack to work around.  proper fix should follow soon.

ok here is a patch to include vendor/common/config.arch in
vendor/microblaze/config.arch.

the patch is against latest dist.  with it, I successfully built
suzaku default configuration. (but somehow booted to single user
mode. I'll fix it later.)

John, would you consider for inclusion?

best,
--
            yashi

 config.arch |   32 +++-----------------------------
 1 files changed, 3 insertions(+), 29 deletions(-)

Index: uClinux-dist/vendors/config/microblaze/config.arch
===================================================================
--- uClinux-dist.orig/vendors/config/microblaze/config.arch	2005-01-05 09:36:38.000000000 +0900
+++ uClinux-dist/vendors/config/microblaze/config.arch	2005-01-05 10:00:49.000000000 +0900
@@ -68,6 +68,9 @@ STRIP     = $(STRIPTOOL)
 
 UCLINUX_BUILD_SET = 0					# have we set a special config below
 
+# Pull in common definitions
+include $(ROOTDIR)/vendors/config/common/config.arch
+
 ifndef DISABLE_SHARED_LIBS
   ifeq ($(CONFIG_BINFMT_SHARED_FLAT),y)
 	BUILD_SHARED = 1
@@ -202,39 +205,10 @@ ifdef UCLINUX_BUILD_USER
 	# Don't hate me, just fix it! :-) JW
 	
 	SLIBC	     = -lc $(GCC_LIB) -lc
-	SLIBM        = -lm
-	SLIBNET      = -lnet
-	SLIBDES      = -ldes
-	SLIBAES      = -laes
-	SLIBPCAP     = -lpcap
-	SLIBSSL      = -lssl
-	SLIBCRYPTO   = -lcrypto
-	SLIBCRYPT    = -lcrypt_old
-	SLIBPTHREAD  = -lpthread
 
   ifdef BUILD_SHARED
 	LIBC          = -Wl,-R,$(ROOTDIR)/lib/libc.gdb $(SLIBC)
-  else
-	LIBC          = $(SLIBC)
-	LIBSNAPGEAR   = $(SLIBSNAPGEAR)
   endif
-	LIBM        = $(SLIBM)
-	LIBNET      = $(SLIBNET)
-	LIBDES      = $(SLIBDES)
-	LIBAES      = $(SLIBAES)
-	LIBPCAP     = $(SLIBPCAP)
-	LIBSSL      = $(SLIBSSL)
-	LIBCRYPTO   = $(SLIBCRYPTO)
-	LIBCRYPT    = $(SLIBCRYPT)
-	LIBPTHREAD  = $(SLIBPTHREAD)
-	LIBSNAPGEARPP = $(SLIBSNAPGEARPP)
-	LIBCONFIGDD = $(SLIBCONFIGDD)
-
-	LIBGCC      = -lgcc
-	LIBIBERTY   = -liberty
-	LIBIO       = -lio
-	LIBIOSTREAM = -liostream
-	LIBSTDCPP   = -lstdc++
 
 	LDPATH = -L$(ROOTDIR)/lib
 
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/