php5-readline-5.2.10 patch compile error

2009-06-25 Thread Andrea 'simplex' Zulato
Hi, i've upgraded php to 5.2.10 with portupgrade, php5-readline-5.2.10
won't compile.
Here's the error:
---  Upgrading 'php5-readline-5.2.9' to 'php5-readline-5.2.10'
(devel/php5-readline)
OK? [yes]
---  Build of devel/php5-readline started at: Thu, 25 Jun 2009 16:09:16
+0200
---  Building '/usr/ports/devel/php5-readline'
===  Cleaning for php5-readline-5.2.10
===  Extracting for php5-readline-5.2.10
= MD5 Checksum OK for php-5.2.10.tar.bz2.
= SHA256 Checksum OK for php-5.2.10.tar.bz2.
===  Patching for php5-readline-5.2.10
===  Applying FreeBSD patches for php5-readline-5.2.10
1 out of 3 hunks failed--saving rejects to config.m4.rej
= Patch patch-config.m4 failed to apply cleanly.
*** Error code 1

Stop in /usr/ports/devel/php5-readline.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade20090625-75944-1w6ribe-0 env UPGRADE_TOOL=portupgrade
UPGRADE_PORT=php5-readline-5.2.9 UPGRADE_PORT_VER=5.2.9 make
** Fix the problem and try again.
---  Build of devel/php5-readline ended at: Thu, 25 Jun 2009 16:09:21
+0200 (consumed 00:00:05)
---  Upgrade of devel/php5-readline ended at: Thu, 25 Jun 2009 16:09:21
+0200 (consumed 00:00:31)

And the config.m4.rej file:

***
*** 50,55 
  -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
])
 
PHP_CHECK_LIBRARY(history, add_history,
[
  PHP_ADD_LIBRARY_WITH_PATH(history, $READLINE_DIR/$PHP_LIBDIR,
READLINE_SHARED_LIBADD)
--- 48,60 
  -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
])
 
