Welcome to MacForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Newbie compile error help

 
   Macintosh computer (Home) -> Programmer Help RSS
Next:  Finding Fun Date Ideas  
Author Message
Vince Heuring

External


Since: Oct 27, 2004
Posts: 4



(Msg. 1) Posted: Wed Feb 13, 2008 4:49 pm
Post subject: Newbie compile error help
Archived from groups: comp>sys>mac>programmer>help (more info?)

I'm trying to make a gradekeeper program using Xcode Tools that has
been compiled successfully many times on both Solaris and Linux using
their default compilers, but getting a slew of error messages.

I'm using gcc from one of the most recent Xcode Tools distributions,
powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465).

The output of the make is shown below. What's up with this
$non_lazy_ptr in lib.a(histo.o) business, and more importantly, how do
I fix it?

TIA, Vince.

make
cd gradekeeper; make
gcc    -c -o gku.o gku.c
gcc    -c -o action.o action.c
gcc    -c -o calc.o calc.c
gcc    -c -o data.o data.c
gcc    -c -o report.o report.c
gcc    -c -o scores.o scores.c
gcc    -c -o studes.o studes.c
gcc    -c -o drop.o drop.c
gcc    -c -o weights.o weights.c
gcc    -c -o date.o date.c
gcc    -c -o histo.o histo.c
ar r lib.a action.o calc.o data.o report.o scores.o studes.o drop.o
weights.o date.o histo.o
ar: creating archive lib.a
ranlib lib.a
gcc  -o gku gku.o lib.a
gcc    -c -o gkr.o gkr.c
gcc  -o gkr gkr.o lib.a -lm
Undefined symbols:
 "_pscore", referenced from:
     _pscore$non_lazy_ptr in lib.a(histo.o)
     _pscore$non_lazy_ptr in lib.a(report.o)
     _pscore$non_lazy_ptr in lib.a(weights.o)
     _pscore$non_lazy_ptr in lib.a(data.o)
     _pscore$non_lazy_ptr in lib.a(calc.o)
     _pscore$non_lazy_ptr in lib.a(studes.o)
 "_qscore", referenced from:
     _qscore$non_lazy_ptr in lib.a(histo.o)
     _qscore$non_lazy_ptr in lib.a(report.o)
     _qscore$non_lazy_ptr in lib.a(weights.o)
     _qscore$non_lazy_ptr in lib.a(data.o)
     _qscore$non_lazy_ptr in lib.a(calc.o)
     _qscore$non_lazy_ptr in lib.a(studes.o)
 "_ntdrop", referenced from:
     _ntdrop$non_lazy_ptr in lib.a(report.o)
     _ntdrop$non_lazy_ptr in lib.a(data.o)
     _ntdrop$non_lazy_ptr in lib.a(calc.o)
 "_tscore", referenced from:
     _tscore$non_lazy_ptr in lib.a(histo.o)
     _tscore$non_lazy_ptr in lib.a(report.o)
     _tscore$non_lazy_ptr in lib.a(weights.o)
     _tscore$non_lazy_ptr in lib.a(data.o)
     _tscore$non_lazy_ptr in lib.a(calc.o)
     _tscore$non_lazy_ptr in lib.a(studes.o)
 "_hdates", referenced from:
     _hdates$non_lazy_ptr in lib.a(histo.o)
     _hdates$non_lazy_ptr in lib.a(report.o)
     _hdates$non_lazy_ptr in lib.a(data.o)
 "_nqdrop", referenced from:
     _nqdrop$non_lazy_ptr in lib.a(report.o)
     _nqdrop$non_lazy_ptr in lib.a(data.o)
     _nqdrop$non_lazy_ptr in lib.a(calc.o)
 "_pdates", referenced from:
     _pdates$non_lazy_ptr in lib.a(histo.o)
     _pdates$non_lazy_ptr in lib.a(report.o)
     _pdates$non_lazy_ptr in lib.a(data.o)
 "_qdates", referenced from:
     _qdates$non_lazy_ptr in lib.a(histo.o)
     _qdates$non_lazy_ptr in lib.a(report.o)
     _qdates$non_lazy_ptr in lib.a(data.o)
 "_tdates", referenced from:
     _tdates$non_lazy_ptr in lib.a(histo.o)
     _tdates$non_lazy_ptr in lib.a(report.o)
     _tdates$non_lazy_ptr in lib.a(data.o)
 "_npdrop", referenced from:
     _npdrop$non_lazy_ptr in lib.a(report.o)
     _npdrop$non_lazy_ptr in lib.a(data.o)
     _npdrop$non_lazy_ptr in lib.a(calc.o)
 "_nh", referenced from:
     _nh$non_lazy_ptr in lib.a(histo.o)
     _nh$non_lazy_ptr in lib.a(report.o)
     _nh$non_lazy_ptr in lib.a(weights.o)
     _nh$non_lazy_ptr in lib.a(data.o)
     _nh$non_lazy_ptr in lib.a(calc.o)
     _nh$non_lazy_ptr in lib.a(studes.o)
     _nh$non_lazy_ptr in lib.a(drop.o)
 "_hscore", referenced from:
     _hscore$non_lazy_ptr in lib.a(histo.o)
     _hscore$non_lazy_ptr in lib.a(report.o)
     _hscore$non_lazy_ptr in lib.a(weights.o)
     _hscore$non_lazy_ptr in lib.a(data.o)
     _hscore$non_lazy_ptr in lib.a(calc.o)
     _hscore$non_lazy_ptr in lib.a(studes.o)
 "_np", referenced from:
     _np$non_lazy_ptr in lib.a(histo.o)
     _np$non_lazy_ptr in lib.a(report.o)
     _np$non_lazy_ptr in lib.a(weights.o)
     _np$non_lazy_ptr in lib.a(data.o)
     _np$non_lazy_ptr in lib.a(calc.o)
     _np$non_lazy_ptr in lib.a(studes.o)
     _np$non_lazy_ptr in lib.a(drop.o)
 "_nq", referenced from:
     _nq$non_lazy_ptr in lib.a(histo.o)
     _nq$non_lazy_ptr in lib.a(report.o)
     _nq$non_lazy_ptr in lib.a(weights.o)
     _nq$non_lazy_ptr in lib.a(data.o)
     _nq$non_lazy_ptr in lib.a(calc.o)
     _nq$non_lazy_ptr in lib.a(studes.o)
     _nq$non_lazy_ptr in lib.a(drop.o)
 "_nt", referenced from:
     _nt$non_lazy_ptr in lib.a(histo.o)
     _nt$non_lazy_ptr in lib.a(report.o)
     _nt$non_lazy_ptr in lib.a(weights.o)
     _nt$non_lazy_ptr in lib.a(data.o)
     _nt$non_lazy_ptr in lib.a(calc.o)
     _nt$non_lazy_ptr in lib.a(studes.o)
     _nt$non_lazy_ptr in lib.a(drop.o)
 "_nhdrop", referenced from:
     _nhdrop$non_lazy_ptr in lib.a(report.o)
     _nhdrop$non_lazy_ptr in lib.a(data.o)
     _nhdrop$non_lazy_ptr in lib.a(calc.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [gkr] Error 1
make: *** [alldir] Error 2

--
Vince Heuring To email, remove the Vince.

 >> Stay informed about: Newbie compile error help 
Back to top
Login to vote
Lou Pecora

External


Since: May 04, 2004
Posts: 69



(Msg. 2) Posted: Fri Feb 15, 2008 10:10 am
Post subject: Re: Newbie compile error help [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Vince Heuring wrote:

> I'm trying to make a gradekeeper program using Xcode Tools that has
> been compiled successfully many times on both Solaris and Linux using
> their default compilers, but getting a slew of error messages.
>
> I'm using gcc from one of the most recent Xcode Tools distributions,
> powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465).
>
> The output of the make is shown below. What's up with this
> $non_lazy_ptr in lib.a(histo.o) business, and more importantly, how do
> I fix it?
>
> TIA, Vince.

With errors like,

Undefined symbols:
?"_pscore", referenced from:

in the ld command (link stage),

ld: symbol(s) not found
collect2: ld returned 1 exit status

It looks like you are missing object module(s) or library(ies). ld
cannot find those symbols it is complaining about. Maybe look at the
successful package on Solaris or Linux and compare to the Mac package to
see what is missing. You could also search the code for the symbol
names to see what might be missing.

--
-- Lou Pecora

 >> Stay informed about: Newbie compile error help 
Back to top
Login to vote
Nobody

External


Since: Feb 16, 2008
Posts: 1



(Msg. 3) Posted: Sat Feb 16, 2008 8:08 am
Post subject: Re: Newbie compile error help [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

That's not it. I untarred the software that had just made on Red Hat. I
suspect it's some sort of library issue. I've tried -flat_namespace (in
LDFLAGS) with no joy.

In article , Lou Pecora
wrote:

> In article ,
> Vince Heuring wrote:
>
> > I'm trying to make a gradekeeper program using Xcode Tools that has
> > been compiled successfully many times on both Solaris and Linux using
> > their default compilers, but getting a slew of error messages.
> >
> > I'm using gcc from one of the most recent Xcode Tools distributions,
> > powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465).
> >
> > The output of the make is shown below. What's up with this
> > $non_lazy_ptr in lib.a(histo.o) business, and more importantly, how do
> > I fix it?
> >
> > TIA, Vince.
>
> With errors like,
>
> Undefined symbols:
> ?"_pscore", referenced from:
>
> in the ld command (link stage),
>
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
>
> It looks like you are missing object module(s) or library(ies). ld
> cannot find those symbols it is complaining about. Maybe look at the
> successful package on Solaris or Linux and compare to the Mac package to
> see what is missing. You could also search the code for the symbol
> names to see what might be missing.
 >> Stay informed about: Newbie compile error help 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Programmer Help All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]