pike issueshttps://git.lysator.liu.se/pikelang/pike/-/issues2009-04-16T14:11:39Zhttps://git.lysator.liu.se/pikelang/pike/-/issues/958found a file that causes segmentation fault in Image.load2009-04-16T14:11:39ZPeter Bortasfound a file that causes segmentation fault in Image.loadImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=958
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> Image.load("breaks_tifflib.jpg");
zsh: segmentation fault pike
```Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=958
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> Image.load("breaks_tifflib.jpg");
zsh: segmentation fault pike
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/955"checking if the JVM really works..." hangs2009-04-16T14:11:39ZPeter Bortas"checking if the JVM really works..." hangsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=955
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
The "checking if the JVM really works..." configure test hangs and never
finishes. ^C doesn't work - ^Z ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=955
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
The "checking if the JVM really works..." configure test hangs and never
finishes. ^C doesn't work - ^Z does.
configuring in Java
running /bin/sh
/export/scsi/home/home/mirar/pike/src/modules/Java/configure
--prefix=/home/mirar/pike-bin --with-double-precision --without-debug
--without-perl --cache-file=../.././config.cache
--srcdir=/export/scsi/home/home/mirar/pike/src/modules/Java
loading cache ../.././config.cache
checking for gcc... (cached)
/export/scsi/home/home/mirar/pike/elfwood/smartlink gcc
checking whether the C compiler
(/export/scsi/home/home/mirar/pike/elfwood/smartlink gcc -R/usr/local/lib
-L/usr/local/lib -R/usr/X11R6/lib -L/usr/X11R6/lib) works... (cached) yes
checking whether we are using GNU C... (cached) yes
checking whether /export/scsi/home/home/mirar/pike/elfwood/smartlink gcc
accepts -g... (cached) yes
checking if we are using TCC... (cached) no
checking for the Pike module base directory... found
checking which operating system we're using... linux
checking which architecture we're using...
/export/scsi/home/home/mirar/pike/src/modules/Java/configure:
/usr/bin/uname: No such file or directory
i386
checking what kind of threads to use... native_threads
checking for JAVA_HOME... /usr/local/jdk1.2.2/jre
checking for Java libraries...
/usr/local/jdk1.2.2/jre/lib/i386/native_threads
/usr/local/jdk1.2.2/jre/lib/i386/classic /usr/local/jdk1.2.2/jre/lib/i386
Adding /usr/local/jdk1.2.2/jre/lib/i386/native_threads
/usr/local/jdk1.2.2/jre/lib/i386/classic /usr/local/jdk1.2.2/jre/lib/i386
to the library search path.
checking for the Java include directory...
/usr/local/jdk1.2.2/jre/../include
Adding /usr/local/jdk1.2.2/jre/../include to the include search path.
Adding /usr/local/jdk1.2.2/jre/../include/linux to the include search path.
checking for JavaVM (MacOS X)... no
checking how to run the C preprocessor... (cached) gcc -E
checking for jni.h... yes
checking for winbase.h... (cached) no
checking for setjmp.h... (cached) yes
checking for sysOpen in -lhpi... yes
checking for JNI_CreateJavaVM in -ljvm... yes
checking for Java_java_lang_Class_isInstance in -ljava... yes
checking for Java_java_util_zip_Inflater_inflateBytes in -lzip... yes
checking for thr_create in -lthread... no
checking if the JVM really works...
[1]+ Stopped ../src/configure
--prefix=/home/mirar/pike-bin --with-double-precision --without-debug
```
[mirar@elfwood Java]$ grep '$Id' *
Makefile.in:# $Id: Makefile.in,v 1.4 1999/11/18 07:59:37 hubbe Exp $
acconfig.h: * $Id: acconfig.h,v 1.2 2000/10/20 00:14:10 marcus Exp $
config.h.in: * $Id: acconfig.h,v 1.2 2000/10/20 00:14:10 marcus Exp $
configure:# $Id: aclocal.m4,v 1.22 2000/08/21 13:04:13 grubba Exp $
jvm.c: * $Id: jvm.c,v 1.31 2000/12/05 21:08:28 per Exp $
jvm.c:RCSID("$Id: jvm.c,v 1.31 2000/12/05 21:08:28 per Exp $");
testsuite.in:// $Id: testsuite.in,v 1.3 2000/07/08 01:36:04 marcus Exp $
[mirar@elfwood Java]$ head /usr/local/jdk1.2.2/CHANGES
CHANGES
```
Java(TM) 2 SDK, Standard Edition
Java(TM) 2 Runtime Environment, Standard Edition,
v 1.2.2 for Linux
1/21/00
This file summarizes differences in the 1.2.2 Linux port
of the Java 2 SDK as compared with the original Java 2 SDK
[mirar@elfwood Java]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
[mirar@elfwood Java]$Pike 7.2Marcus ComstedtMarcus Comstedthttps://git.lysator.liu.se/pikelang/pike/-/issues/257GTK gives problems.2009-04-16T14:11:39ZPeter BortasGTK gives problems.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=257
Reported by Fred van Dijk <f.vandijk@scintilla.utwente.nl>
GTK gives some major problems in 7.0 lately. 7.0.55 works fine, 7.0.167 and
later doesn't.
System is RH 6....Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=257
Reported by Fred van Dijk <f.vandijk@scintilla.utwente.nl>
GTK gives some major problems in 7.0 lately. 7.0.55 works fine, 7.0.167 and
later doesn't.
System is RH 6.2 x86 with helix-gnome installed. Can anybody confirm this?
the log below shows up in the debug-logs when Roxen 2.1.105 starts. I
suspect helix-gnome though, I'll try to compile it on a 'clean' RH6.2.
```
---------------------------------------------------
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:145:Index
'Menu' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:153:Index
'Menu_bar' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:153:Index
'Menu_bar' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:154:Index
'AccelGroup' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:154:Index
'AccelGroup' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:157:Index
'RadioMenuItem' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:168:Index
'Menu_item' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:168:Index
'Menu_item' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:169:Index
'Menu' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:179:Index
'Item' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:186:Index
'MenuItem' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod.MenuFactory.pmod:-:
Warning: Compilation failed:
Compilation failed.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Alert.pike:1:Index
'Dialog' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Alert.pike:1:Illegal
program pointer.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Alert.pike:10:Index
'Button' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Alert.pike:18:Index
'Label' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Alert.pike:20:Index
'JUSTIFY_LEFT' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Alert.pike:24:Index
'Button' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod.Alert.pike:-:
Warning: Compilation failed:
Compilation failed.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pDrawingArea.pike:1:Index
'DrawingArea' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pDrawingArea.pike:1:Illegal
program pointer.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pDrawingArea.pike:62:Must
return a value for a non-void function.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pDrawingArea.pike:68:Index
'flush' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod.pDrawingArea.pike:-:
Warning: Compilation failed:
Compilation failed.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/SClist.pike:1:Index
'ScrolledWindow' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/SClist.pike:1:Illegal
program pointer.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/SClist.pike:3:Index
'Clist' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/SClist.pike:7:Index
'Clist' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod.SClist.pike:-:
Warning: Compilation failed:
Compilation failed.
usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Util.pmod:28:Index
'Bitmap' not present in module 'GDK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Util.pmod:29:Index
'Pixmap' not present in module 'GDK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Util.pmod:39:Index
'Bitmap' not present in module 'GDK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Util.pmod:40:Index
'Pixmap' not present in module 'GDK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Util.pmod:105:Must
return a value for a non-void function.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Util.pmod:116:Class
definition failed.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Util.pmod:151:Class
definition failed.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod.Util.pmod:-:
Warning: Compilation failed:
Compilation failed.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:1:Index
'Ctree' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:1:Illegal
program pointer.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:8:Index
'CTreeNode' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:15:Index
'CTreeNode' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:22:Undefined
identifier ctree::collapse
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:27:Undefined
identifier ctree::collapse_recursive
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:32:Undefined
identifier ctree::collapse_to_depth
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:37:Undefined
identifier ctree::expand
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:42:Undefined
identifier ctree::expand_recursive
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:47:Undefined
identifier ctree::expand_to_depth
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:54:Undefined
identifier ctree::insert_node
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:314:Class
definition failed.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:320:Undefined
identifier ctree::node_nth
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod.pCtree.pike:-:
Warning: Compilation failed:
Compilation failed.
```Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/865Buffer malfunction in Stdio.FILE2009-04-16T14:11:39ZPeter BortasBuffer malfunction in Stdio.FILEImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=865
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
The following program trigs a bug in Stdio.FILE
```
int verify(string filename, int blocksi...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=865
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
The following program trigs a bug in Stdio.FILE
```
int verify(string filename, int blocksize, string data)
{
Stdio.File file = Stdio.FILE(filename, "r");
string block, verify = "";
while((block = file->read(blocksize)) != "")
verify += block;
return data == verify;
}
void main()
{
string data = (array(string))enumerate(10)*"\n"+"\n";
Stdio.File("data", "wct")->write(data);
for(int blocksize = 1; blocksize < 20; blocksize++)
write("Verify blocksize %d: %s\n", blocksize,
verify("data", blocksize, data) ? "ok" : "FAIL");
}
```
with the following output
Verify blocksize 1: FAIL
Verify blocksize 2: FAIL
Verify blocksize 3: ok
Verify blocksize 4: FAIL
Verify blocksize 5: FAIL
Verify blocksize 6: ok
Verify blocksize 7: ok
Verify blocksize 8: ok
Verify blocksize 9: ok
Verify blocksize 10: FAIL
Verify blocksize 11: ok
Verify blocksize 12: ok
Verify blocksize 13: ok
Verify blocksize 14: ok
Verify blocksize 15: ok
Verify blocksize 16: ok
Verify blocksize 17: ok
Verify blocksize 18: ok
Verify blocksize 19: okPike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/678sscanf problem2009-04-16T14:11:39ZPeter Bortassscanf problemImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=678
Reported by Thomas Bopp, Uni-GH Paderborn <astra@upb.de>
I cannot reproduce this bug in a simple case. sscanf is not
The code is:
```
private static array(object)
ge...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=678
Reported by Thomas Bopp, Uni-GH Paderborn <astra@upb.de>
I cannot reproduce this bug in a simple case. sscanf is not
The code is:
```
private static array(object)
get_sanction_new(string str, mapping vars)
{
array(object) sanctions = ({ });
string ustr;
object obj;
int oid;
if ( stringp(ustr=copy_value(vars["sanction_new_"+str])) ) {
int res;
LOG("Initial String is: " + ustr);
while ( (res = sscanf(ustr, "user_%d%s", oid, ustr)) > 0 ) {
LOG("Found " + oid + " new: " + ustr + " Result:"+res);
obj = find_object(oid);
if ( objectp(obj) )
sanctions += ({ obj });
}
LOG("Last Result was: " + res + " on " + ustr + " str="+str);
}
return sanctions;
}
and the output:
Initial String is: user_235user_239user_240
Found 235 new: user_239user_240 Result:2
Last Result was: 0 on user_239user_240 str=user
```
When I write a simple pike program with only a main function this
works fine. I also played around with a mapping, etc. The copy_value
was also just to check what happens. Also tried to have another
string in the sscanf, like sscanf(ustr...,s) and ustr = s; in the
body of the loop.
---Thomas
PS: Roxen seems to concat values of a variable if the same variable is
placed more often in the call (like test?type=1&type=2 id->vars["type"]
=="12"). Wouldnt it be better to have type = { "1","2" } ?
This happens when I have a <select multiple>Pike 7.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/642HTTPLoop/requestobject.c:861: too few arguments to function `__sendfile64'2009-04-16T14:11:39ZPeter BortasHTTPLoop/requestobject.c:861: too few arguments to function `__sendfile64'Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=642
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Compile error on HPUX-11 (Hopper):
```
echo /home/distmaker/Distmaker/2.1/build/pike.hpux11/bu...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=642
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Compile error on HPUX-11 (Hopper):
```
echo /home/distmaker/Distmaker/2.1/build/pike.hpux11/build/smartlink gcc
-I.
-I/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src/modules/HTTPLoop
-I/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src/modules/HTTPLoop/../..
-I../.. -I. -I/usr/local/include
-I/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src
-I/home/distmaker/Distmaker/2.1/build/pike.hpux11/build -DDYNAMIC_MODULE
-I/usr/local/include
-I/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src
-I/home/distmaker/Distmaker/2.1/build/pike.hpux11/build -W -Wall
-Wpointer-arith -Wno-unused -fPIC -c
/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src/modules/HTTPLoop/requestobject.c
-o requestobject.o
/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src/modules/HTTPLoop/requestobject.c:
In function `actually_send':
/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src/modules/HTTPLoop/requestobject.c:861:
warning: passing arg 3 of `__sendfile64' makes integer from pointer without
a cast
/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src/modules/HTTPLoop/requestobject.c:861:
too few arguments to function `__sendfile64'
make[2]: *** [requestobject.o] Error 1
```Pike 7.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/29Full gnome support for pigtk2009-04-16T14:11:39ZPeter BortasFull gnome support for pigtkImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=29
Reported by @grubba
```
From: Alan Knowles <alan_k@hklc.com>
To: pike@idonex.se
Date: Wed, 16 Aug 2000 21:32:53 +0800
Subject: build_pgtk.pike diff
```
attached is a ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=29
Reported by @grubba
```
From: Alan Knowles <alan_k@hklc.com>
To: pike@idonex.se
Date: Wed, 16 Aug 2000 21:32:53 +0800
Subject: build_pgtk.pike diff
```
attached is a 'cvs diff' output for build_pgtk.pike that should enable all
gnome functions to work.
diff'ed against Pike/7.1
regards
alan
--
Technical Director
Linux Center (HK) Ltd.
www.hklc.com
```
Index: build_pgtk.pike
===================================================================
RCS file: /cvs/Pike/7.1/src/post_modules/GTK/build_pgtk.pike,v
retrieving revision 1.32
diff -r1.32 build_pgtk.pike
1288c1288,1296
< type_switch += "#ifdef GTK_TYPE_"+flop+"\n"
---
> if (search(upper_case(w), "GNOME") > -1) {
> // comes in as GNOME_XXX_XXX
> // should be GNOME_TYPE_XXX_XXX
> string flop = replace(upper_case(w),"GNOME_", "GNOME_TYPE_");
> type_switch += "#ifdef "+flop+"\n"
> " if(PGTK_CHECK_TYPE(widget, "+flop+")) "
> "return pgtk_"+w+"_program;\n#endif\n";
> } else {
> type_switch += "#ifdef GTK_TYPE_"+flop+"\n"
1290a1299
> }
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/953bad implemented list_fields() for postgress and msql2009-04-16T14:11:39ZPeter Bortasbad implemented list_fields() for postgress and msqlImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=953
Reported by Jordi Murgó, The Apostols Unix Cult <jordi@lleida.com>
while in Sql.pmod/sql.pike you declare list_fields as follows:
```
array(mapping(string:mixed)) li...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=953
Reported by Jordi Murgó, The Apostols Unix Cult <jordi@lleida.com>
while in Sql.pmod/sql.pike you declare list_fields as follows:
```
array(mapping(string:mixed)) list_fields(string table, string|void wild)
{
array(mapping(string:mixed))|object res;
if (functionp(master_sql->list_fields)) {
if (objectp(res = master_sql->list_fields(table))) {
res = res_obj_to_array(res);
}
....
```
on postgres.pike and msql.pike the same funcion are declared as:
mapping(string:array(mixed)) list_fields (string table, void|string wild)
I think it should be rewriten and declared:
array(mapping(string:mixed)) list_fields (string table)
(wild is not really needed)Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/946stack_size macro conflicts with system defined macro on MacOSX.2009-04-16T14:11:39ZPeter Bortasstack_size macro conflicts with system defined macro on MacOSX.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=946
Reported by @grubba
```
Compiling /home/grubba/src/Pike7.1/src/interpret.c
/System/Library/Frameworks/System.framework/Headers/mach/shared_memory_server.h:45:
warning...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=946
Reported by @grubba
```
Compiling /home/grubba/src/Pike7.1/src/interpret.c
/System/Library/Frameworks/System.framework/Headers/mach/shared_memory_server.h:45:
warning: could not use precompiled header
'/System/Library/Frameworks/System.framework/Headers/mach/mach.p', because:
/System/Library/Frameworks/System.framework/Headers/mach/shared_memory_server.h:45:
warning: macro 'stack_size' defined by
/home/grubba/src/Pike7.1/src/interpret.h conflicts with precomp
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/944Broken sh-code in GTK module.2009-04-16T14:11:39ZPeter BortasBroken sh-code in GTK module.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=944
Reported by @grubba
```
Making GTK
make[4]: Entering directory
`/tmp/autobuild/pike7.1-20001219170839.tar/build/linux-2.4.0-0.8-ia64/post_modules/GTK'
/tmp/autobuild/...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=944
Reported by @grubba
```
Making GTK
make[4]: Entering directory
`/tmp/autobuild/pike7.1-20001219170839.tar/build/linux-2.4.0-0.8-ia64/post_modules/GTK'
/tmp/autobuild/pike7.1-20001219170839.tar/build/linux-2.4.0-0.8-ia64/pike
-DNOT_INSTALLED
-m/tmp/autobuild/pike7.1-20001219170839.tar/build/linux-2.4.0-0.8-ia64/master.pike
/tmp/autobuild/pike7.1-20001219170839.tar/src/post_modules/GTK/new_build_pgtk.pike
--source='/tmp/autobuild/pike7.1-20001219170839.tar/src/post_modules/GTK/source/'\
/tmp/autobuild/pike7.1-20001219170839.tar/src/post_modules/GTK/output/few.pike
Parsing input files... 7.4s
Checking inherits ...
Outputting result files...
Creating GTK/pgtk_1.c
Creating GTK/pgtk_2.c
Creating GTK/pgtk_3.c
Creating GTK/pgtk_4.c
Creating GTK/pgtk_5.c
Creating GTK/prototypes.h
Creating GTK/time_stamp
Creating GTK/pgtk.c
Total time spent... 12.0s
/bin/sh: -c: line 1: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 2: syntax error: unexpected end of file
make[4]: *** [compile1] Error 2
make[4]: Leaving directory
`/tmp/autobuild/pike7.1-20001219170839.tar/build/linux-2.4.0-0.8-ia64/post_modules/GTK'
make[3]: *** [GTK] Error 1
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/933cc/AIX 5L/IA64 doesn't like pike_search_engine.c lines 71 & 1642009-04-16T14:11:39ZPeter Bortascc/AIX 5L/IA64 doesn't like pike_search_engine.c lines 71 & 164Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=933
Reported by @grubba
WARNING: Compiler failure! Trying without optimization!
echo /home/grubba/src/Pike7.1/build/aix-0-ia64/smartlink cc -I.
-I/home/grubba/src/Pike7.1...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=933
Reported by @grubba
WARNING: Compiler failure! Trying without optimization!
echo /home/grubba/src/Pike7.1/build/aix-0-ia64/smartlink cc -I.
-I/home/grubba/src/Pike7.1/src -I/usr/local/include -I/usr/X11R6/include
-I/home/grubba/src/Pike7.1/src -I/home/grubba/src/Pike7.1/build/aix-0-ia64
-q64 -I/usr/local/include -I/usr/X11R6/include
-I/home/grubba/src/Pike7.1/src
-I/home/grubba/src/Pike7.1/build/aix-0-ia64 -c
/home/grubba/src/Pike7.1/src/pike_search.c -o pike_search.o
"/home/grubba/src/Pike7.1/src/pike_search_engine2.c", line 154.5: 1506-068
(W) Operation between types "unsigned char*" and "signed char*" is not
allowed.
"/home/grubba/src/Pike7.1/src/pike_search_engine.c", line 71.3: 1506-025
(S) Operand must be a modifiable lvalue.
"/home/grubba/src/Pike7.1/src/pike_search_engine.c", line 164.3: 1506-025
(S) Operand must be a modifiable lvalue.
"/home/grubba/src/Pike7.1/src/pike_search_engine2.c", line 154.5: 1506-068
(W) Operation between types "unsigned char*" and "signed char*" is not
allowed.
"/home/grubba/src/Pike7.1/src/pike_search_engine.c", line 71.3: 1506-025
(S) Operand must be a modifiable lvalue.
"/home/grubba/src/Pike7.1/src/pike_search_engine.c", line 164.3: 1506-025
(S) Operand must be a modifiable lvalue.
"/home/grubba/src/Pike7.1/src/pike_search_engine2.c", line 154.5: 1506-068
(W) Operation between types "unsigned char*" and "signed char*" is not
allowed.
"/home/grubba/src/Pike7.1/src/pike_search_engine.c", line 71.3: 1506-025
(S) Operand must be a modifiable lvalue.
"/home/grubba/src/Pike7.1/src/pike_search_engine.c", line 164.3: 1506-025
(S) Operand must be a modifiable lvalue.
"/home/grubba/src/Pike7.1/src/pike_search.c", line 171.25: 1506-280 (W)
Function argument assignment between types "unsigned char*" and "signed
char*" is not allowed.
"/home/grubba/src/Pike7.1/src/pike_search.c", line 172.46: 1506-280 (W)
Function argument assignment between types "unsigned char*" and "signed
char*" is not allowed.
"/home/grubba/src/Pike7.1/src/pike_search.c", line 172.30: 1506-068 (W)
Operation between types "signed char*" and "unsigned char*" is not allowed.
make: The error code from the last command is 1.
Looks like it doesn't like NEEDLE as an lvalue.Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/932PiGTK broken in latest CVS2009-04-16T14:11:39ZPeter BortasPiGTK broken in latest CVSImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=932
Reported by David Hedbor, Idonex / Real Networks <david@hedbor.org>
PiGTK no longer works. First of all it can't find the sources since the
name of the build script h...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=932
Reported by David Hedbor, Idonex / Real Networks <david@hedbor.org>
PiGTK no longer works. First of all it can't find the sources since the
name of the build script has changed. The second issue is that it doesn't
find GTK at all:
checking for GTK - version >= 1.3.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
checking for gtk2-config... (cached) no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
checking for gtk2-config... (cached) no
checking for GTK - version >= 1.1.13... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
```
: 0 neotron@tezcatlipoca gtk-config --version
1.2.8
```
As you can see, it's looking for gtk2-config which I don't have installed.Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/927src/modules/Java/configure.in doesn't work with new autoconf2009-04-16T14:11:39ZPeter Bortassrc/modules/Java/configure.in doesn't work with new autoconfImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=927
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
Running autoheader in ./modules/Java
/usr/local/bin/autoheader: unexpected EOF while looking for `''...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=927
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
Running autoheader in ./modules/Java
/usr/local/bin/autoheader: unexpected EOF while looking for `''
/usr/local/bin/autoheader: /tmp/ah17363/traces.sh: line 4: syntax error
Running autoconf in ./modules/Java
configure.in:81: /usr/bin/m4: Bad regular expression `[\([`""]\)]': Unmatched ) or \)
[configure.in:81[: error: [[[back quotes and double quotes should not be escaped in: [[$as_me:__oline__: checking for JAVA_HOME]]]]]]
][
][
][
][
][
[snip]
][
]configure.in:81: /usr/bin/m4: ERROR: Recursion limit of 250 exceeded, use -L<N> to change it
```
tsunami% autoconf -V
autoconf (GNU autoconf) 2.49bPike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/916Thread.Fifo()->read_array() does not work2009-04-16T14:11:39ZPeter BortasThread.Fifo()->read_array() does not workImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=916
Reported by @marcus
```
Pike v7.1 release 17 running Hilfe v2.0 (Incremental Pike Frontend)
> object f = Thread.Fifo();
Result: Thread.Fifo(0 / 128)
> f->write(17);
R...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=916
Reported by @marcus
```
Pike v7.1 release 17 running Hilfe v2.0 (Incremental Pike Frontend)
> object f = Thread.Fifo();
Result: Thread.Fifo(0 / 128)
> f->write(17);
Result: 0
> f->write(42);
Result: 0
> f->read_array();
Bad argument 1 to sizeof().
/i/pike/7.1.17/lib/modules/Thread.pmod:135:
Thread.Fifo(2 / 128)->read_array()
-:1: ___Foo4711()
>
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/904stealth_check_mapping_for_destruct can fail in the gc2009-04-16T14:11:39ZPeter Bortasstealth_check_mapping_for_destruct can fail in the gcImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=904
Reported by Martin Stjernholm <mast@roxen.com>
The following program causes a fatal in the gc.
```
int main()
{
object o = class {}();
mapping m = ([o: ({17})]);...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=904
Reported by Martin Stjernholm <mast@roxen.com>
The following program causes a fatal in the gc.
```
int main()
{
object o = class {}();
mapping m = ([o: ({17})]);
destruct (o);
gc();
}
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/902spider.XML dumps core2009-04-16T14:11:39ZPeter Bortasspider.XML dumps coreImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=902
Reported by @marcus
The follwing program
```
class P
{
static private inherit spider.XML;
void f()
{
parse(Stdio.read_file("/home/marcus/hack/xml/foo.xml"...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=902
Reported by @marcus
The follwing program
```
class P
{
static private inherit spider.XML;
void f()
{
parse(Stdio.read_file("/home/marcus/hack/xml/foo.xml"),
lambda(mixed ... args) {});
}
}
int main()
{
P()->f();
}
```
produces a core dump. If the "private" modifier is removed, the program
works.Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/885Streaming Gz module gives incorrect results2009-04-16T14:11:39ZPeter BortasStreaming Gz module gives incorrect resultsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=885
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
The following code trigs a bug:
string data0 = ...; // 66560 characters.
string data1 ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=885
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
The following code trigs a bug:
string data0 = ...; // 66560 characters.
string data1 = ...; // 66560 characters.
```
function gzd = Gz.deflate()->deflate;
function gzi = Gz.inflate()->inflate;
int main()
{
string packed = "";
packed += gzd(data0, Gz.NO_FLUSH);
packed += gzd(data1, Gz.NO_FLUSH);
packed += gzd("", Gz.FINISH);
return !(data0 + data1 == gzi(packed));
}
```
The complete source code is available at:
Pike/7.1/src/modules/Gz/flushtest.pikePike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/881_Image_TTF small buglet (7.0 from CVS and 7.1)2009-04-16T14:11:39ZPeter Bortas_Image_TTF small buglet (7.0 from CVS and 7.1)Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=881
Reported by Marek Habersack, Vip-Net s.c. <grendel@vip.net.pl>
The compound if statement starting at line 838 in
src/modules/_Image_TTF/image_ttf.c has an erroneous o...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=881
Reported by Marek Habersack, Vip-Net s.c. <grendel@vip.net.pl>
The compound if statement starting at line 838 in
src/modules/_Image_TTF/image_ttf.c has an erroneous operator - the 'else
if' code won't ever be executed (it should say != 0 instead of == 0). The
same buglet exists in Pike 7.1.Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/864mysql-glue is 3.23.x compatible but not with older versions2009-04-16T14:11:39ZPeter Bortasmysql-glue is 3.23.x compatible but not with older versionsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=864
Reported by Sten Eriksson, UDAC AB <sten.eriksson@its.uu.se>
```
From the CVS-browser:
---
revision 1.37
date: 2000/08/13 14:55:14; author: grubba; state: Exp; lin...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=864
Reported by Sten Eriksson, UDAC AB <sten.eriksson@its.uu.se>
```
From the CVS-browser:
---
revision 1.37
date: 2000/08/13 14:55:14; author: grubba; state: Exp; lines: +4 -4
```
Compatibility with 3.23.x.
```
- err = (mysql_field_count(socket) && mysql_error(socket)[0]);
+ err = (mysql_num_fields(socket) && mysql_error(socket)[0]);
---
This breaks with older versions of mysql:
---
$ mysql --version
mysql Ver 9.15 Distrib 3.21.30, for pc-linux-gnu (i586)
$ pike
Pike v7.1 release 13 running Hilfe v2.0 (Incremental Pike Frontend)
> indices(Mysql);
load_module("/usr/local/pike/7.1.13/lib/modules/Mysql.so") failed:
/usr/local/pike/7.1.13/lib/modules/Mysql.so: undefined symbol:
mysql_field_count
/usr/local/pike/7.1.13/lib/master.pike:386:
master()->low_findprog("/usr/local/pike/7.1.13/lib/modules/Mysql",".so",0)
/usr/local/pike/7.1.13/lib/master.pike:411:
master()->findprog("/usr/local/pike/7.1.13/lib/modules/Mysql","",0)
/usr/local/pike/7.1.13/lib/master.pike:583:
master()->low_cast_to_object("/usr/local/pike/7.1.13/lib/modules/Mysql","/.")
/usr/local/pike/7.1.13/lib/master.pike:853:
master()->findmodule("/usr/local/pike/7.1.13/lib/modules/Mysql")
/usr/local/pike/7.1.13/lib/master.pike:961:
master()->resolv_base("Mysql","-")
/usr/local/pike/7.1.13/lib/master.pike:1003: master()->resolv("Mysql","-")
/usr/local/pike/7.1.13/lib/modules/Tools.pmod/Hilfe.pmod:76:
eval("mixed ___Foo4711() { return (mixed)(indices(Mysql)); }\n")
/usr/local/pike/7.1.13/lib/modules/Tools.pmod/Hilfe.pmod:101:
do_evaluate("mixed ___Foo4711() { return (mixed)(indices(Mysql));
}\n",1)
/usr/local/pike/7.1.13/lib/modules/Tools.pmod/Hilfe.pmod:592:
parse_statement("indices(Mysql);")
/usr/local/pike/7.1.13/lib/modules/Tools.pmod/Hilfe.pmod:373: do_parse()
/usr/local/pike/7.1.13/lib/modules/Tools.pmod/Hilfe.pmod:227:
add_buffer("indices(Mysql);\n")
/usr/local/pike/7.1.13/lib/modules/Tools.pmod/Hilfe.pmod:612:
add_input_line("indices(Mysql);\n")
/usr/local/pike/7.1.13/lib/modules/Tools.pmod/Hilfe.pmod:692: create()
Hilfe: StdinHilfe()
-:1:Bad argument 1 to indices(). Expected
string|array|mapping|multiset|object|program|function
---
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/849configure adds warning flags not supported by all versions of gcc when $CC=gcc2009-04-16T14:11:39ZPeter Bortasconfigure adds warning flags not supported by all versions of gcc when $CC=gccImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=849
Reported by @marcus
If configure detects that the C compiler used is gcc, it will add a number
of warning flags. Amongst these are -Wno-long-long and -Wmultichar, wh...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=849
Reported by @marcus
If configure detects that the C compiler used is gcc, it will add a number
of warning flags. Amongst these are -Wno-long-long and -Wmultichar, which
are not supported by gcc 2.7.2.1. configure should test the individual
flags to see which ones are really supported.Pike 7.2Marcus ComstedtMarcus Comstedt