[Expat-bugs] [ expat-Bugs-591556 ] Solaris make error

SourceForge.net noreply at sourceforge.net
Tue May 25 15:12:31 EDT 2004


Bugs item #591556, was opened at 2002-08-06 07:04
Message generated for change (Comment added) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=591556&group_id=10127

Category: XML::Parser (inactive)
Group: Platform Specific
Status: Closed
Resolution: Out of Date
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Greg Stein (gstein)
Summary: Solaris make error

Initial Comment:
Receiving this error from the make process of 1.95.4 in 
both Solaris 2.8 and 2.5.1 using gcc and ccs/cc.

make: Fatal error: Don't know how to make 
target 'xmlwf/xmlwf.c'

Here is the Make file that is being generated from 
the ./configure process: 

###############################################
#################
# Process this file with top-level configure script to 
produce Makefile
#
# Copyright 2000 Clark Cooper
#
#  This file is part of EXPAT.
#
#  EXPAT is free software; you can redistribute it and/or 
modify it
#  under the terms of the License (based on the MIT/X 
license) contained
#  in the file COPYING that comes with this distribution.
#
# EXPAT IS PROVIDED "AS IS", WITHOUT 
WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT 
LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR 
PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR 
COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, 
WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF 
OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN 
EXPAT.
#

SHELL = /bin/bash

srcdir = .
top_srcdir = .


prefix = /usr/local
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
libdir = ${exec_prefix}/lib
includedir = ${prefix}/include
mandir = ${prefix}/man/man1

top_builddir = .


INSTALL = conftools/install-sh -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
mkinstalldirs = $(SHELL) 
$(top_srcdir)/conftools/mkinstalldirs

MANFILE = $(srcdir)/doc/xmlwf.1
APIHEADER = $(srcdir)/lib/expat.h
LIBRARY = libexpat.la


default:  buildlib xmlwf/xmlwf

buildlib: $(LIBRARY)

all: $(LIBRARY) xmlwf/xmlwf examples/elements 
examples/outline

clean:
	cd lib && rm -f $(LIBRARY) *.o *.lo && rm -
rf .libs _libs
	cd xmlwf && rm -f xmlwf *.o *.lo && rm -
rf .libs _libs
	cd examples && rm -f elements outline *.o 
*.lo && rm -rf .libs _libs
	find . -name core | xargs rm -f

distclean: clean
	rm -f expat_config.h config.status config.log 
config.cache libtool
	rm -f Makefile

extraclean: distclean
	rm -f expat_config.h.in configure
	rm -f conftools/ltconfig conftools/ltmain.sh 
conftools/libtool.m4

check: tests/runtests
	tests/runtests

install: xmlwf/xmlwf installlib
	$(mkinstalldirs) $(bindir) $(mandir)
	$(LIBTOOL) --mode=install 
$(INSTALL_PROGRAM) xmlwf/xmlwf $(bindir)/xmlwf
	$(INSTALL_DATA) $(MANFILE) $(mandir)

installlib: $(LIBRARY) $(APIHEADER)
	$(mkinstalldirs) $(libdir) $(includedir)
	$(LIBTOOL) --mode=install $(INSTALL) 
$(LIBRARY) $(libdir)/$(LIBRARY)
	$(INSTALL_DATA) $(APIHEADER) 
$(includedir)

uninstall: uninstalllib
	$(LIBTOOL) --mode=uninstall rm -f 
$(bindir)/xmlwf
	rm -f $(mandir)/xmlwf.1

uninstalllib:
	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/
$(LIBRARY)
	rm -f $(includedir)/$(APIHEADER)

# for VPATH builds (invoked by configure)
mkdir-init:
	@for d in lib xmlwf examples tests ; do 		(mkdir $$d 2> /dev/null || test 1) ; 	done

CC = gcc
LIBTOOL = $(SHELL) $(top_builddir)/libtool

INCLUDES = -I$(srcdir)/lib -I.
LDFLAGS = 
CPPFLAGS = 
CFLAGS = -g -O2 -Wall -Wmissing-prototypes -Wstrict-
prototypes -fexceptions
VSNFLAG = -version-info 3:0:3

### autoconf this?
LTFLAGS = --silent

