Opened 10 years ago
Closed 10 years ago
#5550 closed defect (fixed)
configure --with-oci-lib=path fails because -lclntsh is before configtest.cpp on comman line
Reported by: | vmo | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.11.2 |
Component: | ConfigBuild | Version: | unspecified |
Severity: | normal | Keywords: | oci |
Cc: |
Description
This fails (undefined symbols):
g++ -o conftest -g -O2 -DHAVE_SSE_AT_COMPILE_TIME -I/usr/include/oracle/12.1/client64 -L/usr/lib/oracle/12.1/client64/lib -lclntsh conftest.cpp -lnetcdf -lmfhdfalt -ldfalt -logdi -ljpeg -ltiff -lpng -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl
This works (-lclntsh is placed after conftest.cpp):
g++ -o conftest -g -O2 -DHAVE_SSE_AT_COMPILE_TIME -I/usr/include/oracle/12.1/client64 conftest.cpp -L/usr/lib/oracle/12.1/client64/lib -lclntsh -lnetcdf -lmfhdfalt -ldfalt -logdi -ljpeg -ltiff -lpng -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Component: | default → ConfigBuild |
---|---|
Keywords: | oci added |
Milestone: | → 1.11.2 |
Resolution: | → fixed |
Status: | new → closed |
trunk r27842 "configure: fix detection of OCI by changing linking order to please modern GCC (#5550)"