Doing 32bit application development on amd64 Desktop needs to have the 32bit oracle libraries to be available somewhere. On other platforms (HP-UX, AIX, Solaris, Redhat Linux), the oracle-client provides libraries in $ORACLE_HOME/lib32 and $ORACLE_HOME/lib when it is a 64bit multilib platform, and $ORACLE_HOME/lib without multilib. For a 32bit application it works to link with "-L${ORACLE_HOME}/lib32 -L${ORACLE_HOME}/lib -lclntsh" to find the 32bit library (when available at all).
Created attachment 203457 [details] ebuild for 10.2.0.3 with IUSE=multilib The problem with 11.1.0.7.0 is that it requires dev-libs/libaio providing the 32bit library too, and I've lost track of how far portage does multilib compilation itself now.
Minor nit: it should work to 'unpack ...' instead of 'unzip ${DISTDIR}/...' now.
not so minor... take a look here : http://bugs.gentoo.org/show_bug.cgi?id=326777 (In reply to comment #2) > Minor nit: it should work to 'unpack ...' instead of 'unzip ${DISTDIR}/...' > now. >
oracle-instantclient-basic-11.2.0.3 does install 32bit libs with multilib amd64 profile.