COMPILE = $(CC) $(CFLAGS) $(DEFS) $(CPPFLAGS) 
$(INCLUDES)
LTCOMPILE = $(LIBTOOL) $(LTFLAGS) --
mode=compile $(COMPILE)
LINK_LIB = $(LIBTOOL) $(LTFLAGS) --mode=link 
$(COMPILE) -no-undefined $(VSNFLAG) -rpath $(libdir) 
$(LDFLAGS) -o $@
LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link 
$(COMPILE) $(LDFLAGS) -o $@

LIB_OBJS = lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo
$(LIBRARY): $(LIB_OBJS)
	$(LINK_LIB) $(LIB_OBJS)

lib/xmlparse.lo: lib/xmlparse.c lib/expat.h lib/xmlrole.h 
lib/xmltok.h 	$(top_builddir)/expat_config.h

lib/xmlrole.lo: lib/xmlrole.c lib/ascii.h lib/xmlrole.h 	$(top_builddir)/expat_config.h

lib/xmltok.lo: lib/xmltok.c lib/xmltok_impl.c 
lib/xmltok_ns.c 	lib/ascii.h lib/asciitab.h lib/iasciitab.h 
lib/latin1tab.h 	lib/nametab.h lib/utf8tab.h lib/xmltok.h 
lib/xmltok_impl.h 	$(top_builddir)/expat_config.h


XMLWF_OBJS = xmlwf/xmlwf.o xmlwf/xmlfile.o 
xmlwf/codepage.o xmlwf/unixfilemap.o
xmlwf/xmlwf.o: xmlwf/xmlwf.c
xmlwf/xmlfile.o: xmlwf/xmlfile.c
xmlwf/codepage.o: xmlwf/codepage.c
xmlwf/unixfilemap.o: xmlwf/unixfilemap.c
xmlwf/xmlwf: $(XMLWF_OBJS) $(LIBRARY)
	$(LINK_EXE) $(XMLWF_OBJS) $(LIBRARY)

examples/elements.o: examples/elements.c
examples/elements: examples/elements.o $(LIBRARY)
	$(LINK_EXE) $< $(LIBRARY)

examples/outline.o: examples/outline.c
examples/outline: examples/outline.o $(LIBRARY)
	$(LINK_EXE) $< $(LIBRARY)

tests/chardata.o: tests/chardata.c tests/chardata.h
tests/runtests.o: tests/runtests.c tests/chardata.h
tests/runtests: tests/runtests.o tests/chardata.o 
$(LIBRARY)
	$(LINK_EXE) $^ -lcheck

tests/xmltest.zip:
	cd tests && wget 
ftp://ftp.jclark.com/pub/xml/xmltest.zip

tests/xmltest: tests/xmltest.zip
	cd tests && unzip -q xmltest.zip

run-xmltest: xmlwf/xmlwf tests/xmltest
	tests/xmltest.sh

.SUFFIXES: .c .lo .o

.c.o:
	$(COMPILE) -o $@ -c $<
.c.lo:
	$(LTCOMPILE) -o $@ -c $<

.PHONY: buildlib all 	clean distclean extraclean maintainer-clean 	dist distdir 	install uninstall


Any help would be greatly appreciated.


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

Comment By: Nobody/Anonymous (nobody)
Date: 2004-05-25 12:12

Message:
Logged In: NO 

Regarding the preceding message: I build and installed the 
newests expat library with no difficulties. In order to install 
XML::Parser, I had to set EXPATHLIBPATH and 
EXPATINCPATH, as per the instructions from the 
corresponding Makefile.PL. Nonetheless, I get this error 
output if I type "gmake" and "gmake install" in the directory 
where I've gunzipped XML::Parser:

PROMPT% gmake
gmake[1]: Entering directory `/export/home/tnassar/XML-
Parser-2.34/Expat'
cc -c   -xO3 -xdepend    -DVERSION=\2.34\ -
DXS_VERSION=\2.34\ -KPIC -I/usr/perl5/5.00503/sun4-
solaris/CORE  Expat.c
/usr/ucb/cc:  language optional software package not 
installed
gmake[1]: *** [Expat.o] Error 1
gmake[1]: Leaving directory `/export/home/tnassar/XML-
Parser-2.34/Expat'
gmake: *** [subdirs] Error 2


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