+   PHP_CHECK_LIBRARY(readline, rl_completion_matches,
+   [
+ AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ])
+   ],[],[
+ -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
+   ])
+
PHP_CHECK_LIBRARY(history, add_history,
[
  PHP_ADD_LIBRARY_WITH_PATH(history, $READLINE_DIR/$PHP_LIBDIR,
READLINE_SHARED_LIBADD)


I'm on a FreeBSD 7.2-RELEASE-p1 #0.
Any clue? Thanks
Andrea 'simplex' Zulato

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Unrealircd problems with last patch

2009-06-18 Thread Andrea 'simplex' Zulato
It worked for me.
Now irc server is up again, thanks!
Andrea

Peter Pentchev wrote:
 On Thu, Jun 18, 2009 at 05:07:08PM +0300, Peter Pentchev wrote:
   
 On Wed, Jun 17, 2009 at 11:52:02AM +0300, Peter Pentchev wrote:
 
 On Wed, Jun 17, 2009 at 08:24:38AM +0200, Andrea 'simplex' Zulato wrote:
   
 Hi, i've upgraded c-ares and Unreal from ports but Unreal won't work.
 It start without a problem but when someone try to connect to the server
 it crash with a core dump error:
 Jun 16 09:03:33 hazard kernel: pid 57652 (ircd), uid 0: exited on signal
 11 (core dumped)
 I've tried to recompile unreal and c-ares whitout any result (make
 install finish without problems on both ports).
 If there's something that i could try, please tell me...
 I'm on a FreeBSD 7.2-RELEASE-p1 #0.
 
 Hi,

 I've CC'd Gerrit Beine (the actual maintainer of the irc/unreal port :)
 and Ilya Andreev, who reported the same problem to me yesterday.

 Some time ago, I sent my proposed c-ares update for testing to all
 the maintainers of ports that depend on c-ares directly.  My patches
 made the ports compile, but I didn't have the proper setup to actually
 test them working, since I'm not quite familiar with the programs
 themselves.  Thus, I asked the maintainers for help with testing, and
 after nobody replied for a week or so, I went ahead and commited the update.

 Now Ilya Andreev and you have both hit a problem with UnrealIRCd,
 and Ilya seems to have found a solution.  Could you try putting
 the attached patch-res.c into the irc/unreal/files/ directory and
 rebuilding UnrealIRCd?  If this patch helps, I could commit it if
 Gerrit Beine does not mind.
   
 Actually, here's another patch from Ilya who wrote to me privately
 to say that the previous one didn't quite work.
 

 And once again, with the patch inline this time, mainly for the benefit
 of the ports@ mailing list and other poor souls who might stumble upon
 this problem.

 G'luck,
 Peter

 --- src/res.c 2006-09-19 15:45:18.0 +0300
 +++ src/res.c 2009-06-17 17:50:18.0 +0300
 @@ -48,10 +48,15 @@
  
  #include res.h
  
 +/* Prevent crashes due to invalid prototype/ABI */
 +#if ARES_VERSION  0x010600
 + #error You have an old c-ares version on your system and/or Unreals c-ares 
 failed to compile!
 +#endif
 +
  /* Forward declerations */
 -void unrealdns_cb_iptoname(void *arg, int status, struct hostent *he);
 -void unrealdns_cb_nametoip_verify(void *arg, int status, struct hostent *he);
 -void unrealdns_cb_nametoip_link(void *arg, int status, struct hostent *he);
 +void unrealdns_cb_iptoname(void *arg, int status, int timeouts, struct 
 hostent *he);
 +void unrealdns_cb_nametoip_verify(void *arg, int status, int timeouts, 
 struct hostent *he);
 +void unrealdns_cb_nametoip_link(void *arg, int status, int timeouts, struct 
 hostent *he);
  void unrealdns_delasyncconnects(void);
  static unsigned int unrealdns_haship(void *binaryip, int length);
  static void unrealdns_addtocache(char *name, void *binaryip, int length);
 @@ -240,7 +245,7 @@
  #endif
  }
  
 -void unrealdns_cb_iptoname(void *arg, int status, struct hostent *he)
 +void unrealdns_cb_iptoname(void *arg, int status, int timeouts, struct 
 hostent *he)
  {
  DNSReq *r = (DNSReq *)arg;
  DNSReq *newr;
 @@ -290,7 +295,7 @@
  }
  
  
 -void unrealdns_cb_nametoip_verify(void *arg, int status, struct hostent *he)
 +void unrealdns_cb_nametoip_verify(void *arg, int status, int timeouts, 
 struct hostent *he)
  {
  DNSReq *r = (DNSReq *)arg;
  aClient *acptr = r-cptr;
 @@ -363,7 +368,7 @@
   unrealdns_freeandremovereq(r);
  }
  
 -void unrealdns_cb_nametoip_link(void *arg, int status, struct hostent *he)
 +void unrealdns_cb_nametoip_link(void *arg, int status, int timeouts, struct 
 hostent *he)
  {
  DNSReq *r = (DNSReq *)arg;
  int n;
 @@ -390,9 +395,11 @@
   /* fatal error while resolving */
   sendto_realops(Unable to resolve hostname '%s', when trying to 
 connect to server %s.,
   r-name, r-linkblock-servername);
 + r-linkblock-refcount--;
   unrealdns_freeandremovereq(r);
   return;
   }
 + r-linkblock-refcount--;
  
  #ifdef INET6
   if (((he-h_length != 4)  (he-h_length != 16)) || 
 !he-h_addr_list[0])
 @@ -715,21 +722,34 @@
   } else
   if (*param == 'i') /* INFORMATION */
   {
 - struct ares_config_info inf;
 + struct ares_options inf;
   int i;
 + int optmask;
   
 - ares_get_config(inf, resolver_channel);
 + ares_save_options(resolver_channel, inf, optmask);
  
   sendtxtnumeric(sptr, ** DNS Configuration Information 
 **);
   sendtxtnumeric(sptr,  c-ares version: %s,ares_version(NULL));
 - sendtxtnumeric(sptr, timeout: %d, inf.timeout);
 - sendtxtnumeric(sptr,   tries: %d, inf.tries);
 - sendtxtnumeric

Unrealircd problems with last patch

2009-06-17 Thread Andrea 'simplex' Zulato
Hi, i've upgraded c-ares and Unreal from ports but Unreal won't work.
It start without a problem but when someone try to connect to the server
it crash with a core dump error:
Jun 16 09:03:33 hazard kernel: pid 57652 (ircd), uid 0: exited on signal
11 (core dumped)
I've tried to recompile unreal and c-ares whitout any result (make
install finish without problems on both ports).
If there's something that i could try, please tell me...
I'm on a FreeBSD 7.2-RELEASE-p1 #0.
Thanks

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


eggdrop port fail to compile on 7.2-release

2009-05-06 Thread Andrea 'simplex' Zulato
Hi, i've just upgraded to 7.2-release and eggdrop port wont compile..
Seems the problem are with Tcl libraries.



checking for Tcl library... using /lib
checking for Tcl header... using /
checking whether the Tcl system has changed... yes
checking for Tcl version... 
checking for Tcl patch level... 
configure: error:

  Your Tcl version is much too old for Eggdrop to use. You should
  download and compile a more recent version. The most reliable
  current version is 8.5.X and can be downloaded from
  ftp://tcl.activestate.com/pub/tcl/tcl8_5/.

  See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  for more information.

===  Script configure failed unexpectedly.
Please report the problem to be...@freebsd.org [maintainer] and attach the
/usr/ports/irc/eggdrop/work/eggdrop1.6.19/config.log including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/irc/eggdrop.
*** Error code 1

Stop in /usr/ports/irc/eggdrop.





I've Tcl installed from ports,

tcl-8.5.7   Tool Command Language
tcl-modules-8.5.7   Tcl common modules

On 7.1 it was compiled without errors.
Thanks
Andrea Zulato

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org