Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46248 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80093 invoked from network); 30 Nov 2009 13:05:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2009 13:05:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=samuel.roze@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=samuel.roze@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.213 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: samuel.roze@gmail.com X-Host-Fingerprint: 209.85.218.213 mail-bw0-f213.google.com Received: from [209.85.218.213] ([209.85.218.213:57307] helo=mail-bw0-f213.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/96-43487-923C31B4 for ; Mon, 30 Nov 2009 08:05:46 -0500 Received: by bwz5 with SMTP id 5so2548015bwz.23 for ; Mon, 30 Nov 2009 05:05:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=U8GFT/UZ2JfpKGvuMnv+8uDSlcmpzhoxjIKsDlJlGO0=; b=N3+iU531EYAknIMqblf437wui2vV8c3iI4L6byB8UfYmQrofbZ7lXIvDypycZIRkoa inD7BLF9R/e3lMLWem4JlXpWLWaw5HXdwva1hZljc/5nIAyMmtcSDzgeZ3RJ9Vf+qxeP j/nv8AlizglLrwOEYwiS8xSrVK3BI2a4Lgwj4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=kJ2CXCDWHMEDM5jH/KINWxR5K0qa1sNWw0LZLDmZ7K8xV3qKQQgd4hTcZ3GKyNsBQl tJa+DG9NZQXskD/h277zwNGefY+TFxHeJPdZOsord4l7RJz3oJx/rFe+kKEpYDFpYkZX z4fpUF8Pe4ieuEZVxlH4DXz5S5T9+eXbYVok8= MIME-Version: 1.0 Received: by 10.204.8.151 with SMTP id h23mr4428545bkh.194.1259586341604; Mon, 30 Nov 2009 05:05:41 -0800 (PST) In-Reply-To: <4B138764.7080101@zend.com> References: <1259344432.2889.8.camel@samuel-laptop> <18e9608a0911291537l115431f6ta3a9cc69dd99eec8@mail.gmail.com> <4B138764.7080101@zend.com> Date: Mon, 30 Nov 2009 14:05:41 +0100 Message-ID: <18e9608a0911300505i26e895aalfc87adbcb77463e1@mail.gmail.com> To: Jess Portnoy Cc: PHP Developers Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: Using a stream function into another module From: samuel.roze@gmail.com (Samuel ROZE) Thanks for you reply, These errors are in the ext/sockets/sockets.c file because I tried to add a function about sockets in this file which is using the "stream_array_to_fd_set", and others functions... If I include the ext/standard/streamsfuncs.c file, where functions are created, I've some errors about the duplication of theses stream functions. I think the problem is that the ext/standard/streamsfuncs.c is loaded after the ext/sockets/socket.c and functions are not initialized yet when the socket.c is builded... BUT, it's a wrong idea because when I move my new function into the streamfuncs.c file, there's the same problem ! Regards, Samuel ROZE. 2009/11/30 Jess Portnoy : > Hi, > > stream_array_to_fd_set() is defined in ext/standard/streamsfuncs.c, not t= he > header. > But I see the actual complaint is on ext/sockets/sockets.c:877: undefined > reference to `stream_array_to_fd_set'... > What exactly did you do? > > May the source be with you, > Best regards, > Jess Portnoy > > > > Samuel ROZE wrote: >> >> Nobody can help me ? Is there someone who can just give me some astuces = ? >> >> Regards, >> Samuel ROZE. >> >> 2009/11/27 Samuel ROZE : >> >>> >>> Hello, >>> >>> I want to use two stream functions (stream_array_to_fd_set and >>> stream_array_from_fd_set) in a module (/etc/modulename/modulename.c). T= o >>> use them, i included the streamsfuncs.h file, with: >>> >>> #include "ext/standard/streamsfuncs.h" >>> >>> The problem is that when I want to compile, i've these errors: >>> >>> >>> /home/samuel/D=C3=A9veloppement/workspaces/C-Cpp/PHP_5_3/ext/sockets/so= ckets.c:877: >>> undefined reference to `stream_array_to_fd_set' >>> >>> /home/samuel/D=C3=A9veloppement/workspaces/C-Cpp/PHP_5_3/ext/sockets/so= ckets.c:884: >>> undefined reference to `stream_array_to_fd_set' >>> >>> /home/samuel/D=C3=A9veloppement/workspaces/C-Cpp/PHP_5_3/ext/sockets/so= ckets.c:891: >>> undefined reference to `stream_array_to_fd_set' >>> >>> /home/samuel/D=C3=A9veloppement/workspaces/C-Cpp/PHP_5_3/ext/sockets/so= ckets.c:936: >>> undefined reference to `stream_array_emulate_read_fd_set' >>> >>> /home/samuel/D=C3=A9veloppement/workspaces/C-Cpp/PHP_5_3/ext/sockets/so= ckets.c:957: >>> undefined reference to `stream_array_from_fd_set' >>> >>> /home/samuel/D=C3=A9veloppement/workspaces/C-Cpp/PHP_5_3/ext/sockets/so= ckets.c:958: >>> undefined reference to `stream_array_from_fd_set' >>> >>> /home/samuel/D=C3=A9veloppement/workspaces/C-Cpp/PHP_5_3/ext/sockets/so= ckets.c:959: >>> undefined reference to `stream_array_from_fd_set' >>> >>> How can I do to use them into my module ? >>> >>> Regards, >>> Samuel ROZE. >>> >>> >>> >> >> >