Modify

Opened 11 years ago

Closed 9 years ago

#2037 closed defect (fixed)

samba compile on mac osx cannot determine host system

Reported by: hanicka@… Owned by: blogic
Priority: high Milestone:
Component: packages Version:
Keywords: Cc:

Description

loading site script /Volumes/openwrt/trunk/include/site/mipsel-linux-uclibc
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -O ) works... yes
checking whether the C compiler (gcc -O ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether gcc and cc understand -c and -o together... yes
checking that the C compiler understands volatile... yes
checking host system type... configure: error: can not guess host type; you must specify one
make[3]: * /Volumes/openwrt/trunk/build_mipsel/samba-2.0.10/.built Error 1
make[3]: Leaving directory `/Volumes/openwrt/trunk/feeds/https_svn.openwrt.org_openwrt_packages_/net/samba'
make[2]:
* [samba-compile] Error 2
make[2]: Leaving directory `/Volumes/openwrt/trunk/package'
make[1]: * [package/compile] Error 2
make[1]: Leaving directory `/Volumes/openwrt/trunk'
make:
* [world] Error 2

Attachments (0)

Change History (6)

comment:1 Changed 11 years ago by anonymous

sorry..

loading site script /Volumes/openwrt/trunk/include/site/mipsel-linux-uclibc
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -O ) works... yes
checking whether the C compiler (gcc -O ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether gcc and cc understand -c and -o together... yes
checking that the C compiler understands volatile... yes
checking host system type... configure: error: can not guess host type; you must specify one
make[3]: *** [/Volumes/openwrt/trunk/build_mipsel/samba-2.0.10/.built] Error 1
make[3]: Leaving directory `/Volumes/openwrt/trunk/feeds/https_svn.openwrt.org_openwrt_packages_/net/samba'
make[2]: *** [samba-compile] Error 2
make[2]: Leaving directory `/Volumes/openwrt/trunk/package'
make[1]: *** [package/compile] Error 2
make[1]: Leaving directory `/Volumes/openwrt/trunk'
make: *** [world] Error 2

comment:2 Changed 11 years ago by florian

  • Owner changed from developers to florian
  • Status changed from new to assigned

comment:3 Changed 10 years ago by florian

  • Owner changed from florian to blogic
  • Status changed from assigned to new

comment:4 Changed 10 years ago by anonymous

The packages/net/samba/Makefile configure call is strange, it is a mystery to me how this call can work on any platform. I'd suggest this patch. Beware that the package has more issues, though. How did anyone ever succeed compiling this???

--- Makefile 2008-03-28 14:55:51 +0100
+++ Makefile.new 2008-03-28 15:09:04 +0100
@@ -58,7 +58,7 @@

rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
(cd $(PKG_BUILD_DIR)/source ; rm -rf config.{cache,status} ; \

  • ./configure \

+ $(call Build/Configure/default, \

--program-prefix="" \
--program-suffix="" \
--prefix=/usr \

@@ -77,7 +77,7 @@

$(DISABLE_NLS) \
--with-lockdir=/var/run/samba \
--with-privatedir=/etc/samba \

  • );

+ ));

$(MAKE) -C $(PKG_BUILD_DIR)/source \

bin/make_smbcodepage bin/make_unicodemap

(cd $(PKG_BUILD_DIR)/source/bin ; \

comment:5 Changed 10 years ago by anonymous

sorry, forget the previous patch, use this one:

--- /tmp/Makefile	2008-03-28 14:55:51.000000000 +0100
+++ /tmp/Makefile.new	2008-03-28 16:20:59.000000000 +0100
@@ -57,8 +57,7 @@
 define Build/Compile	
 	rm -rf $(PKG_INSTALL_DIR)
 	mkdir -p $(PKG_INSTALL_DIR)
-	(cd $(PKG_BUILD_DIR)/source ; rm -rf config.{cache,status} ; \
-		./configure \
+	$(call Build/Configure/Default, \
 			--program-prefix="" \
 			--program-suffix="" \
 			--prefix=/usr \
@@ -77,7 +76,7 @@
 			$(DISABLE_NLS) \
 			--with-lockdir=/var/run/samba \
 			--with-privatedir=/etc/samba \
-	);
+	,,source)
 	$(MAKE) -C $(PKG_BUILD_DIR)/source \
 		bin/make_smbcodepage bin/make_unicodemap
 	(cd $(PKG_BUILD_DIR)/source/bin ; \

comment:6 Changed 9 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Should be fixed with samba3.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.