Unix Technical Forum

GhostScript on AIX

This is a discussion on GhostScript on AIX within the AIX Operating System forums, part of the Unix Operating Systems category; --> hi, i've a problem when i try to compile GhostScript on AIX 5.1 when i issue "make" it exits ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 11:53 AM
lupo75
 
Posts: n/a
Default GhostScript on AIX

hi, i've a problem when i try to compile GhostScript on AIX 5.1
when i issue "make" it exits with this error:

In file included from jasper/src/libjasper/include/jasper/jasper.h:66,
from src/sjpx.h:29,
from ./src/zfjpx.c:40:
jasper/src/libjasper/include/jasper/jas_types.h:139: stdint.h: No such
file or directory
make: The error code from the last command is 1.


could someone help me with this? maybe giving me a tip advicing me how
to get to solute this one?

thank you very much in advance,

Alberto

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 11:53 AM
Martin Etteldorf
 
Posts: n/a
Default Re: GhostScript on AIX

lupo75 <lupo.alberto75@gmail.com> wrote:
> hi, i've a problem when i try to compile GhostScript on AIX 5.1
> when i issue "make" it exits with this error:
> [...]
> jasper/src/libjasper/include/jasper/jas_types.h:139: stdint.h: No such
> file or directory
> [...]
> could someone help me with this? maybe giving me a tip advicing me how
> to get to solute this one?


Comment out the line
#define HAVE_STDINT_H 1
or replace it by
#undef HAVE_STDINT_H
in src/libjasper/include/jasper/jas_config.h



Martin
--
"For the Snark's a peculiar creature, that won't
Be caught in a commonplace way.
Do all that you know, and try all that you don't;
Not a chance must be wasted to-day!"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 11:54 AM
lupo75
 
Posts: n/a
Default Re: GhostScript on AIX



On Nov 30, 3:36 pm, Martin Etteldorf <ettel...@email.lu> wrote:
> lupo75 <lupo.albert...@gmail.com> wrote:
> > hi, i've a problem when i try to compile GhostScript on AIX 5.1
> > when i issue "make" it exits with this error:
> > [...]
> > jasper/src/libjasper/include/jasper/jas_types.h:139: stdint.h: No such
> > file or directory
> > [...]
> > could someone help me with this? maybe giving me a tip advicing me how
> > to get to solute this one?Comment out the line

> #define HAVE_STDINT_H 1
> or replace it by
> #undef HAVE_STDINT_H
> in src/libjasper/include/jasper/jas_config.h
>
> Martin


hi Martin,
first of all thank you for your reply!!
i've added

#undef HAVE_STDINT_H

in src/libjasper/include/jasper/jas_config.h as you told me (it wasn't
present at all)
but nothing changed.

i still have this error at line 139 in

jasper/src/libjasper/include/jasper/jas_types.h

around this line you find this:

#if defined(HAVE_STDINT_H)
/*
* The C language implementation does correctly provide the standard
header
* file "stdint.h".
*/
# include <stdint.h>
#else
/*
* The C language implementation does not provide the standard header
file
* "stdint.h" as required by ISO/IEC 9899:1999. Try to compensate for
this
* braindamage below.
*/
# include <limits.h>

do you have others ideas??

thank you
Alberto

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 11:54 AM
Martin Etteldorf
 
Posts: n/a
Default Re: GhostScript on AIX

lupo75 <lupo.alberto75@gmail.com> wrote:
>
>
> i still have this error at line 139 in
> jasper/src/libjasper/include/jasper/jas_types.h
>
> do you have others ideas??


Maybe it's defined somewhere else?
grep HAVE_STDINT_H jasper/src/libjasper/include/jasper/*


Martin

--
"For the Snark's a peculiar creature, that won't
Be caught in a commonplace way.
Do all that you know, and try all that you don't;
Not a chance must be wasted to-day!"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 11:54 AM
lupo75
 
Posts: n/a
Default Re: GhostScript on AIX

Martin Etteldorf ha scritto:

>
> Maybe it's defined somewhere else?
> grep HAVE_STDINT_H jasper/src/libjasper/include/jasper/*
>
>
> Martin


you were right, it was in

jasper/src/libjasper/include/jasper/jas_config_ac.h

i've undefined it as you told me, but now i've another kind of error:

ld: 0706-005 Cannot find or open file: libgcc.a
ldpen(): No such file or directory
ld: 0706-005 Cannot find or open file: libgcc.a
ldpen(): No such file or directory
gcc: file path prefix
`/opt/freeware/GNUPro/lib/gcc-lib/loadmap/2.9-aix51-020209/' never used

i've found libgcc.a in

/usr/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/libgcc.a

and copied it in the file path prefix (i don't know if it's useful to
do, but i've done it)

make again and

ld: 0711-317 ERROR: Undefined symbol: .inflate_blocks_reset
ld: 0711-317 ERROR: Undefined symbol: .inflate_blocks_free
ld: 0711-317 ERROR: Undefined symbol: .inflate_blocks_new
ld: 0711-317 ERROR: Undefined symbol: .inflate_blocks
ld: 0711-317 ERROR: Undefined symbol: .inflate_set_dictionary
ld: 0711-317 ERROR: Undefined symbol: .inflate_blocks_sync_point
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
gcc: file path prefix
`/opt/freeware/GNUPro/lib/gcc-lib/loadmap/2.9-aix51-020209/' never used
make: The error code from the last command is 1.

(-bloadmap or -bnoquiet are already in use in the makefile)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-05-2008, 11:54 AM
Martin Etteldorf
 
Posts: n/a
Default Re: GhostScript on AIX

lupo75 <lupo.alberto75@gmail.com> wrote:
> Martin Etteldorf ha scritto:
>
>>
>> Maybe it's defined somewhere else?
>> grep HAVE_STDINT_H jasper/src/libjasper/include/jasper/*

>
> you were right, it was in
>
> jasper/src/libjasper/include/jasper/jas_config_ac.h
>
> i've undefined it as you told me, but now i've another kind of error:
>
> ld: 0706-005 Cannot find or open file: libgcc.a
> ldpen(): No such file or directory
> ld: 0706-005 Cannot find or open file: libgcc.a
> ldpen(): No such file or directory
> gcc: file path prefix
> `/opt/freeware/GNUPro/lib/gcc-lib/loadmap/2.9-aix51-020209/' never used


Sounds like a broken Makefile, generated by a broken autoconf
or configure-script. Always the same with that GNU stuff under
AIX.
By the way, have you already considered installing a more recent
version of gcc?

> make again and
>
> ld: 0711-317 ERROR: Undefined symbol: .inflate_blocks_reset
> ld: 0711-317 ERROR: Undefined symbol: .inflate_blocks_free
> ld: 0711-317 ERROR: Undefined symbol: .inflate_blocks_new
> ld: 0711-317 ERROR: Undefined symbol: .inflate_blocks
> ld: 0711-317 ERROR: Undefined symbol: .inflate_set_dictionary
> ld: 0711-317 ERROR: Undefined symbol: .inflate_blocks_sync_point
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> gcc: file path prefix
> `/opt/freeware/GNUPro/lib/gcc-lib/loadmap/2.9-aix51-020209/' never used
> make: The error code from the last command is 1.
>
> (-bloadmap or -bnoquiet are already in use in the makefile)


How exactly are they in there? I asume, as "-bloadmap" and "-bnoquiet",
right? If I remember correctly, it should be "-Wl,-bloadmap" and
"-Wl,-bnoquiet". Maybe this fixes also your libgcc error.

For the undefined symbols .inflate_whatever: These are part of
libz.[a|so], so maybe it's missing at all (then you should also
get a ld: 0706-005 Cannot find or open file: libz.[a|so]), or
it's there but the version is wrong (most likely too old).
You can find the most recent version at <http://www.zlib.net/>.
Compile and install it and link ghostscript against this one instead
of the one you're currently using.


Martin
--
"For the Snark's a peculiar creature, that won't
Be caught in a commonplace way.
Do all that you know, and try all that you don't;
Not a chance must be wasted to-day!"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:17 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com