jmichaelh / xar

Automatically exported from code.google.com/p/xar
0 stars 0 forks source link

Build error on Solaris 9 #68

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. ./configure
2. make

What is the expected output? What do you see instead?
gcc -Wall -g   -Iinclude -Iinclude
-I/home/wiget/3rd/bin/sparc64-solaris9/xar-1.5.2/../openssl-0.9.8k/include
-I/home/wiget/3rd/bin/sparc64-solaris9/xar-1.5.2/../zlib-1.2.3
-I/home/wiget/3rd/bin/sparc64-solaris9/xar-1.5.2/../libxml2-2.7.3/include
-I/usr/local/include/libxml2 -c lib/archive.c -o lib/archive.static.o
In file included from lib/archive.c:58:
include/xar.h:44:20: error: stdint.h: No such file or directory

What version of the product are you using? On what operating system?
Solaris 9 on Sparc

Please provide any additional information below.
From config.log:
configure:3611: checking for stdint.h
configure:3627: gcc -c -Wall -g
-I/home/wiget/3rd/bin/sparc64-solaris9/xar-1.5.2/../openssl-0.9.8k/include
-I/home/wiget/3rd/bin/sparc64-solaris9/xar-1.5.2/../zlib-1.2.3
-I/home/wiget/3rd/bin/sparc64-solaris9/xar-1.5.2/../libxml2-2.7.3/include
conftest.c >&5
conftest.c:53:20: error: stdint.h: No such file or directory
[...]
configure:3657: result: no

but in include/xar.h.in stdint.h is included unconditionaly

On Solaris 9 you can include inttypes.h instead.

Original issue reported on code.google.com by Artur.Fr...@gmail.com on 22 Oct 2009 at 5:16

GoogleCodeExporter commented 8 years ago
Since xar.h is a published header, and I don't really ship the autoconf 
generated config.h I've adjusted the 
inclusion of stdint.h based on the use of __STDC_VERSION__.  Since xar uses C99 
types and macros rather 
extensively, and AFAIK stdint.h is defined in C99 to be where C99 fixed width 
types are defined, I'm not sure 
how well xar will work on pre- or non-C99 systems.

Commit 228 attempts to address the problem, but I don't have access to Solaris 
9 to test.

Original comment by bbraun on 25 Nov 2009 at 1:29

GoogleCodeExporter commented 8 years ago

Original comment by bbraun on 25 Nov 2009 at 1:29

GoogleCodeExporter commented 8 years ago
Thanks for fixing this.

Now I stuck on the missing fts.h

gcc -Wall -g  -Iinclude -Iinclude -I/openpkg/include/libxml2 -I/openpkg/include 
-c
src/xar.c -o src/xar.o
src/xar.c:39:17: error: fts.h: No such file or directory

Some projects (eg RPM) have own version of this header file.
http://rpm5.org/cvs/rlog?f=rpm/rpmio/fts.h
http://rpm5.org/cvs/rlog?f=rpm/rpmio/fts.c

Original comment by Artur.Fr...@gmail.com on 26 Nov 2009 at 11:09