This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

__pthread_raise undeclared in raise.c



Trying to crosscompile for AMR using crosstool-0.43 and got following error


.../linuxthreads/sysdeps/unix/sysv/linux/raise.c:32 error: '__pthread_raise' undeclared (first use in this function)

I need to know how 'week_extern' works and if gcc 4.1.1 use it?

Source
=========

#include <signal.h>
#include <unistd.h>
#include <bits/libc-lock.h>

#ifndef SHARED
weak_extern (__pthread_raise)
#endif

/* Raise the signal SIG.  */
int
raise (sig)
    int sig;
{
 return __libc_maybe_call2 (pthread_raise, (sig),
			     __kill (__getpid (), sig));
}
libc_hidden_def (raise)
weak_alias (raise, gsignal)

Crosstool setup
===========
AR=
BINUTILS_DIR=binutils-2.16.1
BINUTILS_EXTRA_CONFIG=
BUILD=i686-pc-linux-gnu
BUILD_DIR=/opt/crosstool/crosstool-0.43/build/arm-unknown-linux-gnu/gcc-4.1.1-glibc-2.3.6
CC=
DEJAGNU=
EXTRA_TARGET_CFLAGS=
GCC_BUILD=
GCC_CORE_DIR=gcc-4.1.0
GCC_DIR=gcc-4.1.1
GCC_EXTRA_CONFIG=
GCC_HOST=
GCC_LANGUAGES=c,c++
GDB_DIR=gdb-6.5
GLIBC_ADDON_OPTIONS==linuxthreads,
GLIBC_DIR=glibc-2.3.6
GLIBC_EXTRA_CC_ARGS=
GLIBC_EXTRA_CONFIG=
GLIBC_EXTRA_ENV=
JUST_DOWNLOAD=
KERNELCONFIG=/opt/crosstool/crosstool-0.43/arm.config
LINUX_DIR=linux-2.6.15.4
LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0
NO_DOWNLOAD=
PREFIX=/opt/crosstool/build-0.43-debug/gcc-4.1.1-glibc-2.3.6/arm-unknown-linux-gnu
PTXDIST_DIR=
SHARED_MODE=--enable-shared
SRC_DIR=/opt/crosstool/crosstool-0.43/build/arm-unknown-linux-gnu/gcc-4.1.1-glibc-2.3.6
TARBALLS_DIR=/home/pmp/downloads
TARGET=arm-unknown-linux-gnu
TARGET_CFLAGS=-O -g
TOP_DIR=/opt/crosstool/crosstool-0.43
USE_SYSROOT=

=========

/Pelle

_________________________________________________________________
Tips för husbygget på MSN http://alltombostad.msn.se/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]