X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B9B823858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=hpe.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=hpe.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pps0720; bh=fjlVcA/vCPGoTU0EJz2QZVIdJhBq4GSJDh4cSrpd598=; b=gQY0Ytmu2MaAHKdn0JPu63Pb3OmIrpQlDt8qPeJNsSkSMni9jn4SUaY9U0tXCCYb8zVS ihpp0seDdB1CIRcCrc0dxc3v0DOJ8Cu8Ht+nwb45vMIYApknRv6S66htDuCvl4ayXpOc OYyMyTUJXjNZFr5HNTHkTg2PKEKEsRmMu/+GJwgzLiuiXXFDUdJVb2XPosPDAE9LElEf jmVKbI667PLV0r5dePPHe9A56jDYPL+VxxB4QTRcu1O3tdcyJjeY1IMAobYD9BFWu/zU QS588stoN2R1t53RNVsJNvFT34JSAWhNzJyZYmo4o/Uvy5ToOK2DwfLQiEpvZt6+RyK1 eg== ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f7TCuk6v4NUfh0cjEAMRo+CSE8L8OSI03jto0Qj0O07NjKUzsxuS+lYH00Ho7AM+NpC3xVZv9v0XCBF8zl1nYIS5UuvQSD6WqZwZfi27/5jMrnIy9XyzGZWB37B17IesSziJJNh0faI31Uyi4R/4syqpP7y7pc2+Vl7M7NxGvHdtGWWI7R9lyMaoZrK6EhYZP9UvDYe86AoH2sgTt2GutPczS7yMbuv1T/a9tcSevBdQ5cnrNgCrKBj2X5HH0NsJm6cUpJ50mP3hRlnZi9s7c+8toxB7T5BBfxx/5hCnGeB4aNBNO4BdVfX9sZ6rkyQ3UhkBp8CZHQttJyf5ScjEMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CUSJhMsjxdEJeisBpPTDXlB0qljZwjhiVDYozA2TQrM=; b=EyyOy9qBclUGB7XizJAGMZHco6KGa6ANTwsfUnOPKkqoU6/pO2q9FsekBNN51Jt+URuV97eq6pbdwSxX/Js+F2RpNrmhxAvyyW4jY1NRBMphOdztirpimekKjBgY2AROFl1VO+O64j35cDgTYnnafdT5e7xSrs0byRXHDHEPRbuqCacf53gWdDI/81tVwkGhVYmSXSzbnD1qhHvIn5XhPMmhfiJWwwv+wTE/PK6pjsR1c5Pg4bxrjXrfZA1uAuFToUssAE0agXC1JS6Jyxw5Z8Moc5EyQphHRLgzwLbjSgN5LbYrWwG6q/uVITmfwz0ErDnYISsg572LhnFSh5H66g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none From: "Voris, Ben" To: Jon Turney , The Cygwin Mailing List Subject: RE: Link of ONC RPC client fails with: undefined references Thread-Topic: Link of ONC RPC client fails with: undefined references Thread-Index: AdhbdKIxG7r6nhJZSoa2a2w9ptoWVgAR75kAAA0NsyA= Date: Fri, 29 Apr 2022 18:11:59 +0000 Deferred-Delivery: Fri, 29 Apr 2022 18:11:20 +0000 Message-ID: References: <11dd5fe0-605b-0e47-7eac-4d57ee86ad2d AT dronecode DOT org DOT uk> In-Reply-To: <11dd5fe0-605b-0e47-7eac-4d57ee86ad2d@dronecode.org.uk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 25dae127-3a20-450b-e6e6-08da2a0bc53b x-ms-traffictypediagnostic: IA1PR84MB3105:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: r+V3MthO02cvft1q5FhVx1K8StgWxS5shCV1GkttBkQpve+P7TqoV5dGPH7UryYuTATLKM084AlVl2JeF3zf/5tRtMQ5Mk16/inFAygr52B1IcB6CXJiAmMKJUc5lYzJR5Y8oAUiLvLca4t3cA4NKWJsAhdex/O+cCzhr0omgtaIs6Thix0A10YjOmSnhwtQXd83QfUIAIaBUazCi3eyyOyqi8mnbybMINKh2UoxwIVZqunFciIFHRogcfGECrmdrDNeurZIbQ2viSTupMAOpItJzjM+c873wm5UgBYZCEw1n14s+hqekHwsM2m4ycKqCQuqfURWz6M//p2vvqxS3mRwwSUYC7wUdQTqCfqdiN8OxyBkyxYjp+1B2VTNsGB60eAIsg1BH9C1uRNMR4YK4A4AVjq3tJrYexn17q9vu08pTcm3W2LRxu8z2EKb4RBOSS0yK4V0ckT9buB4n92wY9Id3PfO/NzXvLvrZbhmPCYS7ya0f+YfJ9iWgllWQYYkbM8oZcPwH9Zf1vk9HN4CZwbbf2M8wzLkdTfmSz/siHfsjADjK00NuBhUCcUN2PGLJYElcEFkFiDTSwEkhU3gNREc6w+moLmXxq7R+6GFMe7d2iZOJ/BM4xRugrFO3jFm8icRoZ8Xap6eGrZPxSEcaO4wyNj2MXonrgcMRuNgoqKJej5CxOsEfg6yRC+MOfFN3K0kdUihAAc0aHHy60p57HH6iqyatm0caz9PH+92Fahx6uxgtOAjRQJ4+kEARjyYZNQQ5g472WCnBtqUCIK7wRibjc/SQEX8ZXOuNI8UeRc= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR84MB1684.NAMPRD84.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230001)(366004)(66556008)(66446008)(66476007)(38100700002)(38070700005)(76116006)(110136005)(966005)(66946007)(26005)(508600001)(83380400001)(55236004)(53546011)(6666004)(9686003)(64756008)(8676002)(186003)(122000001)(2906002)(7696005)(86362001)(82960400001)(5660300002)(6506007)(71200400001)(33656002)(316002)(55016003)(45080400002)(8936002)(52536014); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?T2ExVmhwZjJZT1kwdFFHRms0NHo5NFZYM21CbTU3QXhnbVFsQVh5em45UUVt?= =?utf-8?B?TFVFZS8rdk1kOVA1WU0welhuWmIzazdVQ3N4aUNMSlkxWlEwTU9jQ25xNmlt?= =?utf-8?B?RzBZV3hGbnl4SXhvWHFkZDJxc0JqT2pxNTc5cnZnc0pkbHM3d3BvQ0thVlVR?= =?utf-8?B?NG1HM1E4a1BwaWxVbDE0V0lKdTBVblRqdWJmWVA4ZVB6TEQ5QllNQVorNFJ6?= =?utf-8?B?L3NYb3dkbHVGc3BiM0NRR0Y3MjNPVzA3aHYzRzJ4TDdpVlh3SVFkTE53bVNT?= =?utf-8?B?V0paaWdETWN0bTdhU1d4blhQcVJDOXZSK3VhYW13a2pVcEFqVTE4ZzFobjF5?= =?utf-8?B?NTB1TmgxZHZ2empDZDhwTnp4OFBodU5GU3NPelpOMmc4NWlGS25vSmd6NGtp?= =?utf-8?B?VmRpNzdNSm1zUXJjUnBuRFdRaUJVbDVhZ1hXWDZQVW5QSzMyYjNWbVRZbXdn?= =?utf-8?B?SHN6dm42NkJLZjRRZE5NQkh5QkF4R3piMVRubnZ6d0diaEtucmxXTFlXSnha?= =?utf-8?B?THZySWZ6ZjNsN0pWaWRHaG9Dd2lvTnowVTl5OGlWZTNEck92NUt3L0xsVGs5?= =?utf-8?B?QTVNT2dkc2pPTHF3UHBuYTQwamdKOVpSNFNFM0ZlUDAwdTFoNmxRQmsyS3do?= =?utf-8?B?b0RLYlkyRDFVMWMyR2lrakE4dUs2NWdzNm1taGV1R2ZSMGFkeV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zVTFpMG00OHNjNENCQ1A4bHBSKzFlaWxF?= =?utf-8?B?TW9PbmV0V0ZVN3ZuUXNXTDVYUHFYeWx5Tlp2aTJrby9LRnN3ck9uMzNLV1FC?= =?utf-8?B?cVF0S1crMXlVY3lqUmpOOW5mRWRnckFhOGxXNmt0RFZ0dUZzMTQ4WEdWMURr?= =?utf-8?B?eCttUnczNFVOeDJHRGxlSzFjbmloMTg2ekVOaEtwaitSSDVLV05yWmJkMFNW?= =?utf-8?B?NjVGYWFLbU9YSlZTSW5CTW1NSmNhRWJFRU5EelRYSFRiSlgxTGtPbUtKY0lW?= =?utf-8?B?V2ZkODVUOFM4L1BGOU5GamdMZW0reWFhY1BaMlFBU1FyQUJGL1JZN3dTMTlB?= =?utf-8?B?c1lWbGx2MndRcHJLZjF4c0dSTUI5ZzVyejRaeWE2SXhoUWlQVlhoUW4xNFFz?= =?utf-8?B?WmVhQktQMm1iNEZneDd6bWdQcGJlcWVxSFFWQ0huQS91OFN5QjdhcGc0a1Zq?= =?utf-8?B?dmIycDA5cTR6LzhUMEtZQUxxdE84TEtySHFNbXlUTU1MMHM0SzFPYnpUMyti?= =?utf-8?B?dEhCZTVTQkFrWHp3MzljbGNWN2kzRkIrUFBCY1BtUlV4YXhidHdEZU85blJM?= =?utf-8?B?VS9BMnBIZVZMVXVxTkV3ck9xcm5kSWNMQjlNOEVmNFFPUHNhYkhEa2xUUWZZ?= =?utf-8?B?UVhFY3BmSUI5dk5jUHhvZ3FhbVAybXlmTitjVVF5cVV2WTZNV3VDMmtseTZh?= =?utf-8?B?QzNiU2tQbkVOdFlka0h0aVdGbE1uRlJtK2E2eWFOZk9pbFpRV1N4dz09?= X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR84MB1684.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 25dae127-3a20-450b-e6e6-08da2a0bc53b X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2022 18:12:06.7766 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wxMQ59Xp19zo+48irgI7DEgH4IDzKhRGBPqnLuBI9fbrQMmTQ8GII41wxpB7oF3XL1SJeJRFk0d0Vh1h1ULuiQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR84MB3105 X-OriginatorOrg: hpe.com X-Proofpoint-GUID: muiq-4OWZ6lPkNF553UR54u-VHfqAwLx X-Proofpoint-ORIG-GUID: muiq-4OWZ6lPkNF553UR54u-VHfqAwLx X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-29_08,2022-04-28_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=999 mlxscore=0 malwarescore=0 impostorscore=0 spamscore=0 phishscore=0 suspectscore=0 clxscore=1011 lowpriorityscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204290091 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" Thank you. This fixed it: - $(CC) $^ $(LD_LIBS) -o $@ + $(CC) $(LD_LIBS) -o $@ $^ Now I'm trying to understand why rpcbind fails at /usr/src/debug/rpcbind-1.2.5-1/src/rpcbind.c:287, even when run from an elevated command prompt: 268 if((p = getpwnam(id)) == NULL) { 269 syslog(LOG_ERR, "cannot get uid of '%s': %m", id); 270 exit(1); 271 } ... 285 if (setuid(p->pw_uid) == -1) { 286 syslog(LOG_ERR, "setuid to '%s' (%d) failed: %m", id, p->pw_uid); 287 exit(1); 288 } I do find this: Under "Switching the user context", https://cygwin.com/cygwin-ug-net/ntsec.html says > Windows does not support the concept of these calls in a simple fashion. > Switching the user context in Windows is generally a tricky process with lots > of "behind the scenes" magic involved. > > \[H\]ow can this \[information\] be used to implement set(e)uid? Well, it > requires modification of the calling application. Based on skim of the this source, that implies that this rpcbind would never work which doesn't make sense. > -----Original Message----- > From: Jon Turney > Sent: 29 April 2022 05:29 > To: Voris, Ben ; The Cygwin Mailing List > Subject: Re: Link of ONC RPC client fails with: undefined references > > On 29/04/2022 04:06, Voris, Ben wrote: > > I have simple ONC RPC client and server that build on Ubuntu with rpcgen > "(Ubuntu GLIBC 2.31-0ubuntu9.7) 2.31" (under "5.10.102.1-microsoft-standard- > WSL2") but fails to build on Cygwin ("3.3.4(0.341/5/3) 2022-01-31 19:35 x86_64 > Cygwin") with rpcgen "(rpcsvc-proto) 1.4". > > > > Naively, it appears that Ubuntu has a much newer version (2.31) than Cygwin > (1.4). Is this the problem? > > > > gzip'ed cygcheck output and the test program and makefile are attached. > > > > Output of "make all" > [...] > > gcc -ltirpc -o objs/date_client objs/date_client.o objs/date_clnt.o > > /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: > objs/date_client.o: in function `date_prog_1': > > /home/BVoris/git/ONC-rpc-test/src/date_client.c:15: undefined reference to > `clnt_create' > > /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: > /home/BVoris/git/ONC-rpc-test/src/date_client.c:17: undefined reference to > `clnt_pcreateerror' > > /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: > /home/BVoris/git/ONC-rpc-test/src/date_client.c:33: undefined reference to > `clnt_perror' > > /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: > objs/date_clnt.o:date_clnt.c:(.rdata$.refptr.xdr_wrapstring[.refptr.xdr_wrapstr > ing]+0x0): undefined reference to `xdr_wrapstring' > > I suspect the problem here is due to the position of '-ltirpc' in the > compiler command line. Moving it to after the .o files might help. > See > INVALID URI REMOVED > _;Iw!!NpxR!mh4II02xebe- > AOaVrVnhqLMZ184wpNJtizkEmBv2uzw49eZ11dNZZClae3F00QGiI4IjKo7KYcBeP0qGGZVCzgU$ > for details why. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple