[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Development
. . -> [Subject]  PCRE-related compiler errors
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

PCRE-related compiler errors

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Pages: 1  2 

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #15 on Sun 19 May 2013 08:45 AM (UTC)
Message
All I can suggest is that you do a Build -> Clean (to get rid of extraneous files) and then zip up your entire source directory and put it somewhere I can download it and I'll try to compile it, in case there is a file that should be in source control but isn't.

If you don't have anywhere suitable send me a forum message and I'll give you my email address (it's pretty obvious).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Silverwind   (13 posts)  [Biography] bio
Date Reply #16 on Fri 24 May 2013 11:11 PM (UTC)
Message
I feel a little stupid but I neglected to notice that we got to a second page here. Sorry for the long wait.

Here's the source I have, all packed up: http://depositfiles.com/files/houayytq0
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #17 on Tue 28 May 2013 10:56 PM (UTC)
Message
I can reproduce your problem. To fix:

In pcre.h at lines 309 to 313 change:


struct real_pcre;                 /* declaration; the definition is private  */
typedef struct real_pcre pcre;

struct real_pcre16;               /* declaration; the definition is private  */
typedef struct real_pcre16 pcre16;


to:


struct real_pcre8_or_16;                 /* declaration; the definition is private  */
typedef struct real_pcre8_or_16 pcre;

struct real_pcre8_or_16;               /* declaration; the definition is private  */
typedef struct real_pcre8_or_16 pcre16;


Then it compiles OK.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #18 on Wed 29 May 2013 06:04 AM (UTC)

Amended on Wed 29 May 2013 06:05 AM (UTC) by Nick Gammon

Message
I'm trying to work out why it took so long to notice that. I see that pcre.h is not under source control (git) so I must have used the one from the PCRE distribution, got the error, and then made the change I mentioned above. But not being under source control, it wasn't documented. Checking my directory against the release shows the same change (and only that):


*** C:\Documents and Settings\Owner\Desktop\pcre-8.32\pcre.h.generic	Fri Nov 30 11:50:00 2012
--- pcre.h	Wed Feb  6 09:08:23 2013
***************
*** 306,316 ****
  
  /* Types */
  
! struct real_pcre;                 /* declaration; the definition is private  */
! typedef struct real_pcre pcre;
  
! struct real_pcre16;               /* declaration; the definition is private  */
! typedef struct real_pcre16 pcre16;
  
  struct real_pcre32;               /* declaration; the definition is private  */
  typedef struct real_pcre32 pcre32;
--- 306,316 ----
  
  /* Types */
  
! struct real_pcre8_or_16;                 /* declaration; the definition is private  */
! typedef struct real_pcre8_or_16 pcre;
  
! struct real_pcre8_or_16;               /* declaration; the definition is private  */
! typedef struct real_pcre8_or_16 pcre16;
  
  struct real_pcre32;               /* declaration; the definition is private  */
  typedef struct real_pcre32 pcre32;

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #19 on Wed 29 May 2013 06:19 AM (UTC)
Message
Documented now:

https://github.com/nickgammon/mushclient/commit/f12ef5b21df

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Silverwind   (13 posts)  [Biography] bio
Date Reply #20 on Wed 29 May 2013 10:11 PM (UTC)
Message
Awesome, got it now. Thanks a lot for the support.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,738 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]