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

Dominik Viererbe 1992159 at bugs.launchpad.net
Tue Feb 21 18:54:49 UTC 2023


Hello Karsten,
thank you for taking the time to report this bug and helping improve Ubuntu.

I try replicating the bug to write a Stable Release Update request for
Ubuntu 22.04 jammy. I am not familiar with Oracle ESQL. Can you write
more detailed instructions on how to reproduce the bug?

In the meantime, I will try to find a compiler that also reproduces your
result.

I did some research today:
A Compilers will exit with a syntax error when a user tries to compile glibc for systems where the 'time_t' type of the default ABI is 32 bits (e.g. arm, hppa, microblaze). The compiler must be a Clang compiler with a major version of less than four and is either a GNUC compiler with a major version of less than two or no GNUC compiler. 

If someone should be confused, here is the logical notation:
TIME_BITS_SIZE = 32 AND CLANG_MAJOR < 4 AND (NOT GNUC OR GNUC < 2)

As Simon Chopin (schopin) pointed out:
Many non-GNUC compilers try to appear as a GNUC compiler by using pre-defined compiler macros typical for GNUC compilers. 

A non-GNUC compiler that tries to appear as GNUC version two or higher
may NOT be affected, while a non-GNUC compiler may be affected.

-- 
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