Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make check fail on centos7 for proj-8.2.1 #3900

Closed
BaiShaoqi opened this issue Sep 21, 2023 · 3 comments
Closed

make check fail on centos7 for proj-8.2.1 #3900

BaiShaoqi opened this issue Sep 21, 2023 · 3 comments
Assignees
Labels

Comments

@BaiShaoqi
Copy link

BaiShaoqi commented Sep 21, 2023

Example of problem

Demonstrate the problem you have found, either by using PROJ tools like cs2cs, cct or projinfo or add a code snippet that highlights the problem using the PROJ C/C++ API.
A "Minimal, Complete and Verifiable Example" will make it much easier for maintainers to help you:
http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports

# centos 7
# download https://download.osgeo.org/proj/proj-8.2.1.tar.gz 
./configure --disable-tiff
make
make check

Problem description

make[5]: Entering directory `/tmp/aa/proj-8.2.1/test/gie'
PROJ_SKIP_READ_USER_WRITABLE_DIRECTORY=YES PROJ_LIB=../../data/for_tests ../../src/gie 4D-API_cs2cs-style.gie
-------------------------------------------------------------------------------
Reading file '4D-API_cs2cs-style.gie'
proj_create: Error 1025 (Invalid PROJ string syntax): pipeline: Pipeline: Mismatched units between step 1 and 2
proj_create: Error 1025 (Invalid PROJ string syntax): pipeline: Pipeline: Mismatched units between step 2 and 3
proj_create: Error 1027 (Invalid value for an argument): longlat: Invalid value for vto_meter donominator
proj_create: unrecognized format / unknown name
-------------------------------------------------------------------------------
total: 75 tests succeeded,  0 tests skipped,  0 tests failed.
-------------------------------------------------------------------------------
PROJ_SKIP_READ_USER_WRITABLE_DIRECTORY=YES PROJ_LIB=../../data/for_tests ../../src/gie GDA.gie
-------------------------------------------------------------------------------
Reading file 'GDA.gie'
-------------------------------------------------------------------------------
total:  3 tests succeeded,  0 tests skipped,  0 tests failed.
-------------------------------------------------------------------------------
PROJ_SKIP_READ_USER_WRITABLE_DIRECTORY=YES PROJ_LIB=../../data/for_tests ../../src/gie axisswap.gie
-------------------------------------------------------------------------------
Reading file 'axisswap.gie'
proj_create: Error 1028 (Mutually exclusive arguments): axisswap: order and axis parameters are mutually exclusive.
proj_create: Error 1028 (Mutually exclusive arguments): axisswap: order and axis parameters are mutually exclusive.
proj_create: Error 1027 (Invalid value for an argument): axisswap: swapaxis: duplicate axes specified
proj_create: Error 1027 (Invalid value for an argument): axisswap: swapaxis: bad axis order
proj_create: Error 1027 (Invalid value for an argument): axisswap: swapaxis: bad axis order
proj_create: Error 1027 (Invalid value for an argument): axisswap: unknown axis '5'
-------------------------------------------------------------------------------
total: 27 tests succeeded,  0 tests skipped,  0 tests failed.
-------------------------------------------------------------------------------
PROJ_SKIP_READ_USER_WRITABLE_DIRECTORY=YES PROJ_LIB=../../data/for_tests ../../src/gie builtins.gie
-------------------------------------------------------------------------------
Reading file 'builtins.gie'
proj_create: Error 1027 (Invalid value for an argument): aea: Invalid value for lat_1: |lat_1| should be <= 90°
proj_create: Error 1027 (Invalid value for an argument): aea: Invalid value for lat_2: |lat_2| should be <= 90°
proj_create: Error 1027 (Invalid value for an argument): aea: Invalid value for lat_1 and lat_2: |lat_1 + lat_2| should be > 0
proj_create: Error 1027 (Invalid value for an argument): aea: Invalid value for eccentricity
proj_create: Error 1027 (Invalid value for an argument): eqdc: Invalid value for eccentricity
proj_create: Error 1027 (Invalid value for an argument): eqdc: Invalid value for lat_1 and lat_2: |lat_1 + lat_2| should be > 0
proj_create: Error 1027 (Invalid value for an argument): eqdc: Invalid value for lat_1: |lat_1| should be <= 90°
proj_create: Error 1027 (Invalid value for an argument): eqdc: Invalid value for lat_2: |lat_2| should be <= 90°
proj_create: Error 1027 (Invalid value for an argument): eqdc: Invalid value for lat_1 and lat_2: |lat_1 + lat_2| should be > 0
proj_create: Error 1027 (Invalid value for an argument): geos: Invalid value for h.
proj_create: Error 1027 (Invalid value for an argument): geos: Invalid value for h.
proj_create: Error 1027 (Invalid value for an argument): krovak: Invalid value for lat_0: lat_0 + PI/4 should be different from 0
proj_create: Error 1027 (Invalid value for an argument): labrd: Invalid value for lat_0: lat_0 should be different from 0
proj_create: Error 1027 (Invalid value for an argument): laea: Invalid value for lat_0: |lat_0| should be <= 90°
proj_create: Error 1027 (Invalid value for an argument): lagrng: Invalid value for W: it should be > 0
proj_create: Error 1027 (Invalid value for an argument): lagrng: Invalid value for lat_1: |lat_1| should be < 90°
proj_create: Error 1027 (Invalid value for an argument): lcc: Invalid value for eccentricity
lcc: Invalid latitude
proj_create: Error 1027 (Invalid value for an argument): lcc: Invalid value for lat_2: |lat_2| should be < 90°
proj_create: Error 1027 (Invalid value for an argument): lcc: Invalid value for lat_1: |lat_1| should be < 90°
proj_create: Error 1027 (Invalid value for an argument): lcc: Invalid value for lat_1: |lat_1| should be < 90°
proj_create: Error 1027 (Invalid value for an argument): lcc: Invalid value for lat_2: |lat_2| should be < 90°
proj_create: Error 1027 (Invalid value for an argument): lcc: Invalid value for lat_1: |lat_1| should be < 90°
proj_create: Error 1027 (Invalid value for an argument): lcc: Invalid value for lat_1: |lat_1| should be < 90°
proj_create: Error 1027 (Invalid value for an argument): lcc: Invalid value for lat_2: |lat_2| should be < 90°
proj_create: Error 1027 (Invalid value for an argument): nsper: Invalid value for h
proj_create: Error 1027 (Invalid value for an argument): nsper: Invalid value for h
proj_create: Error 1026 (Missing argument): ob_tran: Failed to find projection to be rotated
proj_create: Error 1027 (Invalid value for an argument): omerc: Invalid value for lat_01: |lat_0| should be < 90°
proj_create: Error 1027 (Invalid value for an argument): omerc: Invalid value for eccentricity
proj_create: Error 1027 (Invalid value for an argument): omerc: Invalid value for lat_1: |lat_1| should be < 90°
proj_create: Error 1027 (Invalid value for an argument): omerc: Invalid value for lat_2: |lat_2| should be < 90°
proj_create: Error 1027 (Invalid value for an argument): s2: Invalid value for s2 parameter: should be linear, quadratic, tangent, or none.
proj_create: Error 4096 (Unknown error (code 4096))
proj_create: Error 1027 (Invalid value for an argument): tpeqd: Invalid value for lat_1 and lat_2: their absolute value should be < 90°.
proj_create: Error 1027 (Invalid value for an argument): ups: Invalid value for es: only ellipsoidal formulation supported
proj_create: Error 1027 (Invalid value for an argument): urm5: Invalid value for n / alpha: n * sin(|alpha|) should be < 1.
proj_create: Error 1027 (Invalid value for an argument): utm: Invalid value for eccentricity: it should not be zero
proj_create: Error 1027 (Invalid value for an argument): utm: Invalid value for zone
proj_create: Error 1026 (Missing argument): topocentric: missing X_0 or lon_0
proj_create: Error 1026 (Missing argument): topocentric: missing Y_0 and/or Z_0
proj_create: Error 1026 (Missing argument): topocentric: missing lat_0
proj_create: Error 1028 (Mutually exclusive arguments): topocentric: (X_0,Y_0,Z_0) and (lon_0,lat_0,h_0) are mutually exclusive
-------------------------------------------------------------------------------
total: 2134 tests succeeded,  0 tests skipped,  0 tests failed.
-------------------------------------------------------------------------------
PROJ_SKIP_READ_USER_WRITABLE_DIRECTORY=YES PROJ_LIB=../../data/for_tests ../../src/gie deformation.gie
-------------------------------------------------------------------------------
Reading file 'deformation.gie'
proj_create: Error 1029 (File not found or invalid): pipeline: Pipeline: Bad step definition: proj=deformation (File not found or invalid)
-------------------------------------------------------------------------------
proj=pipeline step proj=cart ellps=GRS80 step proj=deformation grids=t...
-------------------------------------------------------------------------------
Invalid operation definition in line no. 36:
       File not found or invalid (errno=invalid_op_file_not_found_or_invalid/1029)
proj_create: Error 1026 (Missing argument): deformation: Either +grids or (+xy_grids and +z_grids) should be specified.
proj_create: Error 1026 (Missing argument): deformation: Either +grids or (+xy_grids and +z_grids) should be specified.
proj_create: Error 1029 (File not found or invalid): deformation: could not find requested xy_grid(s).
proj_create: Error 1029 (File not found or invalid): deformation: could not find requested z_grid(s).
proj_create: Error 1029 (File not found or invalid): deformation: could not find requested z_grid(s).
-------------------------------------------------------------------------------
total: 39 tests succeeded,  0 tests skipped,  2 tests FAILED!
-------------------------------------------------------------------------------
make[5]: *** [deformation] Error 2
make[5]: Leaving directory `/tmp/aa/proj-8.2.1/test/gie'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/tmp/aa/proj-8.2.1/test/gie'
make[3]: *** [check-recursive] Error 1
make[3]: Leaving directory `/tmp/aa/proj-8.2.1/test'
make[2]: *** [check-local] Error 2
make[2]: Leaving directory `/tmp/aa/proj-8.2.1'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/tmp/aa/proj-8.2.1'
make: *** [check-recursive] Error 1

Expected Output

Environment Information

  • PROJ version (8.2.1)
  • Operation System Information Centos7

Installation method

  • conda, apt-get, from source, etc...
@BaiShaoqi BaiShaoqi added the bug label Sep 21, 2023
@rouault
Copy link
Member

rouault commented Sep 21, 2023

The issue likely comes from disabling TIFF support. This isn't a recommended setup, and the test suite should probably skip some tests in that situation.

@BaiShaoqi
Copy link
Author

Thanks @rouault
our case would like to disable deps for package libtiff, so need to --disable-iff
the issue found in proj 8.2.1, will this be fixed in the next release ?

@rouault
Copy link
Member

rouault commented Sep 22, 2023

will this be fixed in the next release ?

this doesn't seem like a high priority fix to me. But feel free to submit a fix

@rouault rouault self-assigned this Sep 28, 2023
rouault added a commit that referenced this issue Sep 30, 2023
Test suite: fix to make it pass with ENABLE_TIFF=OFF (fixes #3900)
rouault added a commit that referenced this issue Oct 2, 2023
[Backport 9.3] Test suite: fix to make it pass with ENABLE_TIFF=OFF (fixes #3900)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants