[Bug 1992159] Re: Syntax error defien in socket.h

Karsten Spang 1992159 at bugs.launchpad.net
Wed Feb 22 08:24:07 UTC 2023


First, you will have to get the Oracle client as described in comment #4
and install it, e.g. under /opt/oracle/instantclient_21_7.

You will have to modify the file precomp/admin/pcscfg.cfg, because it
does not have all the include paths needed for Ubuntu. My version looks
like:

sys_include=($ORACLE_HOME/sdk/include,/usr/include,/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include,/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include,/usr/lib/gcc/x86_64-redhat-linux/4.4.4/include,/usr/lib64/gcc/x86_64-suse-linux/4.8/include,/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include)
sys_include=/usr/lib64/gcc/x86_64-suse-linux/7/include
sys_include=/usr/lib/gcc/x86_64-redhat-linux/8/include
sys_include=/usr/lib/gcc/x86_64-linux-gnu/9/include
sys_include=/usr/lib/gcc/x86_64-linux-gnu/8/include
sys_include=/usr/lib/gcc/x86_64-linux-gnu/11/include
sys_include=/usr/include/x86_64-linux-gnu
ltype=short
define=__x86_64__
define=_MATH_H

To run, you will need to set these environment variables
- ORACLE_HOME to where you installed the client, e.g. /opt/oracle/instantclient_21_7
- PATH to include where you find proc
- LD_LIBRARY_PATH to include where you find libclntsh.so

Create a file test.pc with the contents
#include <sys/socket.h>

Run
proc iname=test.pc oname=test.c sqlcheck=syntax code=ansi_c parse=partial

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1992159

Title:
  Syntax error defien in socket.h

Status in glibc package in Ubuntu:
  Triaged

Bug description:
  On line 184 in/usr/include/x86_64-linux-gnu/sys/socket.h it says

  #  defien sendmsg __sendmsg64

  which obviously should read "define" instead.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: libc6-dev 2.35-0ubuntu3.1
  ProcVersionSignature: Microsoft 4.4.0-22000.653-Microsoft 4.4.35
  Uname: Linux 4.4.0-22000-Microsoft x86_64
  ApportVersion: 2.20.11-0ubuntu82.1
  Architecture: amd64
  CasperMD5CheckResult: unknown
  Date: Fri Oct  7 13:06:34 2022
  ProcEnviron:
   LD_LIBRARY_PATH=<set>
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  SourcePackage: glibc
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1992159/+subscriptions




More information about the foundations-bugs mailing list