From: Wilbert Knol (lxqekau.owhdprxyh@clarkpud.com)
Date: Tue May 08 2001 - 03:28:39 EEST
> On Thu, 26 Apr 2001, Craig Small wrote:
>
> > On Thu, Apr 26, 2001 at 01:28:25PM +0000, Wilbert Knol wrote:
> > > make[1]: Entering directory `/usr/local/src/ax25-tools-0.0.6/hdlcutil'
> > > gcc -I/usr/local/zlib/include -I/usr/local/libmpeg/include -I/usr/local/aalib/include -Wall -L/usr/local/lib -L/usr/local/zlib/lib -L/usr/local/libmpeg/lib -L/usr/local/aalib/lib -o sethdlc sethdlc.o hdrvcomm.o
> > > hdrvcomm.o: In function `hdrvc_diag':
> > > hdrvcomm.o(.text+0xab1): undefined reference to `hdrvc_sendmsg'
> > > hdrvcomm.o(.text+0xaca): undefined reference to `hdrvc_recvmsg'
> >
> > hdrvc_sendmsg and hdrvc_recvmsg are both in hdrvcomm.c
> > extern __inline__ void hdrvc_sendmsg(struct usersmmsg *msg, int len)
> >
> > I'm not sure why its complaining.
>
> Hmm. The above doesnt' show the actual compiling of hdrvcomm.c but maybe
> there is for some reason no -O (optimization) flag?
>
> Extern inlines are only compiled if optimization is enabled, otherwise gcc
> sees it only as a function declaration.
Following up on Tomi's suggestion, I changed the CFLAGS definition in
/usr/local/src/ax25-tools-0.0.6/hdlcutil/Makefile
Old:
CFLAGS = -I/usr/local/zlib/include -I/usr/local/libmpeg/include -I/usr/local/aalib/include -Wall
New:
the same, but with '-O2 -g' added to the end.
Next, I 'touched' hdrvcomm.c and did a make...which worked :-)
A pretty good guess, Tomi. Tnx!!
Wilbert, ZL2BSJ
PS: I am puzzled why the CFLAGS in the Makefile didn't contain the -
O2 option in the first place.
On another machine (which didn't have compile problems, different
distro) it looks like this:
CFLAGS = -O2 -g -Wall
PPS: could I have achieved the same by setting shell variable
$CFLAGS to the string '-O2 -g' before doing the make?
--- To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to terhi.victor@logonet.com
This archive was generated by hypermail 2b30 : Tue May 08 2001 - 03:28:40 EEST