./configure host

frankbebag

Registered
on a g3 ibook, osx, trying to compile a few packages from source. when i ./configure it says no host specified, must specify. the config.guess is included, so i need a way to find out my host name and specify it when configuring.
 
go to finder, then network and then to server, if I understood what you're asking it should be there...
 
No, he's referring to compiling stuff from source, when you need to perform a ./configure && make && make install to install stuff.

I've never had the problem he's having so I can't say why he's having it since it seems to happen to all packages he's trying to compile.
 
Can you give us more infomation, ie.

What are you compiling

What errors are your getting (cut and paste)

Etc...
 
it does this with all packages, specifically trying gtk right now, the message is
configure: error: can not guess host type; you must specify one. i know config.guess is supposed to do this, its included but it has no effect.
 
I just grabed gtk+ 2.2.4, and looked through configure. Do this:

%./configure --help

Then look for a --host option. Give that a whirl, and let us know how it goes.
For host type:

powerpc-apple-darwin7.6.0

Thats what comes up on my PB.
 
The host type is not your hostname, it is the type of machine, some examples:

machinetype-manufactur-osname|osversion

Powerbook:
powerpc-apple-darwin7.6.0

FreeBSD 5.3:
i386-unknown-freebsd5.3

FreeBSD 4.10:
i386-unknown-freebsd4.10

OpenBSD 3.5 on an UltraSPARC:
sparc64-unknown-openbsd3.5

Solaris 9 on UltraSPARC:
sparc-sun-solaris2.9

Linux, RedHat 7.2:
i686-pc-linux-gnu

Solaris 8 UltraSPARC:
sparc-sun-solaris2.8
 
This is the output of my configure for gtk2.2.4 (NOTE: I don't have atk, pango, etc installed wich is why the install bombed).

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking build system type... powerpc-apple-darwin7.6.0
checking host system type... powerpc-apple-darwin7.6.0
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fl32... no
checking for af77... no
checking for fort77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for lf95... no
checking for g95... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 65536
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... darwin7.6.0 dyld
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... darwin7.6.0 dyld
appending configuration tag "F77" to libtool
checking whether to enable maintainer-specific portions of Makefiles... no
checking for some Win32 platform... no
checking for native Win32... no
checking whether build environment is sane... yes
checking for strerror in -lcposix... no
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... no
 
you listed a slew of host types but left out the ibook, does anyone know the host type of an ibook.
my ./configure stops at that host part
 
iBook/Powerbook/Powermac/eMac/iMac/etc it doesn't really matter. All that matters is the OS that you're running, which is powerpc-apple-darwin7.6.0 assuming of course that you've updated to the latest 10.3.6.

If you haven't updated to 10.3.6, your host name will be powerpc-apple-darwin7.x.0 where x is the minor version of OS X you're running (i.e. 10.3.x)
 
i put ./configure --host=powerpc-apple-darwin7.5.0
got checking host system type... Invalid configuration `powerpc-apple-darwin7.5.0': system `darwin7.5.0' not recognized

checking build system type... Invalid configuration `powerpc-apple-darwin7.5.0': system `darwin7.5.0' not recognized

is my syntax wrong
 
That means there is something wrong with either your a) setup. b)the files your compiling.

I got the gtk files from the official GTK website and I have no problems configuring and making the project. if you didn't get them from there, that could be the problem.

Have you installed the developer tools? Dumb question, I know but it's worth asking anyway :). What version of XCode are you using? v1.5 has had a lot of problems and if you have it, you should remove it and install v1.2.
 
Ok, look for a file called config.log, in that file, find the part that talks about the error that you are getting. Post that section, post ~5 lines above and below that part, just to make sure you get it all.
 
I just noticed something else, you put '--host=powerpc-apple-darwin7.5.0', try '--host=powerpc-apple-darwin7.6.0'
Just to make sure, do the following:

% uname -a

Mine gives:

[bob@Freebird] ~%uname -a
Darwin Freebird.local 7.6.0 Darwin Kernel Version 7.6.0: Sun Oct 10 12:05:27 PDT 2004; root:xnu/xnu-517.9.4.obj~1/RELEASE_PPC Power Macintosh powerpc

Note the Darwin Kernel Version 7.6.0
that is the number you want.
 
You'll only have kernel version 7.6.0 if you've downloaded the 10.3.6 update. To reconcile the kernel versions to the update versions, just replace 10.3.x with kernel 7.x.0.

Version 10.3.5 would have a kernel version of 7.5.0, so on, so forth.
 
im using 3.5 so i put 7.5.0. I checked config.log it stops before it gets to that error.

this is the major bulk of the message when i try to configure with --host=powerpc....

checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... Invalid configuration `powerpc-apple-darwin7.5.0': system `darwin7.5.0' not recognized

checking build system type... Invalid configuration `powerpc-apple-darwin7.5.0': system `darwin7.5.0' not recognized

checking for ranlib... (cached) ranlib
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) no
checking for BSD-compatible nm... (cached) /usr/bin/nm -p
checking whether ln -s works... (cached) yes
loading cache ./config.cache within ltconfig
ltconfig: you must specify a host type if you use `--no-verify'
Try `ltconfig --help' for more information.
configure: error: libtool configure failed
 
Ok found the problem, I think:

Invalid configuration `powerpc-apple-darwin7.5.0': system `darwin7.5.0' not recognized

That is an error that is from config.sub.

darwin7.5.0 should actually be outputed as -darwin7.5.0

So, to fix this:

Edit the file config.sub:

Line 128 should be:
then os=`echo $1 | sed 's/.*-/-/'`

Check this on your command line:

[bob@Freebird] ~/work/gtk+-2.2.4%echo "powerpc-apple-darwin7.5.0" | sed 's/.*-/-/'

-darwin7.5.0

Try that, let us know.
 
heres whats it my config.sub
im using gtk1.2 because its required for a later build

# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).# Here we must recognize all the valid KERNEL-OS combinations.maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`case $maybe_os in linux-gnu*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;;esac
 
Back
Top