Can't build with Panther

J

Jim Freeze

Hi

I just got a new OSX computer running 10.3.3 and I installed
the xcode cd and the 1.1 xcode software update.

However, it seems that I can't build anything. The error
I get when building readline-4.3 is:

jdf@cheetah readline-4.3 % ./configure
checking build system type... powerpc-apple-darwin7.3.1
checking host system type... powerpc-apple-darwin7.3.1

Beginning configuration for readline-4.3 for powerpc-apple-darwin7.3.1

checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler
cannot create executables

The log file shows:

configure: failed program was:
#line 1438 "configure"
#include "confdefs.h"

int
main ()
{

;
return 0;
}
configure:1483: error: C compiler cannot create executables

Can someone tell me what the problem is here.

Thanks
 
M

Mark Wilson

Hi

I just got a new OSX computer running 10.3.3 and I installed
the xcode cd and the 1.1 xcode software update.

However, it seems that I can't build anything. The error
I get when building readline-4.3 is:

jdf@cheetah readline-4.3 % ./configure
checking build system type... powerpc-apple-darwin7.3.1
checking host system type... powerpc-apple-darwin7.3.1

Beginning configuration for readline-4.3 for
powerpc-apple-darwin7.3.1

checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... configure: error: C
compiler
cannot create executables

The log file shows:

configure: failed program was:
#line 1438 "configure"
#include "confdefs.h"

int
main ()
{

;
return 0;
}
configure:1483: error: C compiler cannot create executables

It might be that the BSDSDK is not installed.

Try:

$ ls -dF /Library/Receipts/BSD*.pkg
/Library/Receipts/BSD.pkg/ /Library/Receipts/BSDSDK.pkg/


I found this advice here:

http://www.imasy.or.jp/~hisa/mac/rubycocoa/build.en.html

Regards,

Mark
 
J

Jim Freeze

On May 9, 2004, at 2:15 AM, Jim Freeze wrote:

Try:

$ ls -dF /Library/Receipts/BSD*.pkg
/Library/Receipts/BSD.pkg/ /Library/Receipts/BSDSDK.pkg/

jdf@cheetah 3 /Users/jdf % ls -dF /Library/Receipts/BSD*
/Library/Receipts/BSD.pkg/ /Library/Receipts/BSDSDK.pkg/

I have the receipts, but don't know how to tell if they
have been installed.

I looked at this page, but I don't know how it helps me.
 
M

Mark Hubbart

Hi,
I was fairly certain that readline is installed with the xcode cd... If
it isn't, I have no idea where my copy came from.

mark@imac% l /usr/lib | grep read
lrwxr-xr-x 1 root wheel 15 16 Mar 14:12 libpthread.dylib ->
libSystem.dylib
-r-xr-xr-x 1 mark staff 324308 6 Sep 2003 libreadline.4.3.dylib
lrwxr-xr-x 1 root admin 21 24 Sep 2003 libreadline.4.dylib
-> libreadline.4.3.dylib
-rw-r--r-- 1 mark staff 487060 6 Sep 2003 libreadline.a
lrwxr-xr-x 1 root admin 21 24 Sep 2003 libreadline.dylib ->
libreadline.4.3.dylib
-r-xr-xr-x 1 root wheel 26808 3 May 22:24 plistread

There is a symlink to the library from framework:

mark@imac% l /System/Library/PrivateFrameworks/readline.framework/ |
grep readline
lrwxr-xr-x 1 root wheel 26 24 Sep 2003 readline ->
/usr/lib/libreadline.dylib

Is it not there?

OTherwise, I'm not sure why it failed to compile. That error looks like
it's beyond me. However, (at the risk of sounding like telephone
support) sometimes, an install is just bad. Have you tried running the
xcode install again?

HTH,
--Mark
 
J

Jim Freeze

Hi,
I was fairly certain that readline is installed with the xcode cd... If
it isn't, I have no idea where my copy came from.

May have come from an old OS or xcode install. Apple keeps moving
things around.
mark@imac% l /usr/lib | grep read
lrwxr-xr-x 1 root wheel 15 16 Mar 14:12 libpthread.dylib ->
libSystem.dylib
-r-xr-xr-x 1 mark staff 324308 6 Sep 2003 libreadline.4.3.dylib
lrwxr-xr-x 1 root admin 21 24 Sep 2003 libreadline.4.dylib
-> libreadline.4.3.dylib
-rw-r--r-- 1 mark staff 487060 6 Sep 2003 libreadline.a
lrwxr-xr-x 1 root admin 21 24 Sep 2003 libreadline.dylib ->
libreadline.4.3.dylib
-r-xr-xr-x 1 root wheel 26808 3 May 22:24 plistread

There is a symlink to the library from framework:

mark@imac% l /System/Library/PrivateFrameworks/readline.framework/ |
grep readline
lrwxr-xr-x 1 root wheel 26 24 Sep 2003 readline ->
/usr/lib/libreadline.dylib

Is it not there?

Nope:

find /System/Library/PrivateFrameworks/readline.framework/ -name \*read\*
and
ls /usr/lib/*read*

come up empty.

BTW, I found the problem with the compile issue. Apparently there is a
narrow window of opportunity for new systems to not have four libraries
installed. (It all started when the libraries moved from the std OS
install to the xcode CD.)

I fixed the problem by downloading xcode-1.2 and installing.
However, it does not seem to have readline.
OTherwise, I'm not sure why it failed to compile. That error looks like
it's beyond me. However, (at the risk of sounding like telephone
support) sometimes, an install is just bad. Have you tried running the
xcode install again?

Yes. But it didn't. Now that I understand about the missing libs,
it has been fixed.
 
S

Stephen Steiner

There is a script in /Developer/Tools named uninstall-devtools.pl.

It nukes everything from the development directory and also all package
receipts etc.

Run it from somewhere other than the /Developer directory tree i.e.
from your home directory with

/Developer/Tools/uninstall-devtools.pl

Then do a fresh install and Customize it to include all of the tools
you want (BSD, 10.2 support, etc.).

I don't know whether this will solve the specific problem you're having
but it is a reliable way of insuring that you don't have mix & match
versions of tools.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top