[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xmcd build failing.



On 20, Jan, 2001 at 04:21:39PM +0000, Christian Weisgerber wrote:
> Morten Liebach <morten_(_at_)_hotpost_(_dot_)_dk> wrote:
> 
> >  I tried to build xmcd, having installed openmotif first and put
> > MOTIFLIB='/usr/local/lib' in /etc/mk.conf.
> 
> Don't.  You want
> 
> HAVE_MOTIF=Yes

OK, I have now, and it works, thanks!

> there.  And that's all.  You shouldn't define MOTIFLIB at all, it's
> set automatically by bsd.port.mk.  MOTIFLIB is a hook for forcing
> static linking of the Motif library.  If you want this, define
> MOTIF_STATIC.

Right, I just looked through bsd.port.mk(5) and ports(7), and I only
found two references to MOTIF, so I tried that ... I'm a little
clueless! ;-)
 
> > gcc -o xmcd -O2      -L/usr/X11R6/lib -L/usr/local/lib callback.o       
> > cdfunc.o        command.o       dbprog.o        geom.o  help.o  hotkey.o
> > main.o widget.o         wwwwarp.o       ../common_d/libutil.a       
> > ../cddb_d/libcddb.a    .        ./libdi_d/libdi.a '/usr/local/lib' -lXaw
> > -lXmu -lXt -lSM -lICE -lXext -lX11 -lXt -lSM -lICE -lXext -lX11      
> > ld: /usr/local/lib: read_file_symbols(header): premature EOF
> > collect2: ld returned 1 exit status
> > *** Error code 1
> 
> Well, adding a directory to the list of object files to link doesn't
> make much sense, does it?

Sounds right, that's why it says 'premature EOF'. Now I've become
enlightened!

Thanks, HAND

                      Morten
 
-- 
UNIX, reach out and grep someone!



Visit your host, monkey.org