Re: [fpc-pascal] Wiki Syntax Highlight
Hi! > I installed GesHi and one of the extensions: see > http://wiki.lazarus.freepascal.org/Executing_External_Programs for the > results. Thanks a lot! I've beautified the Web Service Toolkit page now. Unfortunately the documentation about the Wiki itself is quite sparse (i.e. about the syntax highlighting its just the one page you've mentioned as an example). I've added an item to http://wiki.freepascal.org/Site_Feedback about writing a wiki doc overview page. Please consider creating such a page, this could also take over the paragraph with the links to wiki tutorials from the main page. Please also add all specialities about the FreePascal Wiki like configuration settings enabling/disabling some syntax elements, ... Bye Hansi -- Johann Glaser <[EMAIL PROTECTED]> Vienna University of Technology Electrical Engineering http://www.johann-glaser.at/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] installing latest stable
On Sat, 9 Jun 2007, pineal wrote: > On Friday 08 June 2007 18:46, Daniël Mantione wrote: > > Op Fri, 8 Jun 2007, schreef pineal: > > > I have downloaded a tar archive, > > > > > > fpc-2.1.4.i386-linux.tar > > > > > > there are no install instructions that I can find. Can anyone give me > > > some guidance or perhaps a link. > > > > Please a look at the earlier e-mail today about the rebuild of this > > release. > > > > The instructions are right next to the download link on the website: > > "After untarring the archive into a temporary location, you can run the > > install script by issuing the command "sh install.sh". > > > > So: > > * Open a terinal. > > * Untar the file, i.e. type "tar xvzf fpc-2.1.4.i386-linux.tar". > > * Type "sh install.sh". > > > > Daniël > > Hi Daniel, > > I have spent the whole afternoon trying to install fpc. :( > > First I downloaded the .rpm files. The compiler and docs install fine but the > source doesn't install anything and there is no error or warning. The source RPM installs an archive file in /usr/src/packages/SOURCES you must unpack this archive yourself. This is standard behaviour for RPM. > > So I tried the same source rpm from a different mirror with the same result. > > So I removed those, downloaded the new 2.1.4a archive, unpacked it and ran > the install script (which I had to interrupt and run a second time as root) > which ran without showing an error and yet I still have no source installed. That is because it does not install the sources. The .tar.gz does not contain the sources: it would more than double the size. The sources are available as a separate download. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PASCAL programming for Novice
Francisco Reyes wrote: > Pete Cervasio writes: > >> Contents of $HOME/.vim/filetype.vim: > > Thanks. Found that it also works with .pas > Changed the programs to that since that is one of the extensiosn the > compiler also checks for. ___ If you google for "vim delphi syntax" you can easily find a delphi syntax highlight file for vim. You can then connect .pas/.pp/.inc to that one in a similar way. Micha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] installing latest stable
On Sunday 10 June 2007 10:15, Michael Van Canneyt wrote: > > > > I have spent the whole afternoon trying to install fpc. :( > > > > First I downloaded the .rpm files. The compiler and docs install fine but > > the source doesn't install anything and there is no error or warning. > > The source RPM installs an archive file in /usr/src/packages/SOURCES > you must unpack this archive yourself. This is standard behaviour for RPM. > No it doesn't. That's why I stated the source doesn't install anything. Due to the problems I looked in the install script and found a reference to /src (which I guessed is appended to the main install dir /usr) and looked there too, but nothing is installed. There is no packages directory created. > > So I tried the same source rpm from a different mirror with the same > > result. > > > > So I removed those, downloaded the new 2.1.4a archive, unpacked it and > > ran the install script (which I had to interrupt and run a second time as > > root) which ran without showing an error and yet I still have no source > > installed. > > That is because it does not install the sources. The .tar.gz does not > contain the sources: it would more than double the size. The sources > are available as a separate download. > > Michael. According to the downloads page the .tar is one big file with "everything in 1 big package", or the other options are .rpm files. There is no tar for just the sources. I did extract the source tar from the source rpm, but I don't know where it should be installed. Previously fpcsrc was installed in /usr/share/fpcsrc, if that is now different, shouldn't a change such as this be documented? neal. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] installing latest stable
Op Sun, 10 Jun 2007, schreef pineal: > On Sunday 10 June 2007 10:15, Michael Van Canneyt wrote: > > > > > > I have spent the whole afternoon trying to install fpc. :( > > > > > > First I downloaded the .rpm files. The compiler and docs install fine but > > > the source doesn't install anything and there is no error or warning. > > > > The source RPM installs an archive file in /usr/src/packages/SOURCES > > you must unpack this archive yourself. This is standard behaviour for RPM. > > > > No it doesn't. That's why I stated the source doesn't install anything. Due > to > the problems I looked in the install script and found a reference to /src > (which I guessed is appended to the main install dir /usr) and looked there > too, but nothing is installed. There is no packages directory created. /usr/src/packages/SOURCES should already exist. If it doesn't your system uses a non standard RPM location; you will find the source in this non standard location in such case. > > That is because it does not install the sources. The .tar.gz does not > > contain the sources: it would more than double the size. The sources > > are available as a separate download. > > > > Michael. > > According to the downloads page the .tar is one big file with "everything in > 1 > big package", or the other options are .rpm files. There is no tar for just > the sources. On http://www.freepascal.org/download.var, there is a link to the sources download, and yes, it is a tar. > I did extract the source tar from the source rpm, but I don't know where it > should be installed. Previously fpcsrc was installed in /usr/share/fpcsrc, if > that is now different, shouldn't a change such as this be documented? Install it wherever you like, the compiler doesn't look for the sources during normal operation. I suggest $HOME/fpcsource. Daniël___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Wiki Syntax Highlight
Johann Glaser schreef: Hi! I installed GesHi and one of the extensions: see http://wiki.lazarus.freepascal.org/Executing_External_Programs for the results. Thanks a lot! I've beautified the Web Service Toolkit page now. Unfortunately the documentation about the Wiki itself is quite sparse Indeed feel free to fill the gap. (i.e. about the syntax highlighting its just the one page you've mentioned as an example). I've added an item to http://wiki.freepascal.org/Site_Feedback about writing a wiki doc overview page. Please consider creating such a page, this could also take over the paragraph with the links to wiki tutorials from the main page. Please also add all specialities about the FreePascal Wiki like configuration settings enabling/disabling some syntax elements, ... Can you do that? I am not much of a writer and you know as much of it as I do. Vincent ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] installing latest stable
On Sunday 10 June 2007 13:20, Daniël Mantione wrote: > Op Sun, 10 Jun 2007, schreef pineal: > > On Sunday 10 June 2007 10:15, Michael Van Canneyt wrote: > > > > I have spent the whole afternoon trying to install fpc. :( > > > > > > > > First I downloaded the .rpm files. The compiler and docs install fine > > > > but the source doesn't install anything and there is no error or > > > > warning. > > > > > > The source RPM installs an archive file in /usr/src/packages/SOURCES > > > you must unpack this archive yourself. This is standard behaviour for > > > RPM. > > > > No it doesn't. That's why I stated the source doesn't install anything. > > Due to the problems I looked in the install script and found a reference > > to /src (which I guessed is appended to the main install dir /usr) and > > looked there too, but nothing is installed. There is no packages > > directory created. > > /usr/src/packages/SOURCES should already exist. If it doesn't your system > uses a non standard RPM location; you will find the source in this non > standard location in such case. > > > > That is because it does not install the sources. The .tar.gz does not > > > contain the sources: it would more than double the size. The sources > > > are available as a separate download. > > > > > > Michael. > > > > According to the downloads page the .tar is one big file with "everything > > in 1 big package", or the other options are .rpm files. There is no tar > > for just the sources. > > On http://www.freepascal.org/download.var, there is a link to the sources > download, and yes, it is a tar. > > > I did extract the source tar from the source rpm, but I don't know where > > it should be installed. Previously fpcsrc was installed in > > /usr/share/fpcsrc, if that is now different, shouldn't a change such as > > this be documented? > > Install it wherever you like, the compiler doesn't look for the sources > during normal operation. I suggest $HOME/fpcsource. > > Daniël Hi Daniel, OK, I finally found the src tar mentioned and it contains everything by the looks of it, including an install script so I shall remove everything so far and try a fresh install from this. *But*, please note when I stated nothing was installed from the source rpm file, it did not get put somewhere else, *nothing* was installed! neal. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] installing latest stable
On Sun, 10 Jun 2007, pineal wrote: > On Sunday 10 June 2007 13:20, Daniël Mantione wrote: > > Op Sun, 10 Jun 2007, schreef pineal: > > > On Sunday 10 June 2007 10:15, Michael Van Canneyt wrote: > > > > > I have spent the whole afternoon trying to install fpc. :( > > > > > > > > > > First I downloaded the .rpm files. The compiler and docs install fine > > > > > but the source doesn't install anything and there is no error or > > > > > warning. > > > > > > > > The source RPM installs an archive file in /usr/src/packages/SOURCES > > > > you must unpack this archive yourself. This is standard behaviour for > > > > RPM. > > > > > > No it doesn't. That's why I stated the source doesn't install anything. > > > Due to the problems I looked in the install script and found a reference > > > to /src (which I guessed is appended to the main install dir /usr) and > > > looked there too, but nothing is installed. There is no packages > > > directory created. > > > > /usr/src/packages/SOURCES should already exist. If it doesn't your system > > uses a non standard RPM location; you will find the source in this non > > standard location in such case. > > > > > > That is because it does not install the sources. The .tar.gz does not > > > > contain the sources: it would more than double the size. The sources > > > > are available as a separate download. > > > > > > > > Michael. > > > > > > According to the downloads page the .tar is one big file with "everything > > > in 1 big package", or the other options are .rpm files. There is no tar > > > for just the sources. > > > > On http://www.freepascal.org/download.var, there is a link to the sources > > download, and yes, it is a tar. > > > > > I did extract the source tar from the source rpm, but I don't know where > > > it should be installed. Previously fpcsrc was installed in > > > /usr/share/fpcsrc, if that is now different, shouldn't a change such as > > > this be documented? > > > > Install it wherever you like, the compiler doesn't look for the sources > > during normal operation. I suggest $HOME/fpcsource. > > > > Daniël > > Hi Daniel, > > OK, I finally found the src tar mentioned and it contains everything by the > looks of it, including an install script so I shall remove everything so far > and try a fresh install from this. > > *But*, please note when I stated nothing was installed from the source rpm > file, it did not get put somewhere else, *nothing* was installed! Nevertheless the package file is correct and contains the sources: [EMAIL PROTECTED]:~/ftp/beta/2.1.4/i386-linux/rpm$ rpm -q -p fpc-2.1.4-0.src.rpm -l fpc-2.1.4-src.tar.gz fpc-2.1.4.spec So either something went wrong when you installed it (disk space ?), or It was installed in a strange location. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] How to analyze a core dump?
Hello, I'm trying to debug a segment violation, I compiled the program with -g, but analyzing the core dump isn't really helpful, maybe the "warning can't read pathname for load map" is the cause? Or it's possible that it's caused by some of the c libraries used having no debug symbols? Any hint? Here's my gdb session: $ gdb ./botphone core.28682 GNU gdb 6.6-1mdv2007.1 (Mandriva Linux release 2007.1) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-mandriva-linux-gnu"... Using host libthread_db library "/lib/i686/libthread_db.so.1". warning: Can't read pathname for load map: Input/output error. Reading symbols from /usr/local/lib/liblinphone.so.1...done. Loaded symbols for /usr/local/lib/liblinphone.so.1 Reading symbols from /lib/libusb-0.1.so.4...done. Loaded symbols for /lib/libusb-0.1.so.4 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/i686/libpthread.so.0...done. Loaded symbols for /lib/i686/libpthread.so.0 Reading symbols from /lib/i686/libc.so.6...done. Loaded symbols for /lib/i686/libc.so.6 Reading symbols from /usr/local/lib/libquickstream.so.0...done. Loaded symbols for /usr/local/lib/libquickstream.so.0 Reading symbols from /usr/lib/libosip2.so.3...done. Loaded symbols for /usr/lib/libosip2.so.3 Reading symbols from /usr/lib/libosipparser2.so.3...done. Loaded symbols for /usr/lib/libosipparser2.so.3 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/i686/librt.so.1...done. Loaded symbols for /lib/i686/librt.so.1 Reading symbols from /lib/libintl.so.8...done. Loaded symbols for /lib/libintl.so.8 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/local/lib/libmediastreamer.so.0...done. Loaded symbols for /usr/local/lib/libmediastreamer.so.0 Reading symbols from /usr/local/lib/libortp.so.5...done. Loaded symbols for /usr/local/lib/libortp.so.5 Reading symbols from /usr/lib/libasound.so.2...done. Loaded symbols for /usr/lib/libasound.so.2 Reading symbols from /usr/lib/libspeex.so.1...done. Loaded symbols for /usr/lib/libspeex.so.1 Reading symbols from /lib/i686/libm.so.6...done. Loaded symbols for /lib/i686/libm.so.6 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /lib/libnss_nis.so.2...done. Loaded symbols for /lib/libnss_nis.so.2 Reading symbols from /lib/libnss_dns.so.2...done. Loaded symbols for /lib/libnss_dns.so.2 Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Core was generated by `./botphone -v -v -v -c /home/luca/.linphonerc -C /home/luca/agenda'. Program terminated with signal 11, Segmentation fault. #0 0x080593ea in SYSTEM_GETERRNO$$LONGINT () (gdb) bt f #0 0x080593ea in SYSTEM_GETERRNO$$LONGINT () No symbol table info available. #1 0x08060442 in SYSTEM_REENABLE_SIGNAL$LONGINT$$BOOLEAN () No symbol table info available. #2 0x08060580 in SYSTEM_SIGNALTORUNERROR$LONGINT$PSIGINFO$PUCONTEXT () No symbol table info available. #3 0x08059bec in ?? () No symbol table info available. #4 0x000b in ?? () No symbol table info available. #5 0xb6b5412c in ?? () No symbol table info available. #6 0xb6b541ac in ?? () No symbol table info available. #7 0x000b in ?? () No symbol table info available. #8 0x in ?? () No symbol table info available. (gdb) Bye -- Luca ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to analyze a core dump?
On Sun, 10 Jun 2007 21:30:09 +0200 Luca Olivetti <[EMAIL PROTECTED]> wrote: > I'm trying to debug a segment violation, I compiled the program with > -g, but analyzing the core dump isn't really helpful, maybe the > "warning can't read pathname for load map" is the cause? Or it's > possible that it's caused by some of the c libraries used having no > debug symbols? Any hint? I'm not too experienced in this, but I suspect a good first step would be to ask for a backtrace (bt) in gdb, after the segfault occured. You'll see the steps that led to the actual segfault, starting from the main program till the library function that failed. Don't immediately suspect the library - go back to the last line of your program and check if all things are normal at _that_ point. AFAIK, core dumps are not really related with gdb, but are generated by the kernel, and should be the last step to fall back on. A backtrace in gdb is generally more helpful. John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to analyze a core dump?
En/na John Coppens ha escrit: On Sun, 10 Jun 2007 21:30:09 +0200 Luca Olivetti <[EMAIL PROTECTED]> wrote: I'm trying to debug a segment violation, I compiled the program with -g, but analyzing the core dump isn't really helpful, maybe the "warning can't read pathname for load map" is the cause? Or it's possible that it's caused by some of the c libraries used having no debug symbols? Any hint? I'm not too experienced in this, but I suspect a good first step would be to ask for a backtrace (bt) in gdb, after the segfault occured. You'll see the steps that led to the actual segfault, starting from the main program till the library function that failed. Don't immediately suspect the library - go back to the last line of your program and check if all things are normal at _that_ point. AFAIK, core dumps are not really related with gdb, but are generated by the kernel, and should be the last step to fall back on. A backtrace in gdb is generally more helpful. I don't know gdb well, but it should be capable to show a backtrace using a core file (that's what I was trying to do). The program doesn't work if I run it under gdb (I don't know why, but I think it has problems with thread), that's why I was trying to use a core. Also it's impossible to debug the program using Lazarus (again, I think, due to threads, and, yes, I tried a separate X server as per the instructions in the wiki) Bye -- Luca ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] installing latest stable
On Sunday 10 June 2007 18:13, Michael Van Canneyt wrote: > > *But*, please note when I stated nothing was installed from the source > > rpm file, it did not get put somewhere else, *nothing* was installed! > > Nevertheless the package file is correct and contains the sources: > > [EMAIL PROTECTED]:~/ftp/beta/2.1.4/i386-linux/rpm$ rpm -q -p > fpc-2.1.4-0.src.rpm > -l fpc-2.1.4-src.tar.gz > fpc-2.1.4.spec I agree the rpm does contain those. > > So either something went wrong when you installed it (disk space ?), No it didn't! Nothing went wrong, no error was reported and the package contents were not installed, anywhere. > , or > It was installed in a strange location. Sure, like someone else's computer. ;) > > Michael. Micheal, I'm not trying to have an argument or be funny, please just accept the fact that the rpm does not work on my system. neal. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to analyze a core dump?
Hi, On 6/10/07, Luca Olivetti <[EMAIL PROTECTED]> wrote: Hello, I'm trying to debug a segment violation, I compiled the program with -g, but analyzing the core dump isn't really helpful, maybe the "warning can't read pathname for load map" is the cause? Or it's possible that it's caused by some of the c libraries used having no debug symbols? Any hint? Here's my gdb session: $ gdb ./botphone core.28682 Try the following: gdb -c botphone core.28682 inside gdb you can do things such as back-trace. GNU gdb 6.6-1mdv2007.1 (Mandriva Linux release 2007.1) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-mandriva-linux-gnu"... Using host libthread_db library "/lib/i686/libthread_db.so.1". warning: Can't read pathname for load map: Input/output error. Reading symbols from /usr/local/lib/liblinphone.so.1...done. Loaded symbols for /usr/local/lib/liblinphone.so.1 Reading symbols from /lib/libusb-0.1.so.4...done. Loaded symbols for /lib/libusb-0.1.so.4 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/i686/libpthread.so.0...done. Loaded symbols for /lib/i686/libpthread.so.0 Reading symbols from /lib/i686/libc.so.6...done. Loaded symbols for /lib/i686/libc.so.6 Reading symbols from /usr/local/lib/libquickstream.so.0...done. Loaded symbols for /usr/local/lib/libquickstream.so.0 Reading symbols from /usr/lib/libosip2.so.3...done. Loaded symbols for /usr/lib/libosip2.so.3 Reading symbols from /usr/lib/libosipparser2.so.3...done. Loaded symbols for /usr/lib/libosipparser2.so.3 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/i686/librt.so.1...done. Loaded symbols for /lib/i686/librt.so.1 Reading symbols from /lib/libintl.so.8...done. Loaded symbols for /lib/libintl.so.8 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/local/lib/libmediastreamer.so.0...done. Loaded symbols for /usr/local/lib/libmediastreamer.so.0 Reading symbols from /usr/local/lib/libortp.so.5...done. Loaded symbols for /usr/local/lib/libortp.so.5 Reading symbols from /usr/lib/libasound.so.2...done. Loaded symbols for /usr/lib/libasound.so.2 Reading symbols from /usr/lib/libspeex.so.1...done. Loaded symbols for /usr/lib/libspeex.so.1 Reading symbols from /lib/i686/libm.so.6...done. Loaded symbols for /lib/i686/libm.so.6 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /lib/libnss_nis.so.2...done. Loaded symbols for /lib/libnss_nis.so.2 Reading symbols from /lib/libnss_dns.so.2...done. Loaded symbols for /lib/libnss_dns.so.2 Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Core was generated by `./botphone -v -v -v -c /home/luca/.linphonerc -C /home/luca/agenda'. Program terminated with signal 11, Segmentation fault. #0 0x080593ea in SYSTEM_GETERRNO$$LONGINT () (gdb) bt f #0 0x080593ea in SYSTEM_GETERRNO$$LONGINT () No symbol table info available. #1 0x08060442 in SYSTEM_REENABLE_SIGNAL$LONGINT$$BOOLEAN () No symbol table info available. #2 0x08060580 in SYSTEM_SIGNALTORUNERROR$LONGINT$PSIGINFO$PUCONTEXT () No symbol table info available. #3 0x08059bec in ?? () No symbol table info available. #4 0x000b in ?? () No symbol table info available. #5 0xb6b5412c in ?? () No symbol table info available. #6 0xb6b541ac in ?? () No symbol table info available. #7 0x000b in ?? () No symbol table info available. #8 0x in ?? () No symbol table info available. (gdb) Bye -- Luca Ido -- http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal