Bug 692316 - cross compile undefined reference to gs_lips3_device
Summary: cross compile undefined reference to gs_lips3_device
Status: RESOLVED WORKSFORME
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: 9.02
Hardware: Other Linux
: P4 normal
Assignee: Chris Liddell (chrisl)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-30 06:59 UTC by Christian Moeller
Modified: 2011-08-12 14:45 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
buildscript for crosscompile ghostscript (13.14 KB, application/x-shellscript)
2011-06-30 06:59 UTC, Christian Moeller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Moeller 2011-06-30 06:59:30 UTC
Created attachment 7634 [details]
buildscript for crosscompile ghostscript

Hallo, im trying to cross compile Ghostscript 9.02 for arm9. I followed the instruction listed in file://ghostscript-9.02/doc/Make.htm#Cross-compiling. I wrote a little build-script: build_ghostscript.sh.
If i run that script I get the following outout from gcc:
psi/zcie.c: In function 'cie_table_param':
psi/zcie.c:229: warning: passing argument 1 of 'mem->procs.free_object' discards qualifiers from pointer target type
psi/zcie.c: In function 'cieaspace':
psi/zcie.c:672: warning: passing argument 3 of 'cie_cache_push_finish' discards qualifiers from pointer target type
base/gsciemap.c: In function 'gx_remap_CIEDEFG':
base/gsciemap.c:234: warning: passing argument 2 of 'gx_ciedefg_to_icc' discards qualifiers from pointer target type
base/gsciemap.c:244: warning: passing argument 3 of 'rescale_input_color' discards qualifiers from pointer target type
base/gsciemap.c: In function 'gx_concretize_CIEDEFG':
base/gsciemap.c:271: warning: passing argument 2 of 'gx_ciedefg_to_icc' discards qualifiers from pointer target type
base/gsciemap.c:281: warning: passing argument 3 of 'rescale_input_color' discards qualifiers from pointer target type
base/gsciemap.c: In function 'gx_remap_CIEDEF':
base/gsciemap.c:503: warning: passing argument 2 of 'gx_ciedef_to_icc' discards qualifiers from pointer target type
base/gsciemap.c:513: warning: passing argument 3 of 'rescale_input_color' discards qualifiers from pointer target type
base/gsciemap.c: In function 'gx_concretize_CIEDEF':
base/gsciemap.c:540: warning: passing argument 2 of 'gx_ciedef_to_icc' discards qualifiers from pointer target type
base/gsciemap.c:550: warning: passing argument 3 of 'rescale_input_color' discards qualifiers from pointer target type
base/gsciemap.c: In function 'gx_remap_CIEABC':
base/gsciemap.c:602: warning: passing argument 2 of 'gx_cieabc_to_icc' discards qualifiers from pointer target type
base/gsciemap.c:612: warning: passing argument 3 of 'rescale_input_color' discards qualifiers from pointer target type
base/gsciemap.c: In function 'gx_concretize_CIEABC':
base/gsciemap.c:638: warning: passing argument 2 of 'gx_cieabc_to_icc' discards qualifiers from pointer target type
base/gsciemap.c:648: warning: passing argument 3 of 'rescale_input_color' discards qualifiers from pointer target type
base/gsciemap.c: In function 'gx_remap_CIEA':
base/gsciemap.c:692: warning: passing argument 2 of 'gx_ciea_to_icc' discards qualifiers from pointer target type
base/gsciemap.c:703: warning: passing argument 3 of 'rescale_input_color' discards qualifiers from pointer target type
base/gsciemap.c: In function 'gx_concretize_CIEA':
base/gsciemap.c:726: warning: passing argument 2 of 'gx_ciea_to_icc' discards qualifiers from pointer target type
base/gsciemap.c:737: warning: passing argument 3 of 'rescale_input_color' discards qualifiers from pointer target type
base/gxpcmap.c: In function 'gx_pattern_cache_free_entry':
base/gxpcmap.c:760: warning: assignment discards qualifiers from pointer target type
base/gscdevn.c: In function 'gx_concretize_DeviceN':
base/gscdevn.c:431: warning: passing argument 1 of 'gs_colorspace_set_icc_equivalent' discards qualifiers from pointer target type
base/gxshade.c: In function 'shade_init_fill_state':
base/gxshade.c:384: warning: passing argument 1 of 'gs_colorspace_set_icc_equivalent' discards qualifiers from pointer target type
base/gxblend.c: In function 'smask_luminosity_mapping':
base/gxblend.c:56: warning: assignment discards qualifiers from pointer target type
base/gxblend.c:59: warning: passing argument 1 of 'memcpy' discards qualifiers from pointer target type
base/gxblend.c:66: warning: passing argument 1 of 'memcpy' discards qualifiers from pointer target type
base/gxblend.c: In function 'smask_copy':
base/gxblend.c:189: warning: assignment discards qualifiers from pointer target type
base/gdevp14.c: In function 'pdf14_tile_pattern_fill':
base/gdevp14.c:2127: warning: passing argument 1 of 'pdf14_pop_transparency_group' discards qualifiers from pointer target type
base/gdevp14.c: In function 'pdf14_patt_trans_image_fill':
base/gdevp14.c:2231: warning: passing argument 4 of 'compute_group_device_int_rect' discards qualifiers from pointer target type
base/gdevp14.c: In function 'pdf14_clist_create_compositor':
base/gdevp14.c:6052: warning: passing argument 4 of 'pdf14_clist_update_params' discards qualifiers from pointer target type
base/gsicc_cache.c: In function 'gsicc_get_link':
base/gsicc_cache.c:441: warning: passing argument 1 of 'gsicc_get_gscs_profile' discards qualifiers from pointer target type
base/gsicc_cache.c:453: warning: passing argument 1 of 'gsicc_get_link_profile' discards qualifiers from pointer target type
base/gsicc_cache.c: In function 'gsicc_transform_named_color':
base/gsicc_cache.c:746: warning: passing argument 1 of 'get_to_next_line' from incompatible pointer type
base/gsicc_cache.c:768: warning: passing argument 1 of 'strtok' discards qualifiers from pointer target type
base/gsicc_cache.c:850: warning: passing argument 1 of 'gsicc_get_link_profile' discards qualifiers from pointer target type
base/gxclutil.c:463: warning: integer constant is too large for 'long' type
base/gxclutil.c:464: warning: integer constant is too large for 'long' type
base/gxclutil.c:465: warning: integer constant is too large for 'long' type
base/gxclutil.c:466: warning: integer constant is too large for 'long' type
base/gxclutil.c:475: warning: integer constant is too large for 'long' type
base/gxclutil.c:476: warning: integer constant is too large for 'long' type
base/gxclutil.c:477: warning: integer constant is too large for 'long' type
base/gxclutil.c:478: warning: integer constant is too large for 'long' type
base/gdevxcf.c: In function 'xcf_icc_to_tile':
base/gdevxcf.c:1320: warning: passing argument 2 of 'gscms_transform_color' discards qualifiers from pointer target type
base/gdevphex.c:1019: warning: initialization from incompatible pointer type
base/rinkj/rinkj-screen-eb.c: In function 'rinkj_screen_eb_write':
base/rinkj/rinkj-screen-eb.c:176: warning: assignment discards qualifiers from pointer target type
base/rinkj/rinkj-screen-eb.c:184: warning: passing argument 2 of 'even_better_line' from incompatible pointer type
base/rinkj/rinkj-screen-eb.c:184: warning: passing argument 3 of 'even_better_line' from incompatible pointer type
base/gxcmap.c: In function 'cmap_separation_direct':
base/gxcmap.c:1183: warning: passing argument 1 of 'gsicc_get_link_profile' discards qualifiers from pointer target type
base/gxcmap.c: In function 'devicen_icc_cmyk':
base/gxcmap.c:1241: warning: passing argument 1 of 'gsicc_get_link_profile' discards qualifiers from pointer target type
base/gxht_thresh.c: In function 'gx_ht_threshold_landscape':
base/gxht_thresh.c:287: warning: 'align' attribute directive ignored
base/gximono.c: In function 'image_render_mono_ht':
base/gximono.c:990: warning: assignment discards qualifiers from pointer target type
base/gxipixel.c: In function 'gx_image_enum_begin':
base/gxipixel.c:384: warning: passing argument 1 of 'gs_colorspace_set_icc_equivalent' discards qualifiers from pointer target type
base/gxipixel.c:388: warning: initialization discards qualifiers from pointer target type
base/gxipixel.c: In function 'image_init_color_cache':
base/gxipixel.c:909: warning: assignment discards qualifiers from pointer target type
base/gdevddrw.c: In function 'gx_default_begin_image':
base/gdevddrw.c:991: warning: passing argument 1 of 'gs_set_object_tag' discards qualifiers from pointer target type
base/gdevddrw.c: In function 'gx_default_begin_typed_image':
base/gdevddrw.c:1017: warning: passing argument 1 of 'gs_set_object_tag' discards qualifiers from pointer target type
/tmp/cct3LCCS.o: In function `gp_open_scratch_file_generic':
gp_unifs.c:(.text+0x17c): warning: the use of `mktemp' is dangerous, better use `mkstemp'
/tmp/ccsyXSlf.o:(.data+0x20c): undefined reference to `gs_lips3_device'
collect2: ld returned 1 exit status

I tried to build contrib to solve that. But it failed on #include "gdevpstr.h" in contrib/lips4/gdevl4v.c and contrib/eplaser/gdevescv.c with file not found error.
Best regards
Comment 1 Hin-Tak Leung 2011-06-30 22:50:57 UTC
Bit-rot:

doc/History5.htm line 2991 :	- gdevpstr.h is renamed spprint.h

The change was made, well, in gs 5/6, nearly 10 years ago...

it seems that gdevpstr.h in some of contrib/* was commented out and duplicated and no longer needed, so I'd suggest "if 0" out that line first, like elsewhere in contrib/*, before renaming .
Comment 2 Christian Moeller 2011-07-01 10:40:38 UTC
First I tried to rename gdevpstr.h to spprint.h. It doesn't work.
I solved the problem by adding -DGS_VERSION_MAJOR=9 -DFMLBP_NOADJUST_MARGIN. Now I can compile an run ghostscript.