[Expat-bugs] [Bug #116248] bulid error on FreeBSD 4.0

noreply@sourceforge.net noreply@sourceforge.net
Tue, 10 Oct 2000 03:08:17 -0700


Bug #116248, was updated on 2000-Oct-06 09:08
Here is a current snapshot of the bug.

Project: Expat XML Parser
Category: None
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Summary: bulid error on FreeBSD 4.0

Details: There three steps in building.
step 1 "./configure" is successful.
step 2 "make" encount some error
return error message:
cd lib; make 
/bin/sh ../libtool --mode=link gcc -version-info 0:0:0 -g -02 -o libexpat.la -rpath /usr/local/lib xmlparse.lo xmltok.lo xmlrole.lo
mkdir .libs
(cd . && ln -s xmlparse.lo xmlparse.o)
(cd . && ln -s xmltok.lo xmltok.o)
(cd . && ln -s xmlrole.lo xmlrole.o)
gcc: -shared xmlparse.lo xmltok.lo xmlrole.lo -lc -Wl , -soname -Wl, libexpat.so.0 -0 .libs/libexpat.so.0
gcc: xmlparse.lo: No such file or directory
gcc: xmltok.lo: No such file or directory
gcc: xmlrole.lo: No such file or directory
*** Error code 1






Follow-Ups:

Date: 2000-Oct-06 15:08
By: none

Comment:
Rather than put in a bug of my own, I'll add here that the same error comes up on OpenBSD 2.6 and in OpenBSD Current (hostinfo is: OpenBSD 2.8-beta (NSA.eff.org) #0: Mon Sep 25 05:20:17 PDT 2000).

I admin several OpenBSD boxen, and I need expat for one of my clients, sp I'd be happy to give one of you fellows an account to get this sorted out.  ;-)
-------------------------------------------------------

Date: 2000-Oct-06 15:24
By: none

Comment:
I should add that you can email me at robin@unrated.net if you'd care to take me up on the test box offer.

Sorry about putting in two followups.  I forgot to put my email address in the first.  ;-)
-------------------------------------------------------

Date: 2000-Oct-08 17:28
By: none

Comment:
Try using gmake instead of make. This fixed the problem on my FreeBSD 4.0 box which was exactly what you described in your bug report.
-------------------------------------------------------

Date: 2000-Oct-09 04:27
By: none

Comment:
I experienced the same problem under HP-UX 10.20, and needed to use gmake
and gcc in order to build the package. The .lo files weren't being made otherwise.
More checking in the makefile needed, perhaps ?
-------------------------------------------------------

Date: 2000-Oct-09 05:25
By: coopercc

Comment:
It appears that the Makefile template in the lib directory depends on
some constructs in GNU make that don't exist in other make programs.
In particular, the $(SOURCES:.c=.lo) doesn't seem to work which leads
the library rule to miss its dependencies.

Until this is fixed in the next release, use the GNU make.

-------------------------------------------------------

Date: 2000-Oct-10 03:08
By: darkuncle

Comment:
Identical bug verified on a FreeBSD 4.1-RELEASE machine.
=====
[root@yeagod:~/expat-1.95.0]# make
cd lib; make
/bin/sh ../libtool --mode=link  gcc -version-info 0:0:0 -g -O2  -o libexpat.la -rpath /usr/local/lib  xmlparse.lo xmltok.lo xmlrole.lo
mkdir .libs
(cd . && ln -s xmlparse.lo xmlparse.o)
(cd . && ln -s xmltok.lo xmltok.o)
(cd . && ln -s xmlrole.lo xmlrole.o)
gcc -shared  xmlparse.lo xmltok.lo xmlrole.lo  -lc  -Wl,-soname -Wl,libexpat.so.0 -o .libs/libexpat.so.0
gcc: xmlparse.lo: No such file or directory
gcc: xmltok.lo: No such file or directory
gcc: xmlrole.lo: No such file or directory
*** Error code 1

Stop in /root/expat-1.95.0/lib.
*** Error code 1

Stop in /root/expat-1.95.0.
[root@yeagod:~/expat-1.95.0]# uname -a
FreeBSD yeagod.com 4.1-RELEASE FreeBSD 4.1-RELEASE #32: Tue Aug  8 18:40:28 PDT 2000     op2@vsop2.virtualisys.com:/sys/compile/VSop2-4.x  i386
=====
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=116248&group_id=10127