Comment By: Nobody/Anonymous (nobody)
Date: 2004-05-25 11:58

Message:
Logged In: NO 

I still get this error using the newest release of expat. 
Unfortunately, the machine I'm trying to install this on is an 
old Sun, with Perl 5.0! Perhaps there's no helping me. 

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

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2003-01-20 21:16

Message:
Logged In: YES 
user_id=3066

This may be an XML::Parser problem, or it might be a problem
building using non-GNU make on this platform, but it's
definately a build-process issue for an older version of
Expat.  Since the build process has changed a fair bit
(though not so much as for some older releases), I'm closing
this as out-of-date.

If this can be reproduced using the 1.95.5 release or the
CVS version of the code, please open a new report.  Include
all error output.

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

Comment By: Nobody/Anonymous (nobody)
Date: 2002-09-10 08:22

Message:
Logged In: NO 

An answer to zhangy at zhangy, although this is not a right place
for one. Sorry...

You seem to be using GCC on Solaris. /usr/ucb/cc is just a
wrapper script made by Sun which tries to find Sun's C
compiler. I know almost nothing about Perl and its libraries
(and I think that you know almost nothing about Solaris,
he-he ;), but I suggest you to make Perl configuration
script use 'gcc' instead of 'cc'.

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

Comment By: Nobody/Anonymous (nobody)
Date: 2002-09-09 15:33

Message:
Logged In: NO 

Hello, Sir,
I run into a make problem on Solaris 8.

system info:[24] 


zhangy at zhangy: uname -a
SunOS zhangy 5.8 Generic_108528-13 sun4u sparc
SUNW,Ultra-5_10

I download the perl module XML::Parser (version 2.31,
released on  from 
www.cpan.org. 


Before I install above module, I install expat first.

I download expat module from
http://sourceforge.net/project/expat/ and put the 
file under directory

/home/zhangy/perl/module/ 

then unzip the file: 

gzip -d  .gz expat-1.95.5.tar

then 

tar -xvf expat-1.95.5.tar

then
 
under directory  /home/zhangy/perl/module/expat-1.95.5/
do the following:


1) type from prompt:

./configure --prefix=/home/zhangy/perl/perlxml/    
CC=/net/bandsaw2/tools/on81-tools/SUNWspro/SC6.1-new/bin/cc
     

2) type from prompt
   make

3) type from prompt
   make install

so far so good.


Then I begin to install XML::Parser

under directory:

/home/zhangy/perl/module/XML-Parser-2.31/

from prompt type:

perl Makefile.PL PREFIX=/home/zhangy/perl INSTALLDIRS=module 
                  
EXPATLIBPATH=/home/zhangy/perl/perlxml/lib 
                  
EXPATINCPATH=/home/zhangy/perl/perlxml/include/

It shows:

Writing Makefile for XML::Parser::Expat
Writing Makefile for XML::Parser


SO FAR SO GOOD.


Then still under dir 
/home/zhangy/perl/module/XML-Parser-2.31/

from prompt type:

make


it shows:

********************************************************************
[51] zhangy at zhangy: make
cc -c -I/home/zhangy/perl/perlxml/include/  -xO3
-xdepend     -DVERSION=\2.31\ 
 -DXS_VERSION=\2.31\ -KPIC
-I/usr/perl5/5.00503/sun4-solaris/CORE  Expat.c
/usr/ucb/cc:  language optional software package not
installed
*** Error code 1
make: Fatal error: Command failed for target `Expat.o'
Current working directory
/home/zhangy/perl/module/XML-Parser-2.31/Expat
*** Error code 1
make: Fatal error: Command failed for target `subdirs'
*******************************************************************

So what is wrong for the installation?  Where do I get the 
"language optional software package" that is not installed?


Thanks for help.



Charlie


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

Comment By: Nobody/Anonymous (nobody)
Date: 2002-08-31 06:26

Message:
Logged In: NO 

Are you using Sun's make? This isn't a wise thing when you are
working with autoconf-generated stuff  --  and you are!

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=591556&group_id=10127



More information about the Expat-bugs mailing list