Project

General

Profile

Bug #7196

sparc: libbc syscall conflicts with syscall.h

Added by Alexander Eremin almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2016-07-19
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

+ /opt/gcc/4.4.4/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics-show-option -nodefaultlibs -mno-integer-ldd-std -D__sun -fno-strict-aliasing -fn
o-unit-at-a-time -fno-optimize-sibling-calls -O2 -m32 -Wall -Wextra -Werror -Wno-missing-braces -Wno-sign-compare -Wno-unknown-pragmas -Wno-unused-parameter -Wno-missing-field-init
ializers -Wno-array-bounds -Wno-unused -Wno-empty-body -Wno-implicit-function-declaration -Wno-char-subscripts -Wno-extra -Wno-parentheses -Wno-uninitialized -Wno-unused -Wno-switc
h -Wno-address -std=gnu89 -fno-inline-small-functions -fno-inline-functions-called-once -fno-ipa-cp -mno-app-regs -Dsparc -I. -Iinc -I../inc/include -I../inc/include/sys -DTEXT_DOM
AIN="SUNW_OST_OSLIB" -D_TS_ERRNO -I/code/illumos-gate/proto/root_sparc/usr/include -fpic -DPIC -c -o pics/syscall.o ../libc/sys/common/syscall.c -mcpu=v8 -mno-v8plus
../libc/sys/common/syscall.c:87: error: conflicting types for 'syscall'
/code/illumos-gate/proto/root_sparc/usr/include/sys/syscall.h:514: note: previous declaration of 'syscall' was here
  • Error code 1
    dmake: Warning: Command failed for target `pics/syscall.o'
    Current working directory /data/code/illumos-gate/usr/src/lib/libbc/sparc
    dmake: Warning: Target `libc.so.1.9' not remade because of errors
    Current working directory /data/code/illumos-gate/usr/src/lib/libbc/sparc
  • Error code 1

History

#1

Updated by Olaf Bohlen over 3 years ago

I fixed that by changing the datatype for syscall from int to long. After that my built was fine. I'll prepare a small patch.

#2

Updated by Toomas Soome over 3 years ago

Olaf Bohlen wrote:

I fixed that by changing the datatype for syscall from int to long. After that my built was fine. I'll prepare a small patch.

can we just burn libbc please?;)

#3

Updated by Olaf Bohlen over 3 years ago

  • Category set to lib - userland libraries
  • Status changed from New to In Progress
  • Assignee set to Olaf Bohlen
  • % Done changed from 0 to 70
#5

Updated by Electric Monk over 3 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 70 to 100

git commit 0761b1e6f15f85a8689a952d8aa7d8a1c0d949f7

commit  0761b1e6f15f85a8689a952d8aa7d8a1c0d949f7
Author: Olaf Bohlen <olbohlen@eenfach.de>
Date:   2017-01-10T23:05:46.000Z

    7196 sparc: libbc syscall conflicts with syscall.h
    Reviewed by: Igor Kozhukhov <igor@dilos.org>
    Reviewed by: Alexander Pyhalov <apyhalov@gmail.com>
    Approved by: Robert Mustacchi <rm@joyent.com>

Also available in: Atom PDF