Opened 7 years ago

Closed 7 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 Changed 7 years ago by Even Rouault

trunk r27842 "configure: fix detection of OCI by changing linking order to please modern GCC (#5550)"

comment:2 Changed 7 years ago by Even Rouault

Component: defaultConfigBuild
Keywords: oci added
Milestone: 1.11.2
Resolution: fixed
Status: newclosed

branches/1.11 r27843 "configure: fix detection of OCI by changing linking order to please modern GCC (#5550)"

Note: See TracTickets for help on using tickets.