From owner-freebsd-questions@FreeBSD.ORG Mon Jan 12 23:57:09 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7307364E for ; Mon, 12 Jan 2015 23:57:09 +0000 (UTC) Received: from mail-yk0-x230.google.com (mail-yk0-x230.google.com [IPv6:2607:f8b0:4002:c07::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 30FF017C for ; Mon, 12 Jan 2015 23:57:09 +0000 (UTC) Received: by mail-yk0-f176.google.com with SMTP id 79so10652774ykr.7 for ; Mon, 12 Jan 2015 15:57:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wssTiTQCcpAYNqn5CW1P9TGvjrgSfX3kvX90zvUeS9Y=; b=yIhMg7wiWUaEb2unsgeIuQtxnZHXtAx8l4zgasFxMSVAVkmf/Qg8KQLBfaltPq06th mmvN3IYfNMgXS5w6Q9ldR+o6V2912Nz1lZDV864znnDSK7DBqP8IWoD/5+/K34TmDKb5 ns22FvBGzMuJCRUHN98ra/p5ZUf5H07fNZ6zvZBaddT82R4OkTDvMkRLTMgGhFA7psDu Gk8NKG4b4St88m60gmFFYodeb/1EWr9WM70YKP5IjIrtcB/ucKW8dQr+fyZN1oQ9hM+P qpj2Biqy3r2BMbx9XDRhOO4cDnO+uoHMKWZ/fu7IXWxs6i4IcgN7N8InoceJDnhBoFku MMHQ== MIME-Version: 1.0 X-Received: by 10.170.197.144 with SMTP id o138mr27991105yke.84.1421107028296; Mon, 12 Jan 2015 15:57:08 -0800 (PST) Received: by 10.170.52.201 with HTTP; Mon, 12 Jan 2015 15:57:08 -0800 (PST) Date: Mon, 12 Jan 2015 15:57:08 -0800 Message-ID: Subject: Using pthread: compile error From: Rich Wilson To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2015 23:57:09 -0000 I have an application I'm moving from Linux to FreeBSD, and I've run into a perplexing situation. I get the following error: In file included from noteData.cc:5: ./notePlay.h:58:5: error: unknown type name 'pthread_mutex_t'; did you mean 'pthread_mutex'? pthread_mutex_t mutex_np; ^~~~~~~~~~~~~~~ pthread_mutex /usr/include/stdio.h:142:9: note: 'pthread_mutex' declared here struct pthread_mutex *_fl_mutex; /* used for MT-safety */ ^ As far as I can tell, 'man pthread' tells me this should be defined, and pthread.h (or its includes) doesn't. What's wrong? The system I am using is the file FreeBSD-11.0-CURRENT-arm-armv6-ZEDBOARD-20150111-r276981.img found at ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm/armv6/ISO-IMAGES/11.0/ -- Rich Wilson