Jump to content

jbsmith969

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Everything posted by jbsmith969

  1. We're trying to upgrade PHP 5.0.4 to 5.1.4. The 5.0.4 was a pre-packaged version from sunfreeware.com that comes with only about three modules loaded so we downloaded 5.1.4 and we're trying to get that installed. Right now we're just doing a simple ./configure, then make, then make install. Everything works, but the phpinfo() function in a php file shows that we are still running 5.0.4. I'm not quite sure what we are needing to change to make it use 5.1.4 since they both seem to point to the same libphp5.so file in the httpd.conf file. I've been scouring the internet to see where we went wrong, but I can't seem to find anything so I thought I would ask here while I continue my quest.
  2. So we've figured out some things and got past the MySQL problem, but now we're stuck on this... [code]In file included from /usr/include/sys/signal.h:34,                  from /usr/include/signal.h:26,                  from /home/someuser/php_setup_files/php-5.1.4/ext/posix/posix.c:42: /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t" /usr/include/sys/siginfo.h:292: error: parse error before '}' token /usr/include/sys/siginfo.h:294: error: parse error before '}' token /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t" /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc' /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc' /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault' /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault' /usr/include/sys/siginfo.h:404: error: conflicting types for `__file' /usr/include/sys/siginfo.h:273: error: previous declaration of `__file' /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof' /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof' /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl' /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl' /usr/include/sys/siginfo.h:426: error: parse error before '}' token /usr/include/sys/siginfo.h:428: error: parse error before '}' token /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t" /usr/include/sys/siginfo.h:437: error: parse error before '}' token In file included from /usr/include/signal.h:26,                  from /home/someuser/php_setup_files/php-5.1.4/ext/posix/posix.c:42: /usr/include/sys/signal.h:85: error: parse error before "siginfo_t" In file included from /home/someuser/php_setup_files/php-5.1.4/ext/posix/posix.c:42: /usr/include/signal.h:111: error: parse error before "siginfo_t" /usr/include/signal.h:113: error: parse error before "siginfo_t" *** Error code 1 make: Fatal error: Command failed for target `ext/posix/posix.lo'[/code] This is from make test. We tried to find posix.lo and did not find it.
  3. I'll try to post something soon, that is if we are still having problems. We might be able to resolve them with your suggestions thus far. I'll certainly post something from make test if we get stumped; otherwise, I'll let you know our findings.
  4. It was from make. That list of errors was run before you told us about make test.
  5. I wonder if this path thing is our problem with GD as well? Your suggestions are great. I'll let you know how it goes. Thanks again.
  6. I'm not sure where we are with this yet, but the guy I'm working with on this has been doing some troubleshooting today based on your pointers. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]why do you give the entire path here though?[/quote] Are you saying to take the path out?
  7. Wow Bane, thanks for all of your help. I'll see if we can play with it a little today and I'll check into your suggestions.
  8. Here's the configure command... /home/someuser/php_setup_files/php-5.1.4/configure --prefix=/usr/local/php --with-mysql=/usr/sfw --with-apxs2=/usr/apache2/bin/apxs --with-pear=/usr/local/lib/php --with-pspe ll --with-mime-magic --disable-safe-mode --enable-versioning --enable-ftp --with-openssl --with-freetype-dir --with-jpeg-dir=/usr/local --with-zlib --enable-libgcc--enable- mbstring --enable-xslt --with-xslt-sablot --with-gettext --with-curl --with-dom --with-dom-xslt --with-zip --with-bz2 --with-iconv --enable-exif --enable-bcmath --enable-cal endar --enable-soap --enable-xslt --with-xslt-sablot --enable-sockets --with-xsl
  9. Here's the error output. I don't have access to the configure command at the moment, but I'll get that as soon as I can. I'm very new to the UNIX environment, and the admin I'm working with doesn't have experience in compiling programs, but it almost looks like some things need to be moved around judging by this output... /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c: In function `_php_iconv_appendl': /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c:254: warning: passing arg 2 of `libiconv' from incompatible pointer type /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c: In function `php_iconv_string': /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c:414: warning: passing arg 2 of `libiconv' from incompatible pointer type /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c: In function `_php_iconv_strlen': /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c:528: warning: passing arg 2 of `libiconv' from incompatible pointer type /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c: In function `_php_iconv_substr': /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c:641: warning: passing arg 2 of `libiconv' from incompatible pointer type /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c: In function `_php_iconv_strpos': /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c:772: warning: passing arg 2 of `libiconv' from incompatible pointer type /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c: In function `_php_iconv_mime_encode': /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c:1021: warning: passing arg 2 of `libiconv' from incompatible pointer type /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c:1121: warning: passing arg 2 of `libiconv' from incompatible pointer type /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c: In function `php_iconv_stream_filter_append_bucket': /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c:2379: warning: passing arg 2 of `libiconv' from incompatible pointer type /home/someuser/php_setup_files/php-5.1.4/ext/iconv/iconv.c:2458: warning: passing arg 2 of `libiconv' from incompatible pointer type /bin/sh /home/someuser/php_setup_files/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mime_magic/ -I/home/someuser/php_setup_files/php-5.1.4/ext/mime_magic/ -DPHP_ATOM_INC -I/home/someuser/php_setup_files/include -I/home/someuser/php_setup_files/main -I/home/someuser/php_setup_files/php-5.1.4 -I/usr/local/include/libxml2 -I/usr/sfw/include -I/usr/local/include -I/home/someuser/php_setup_files/ext/date/lib -I/home/someuser/php_setup_files/php-5.1.4/ext/date/lib -I/usr/sfw/include/mysql -I/usr/include/pspell -I/usr/include/libxml2 -I/home/someuser/php_setup_files/TSRM -I/home/someuser/php_setup_files/Zend -I/home/someuser/php_setup_files/php-5.1.4/main -I/home/someuser/php_setup_files/php-5.1.4/Zend -I/home/someuser/php_setup_files/php-5.1.4/TSRM -I/home/someuser/php_setup_files/ -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -g -O2 -c /home/someuser/php_setup_files/php-5.1.4/ext/mime_magic/mime_magic.c -o ext/mime_magic/mime_magic.lo /bin/sh /home/someuser/php_setup_files/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysql/ -I/home/someuser/php_setup_files/php-5.1.4/ext/mysql/ -DPHP_ATOM_INC -I/home/someuser/php_setup_files/include -I/home/someuser/php_setup_files/main -I/home/someuser/php_setup_files/php-5.1.4 -I/usr/local/include/libxml2 -I/usr/sfw/include -I/usr/local/include -I/home/someuser/php_setup_files/ext/date/lib -I/home/someuser/php_setup_files/php-5.1.4/ext/date/lib -I/usr/sfw/include/mysql -I/usr/include/pspell -I/usr/include/libxml2 -I/home/someuser/php_setup_files/TSRM -I/home/someuser/php_setup_files/Zend -I/home/someuser/php_setup_files/php-5.1.4/main -I/home/someuser/php_setup_files/php-5.1.4/Zend -I/home/someuser/php_setup_files/php-5.1.4/TSRM -I/home/someuser/php_setup_files/ -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -g -O2 -c /home/someuser/php_setup_files/php-5.1.4/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.lo In file included from /usr/include/sys/signal.h:34, from /usr/include/signal.h:26, from /home/someuser/php_setup_files/php-5.1.4/ext/mysql/php_mysql.c:55: /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t" /usr/include/sys/siginfo.h:292: error: parse error before '}' token /usr/include/sys/siginfo.h:294: error: parse error before '}' token /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t" /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc' /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc' /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault' /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault' /usr/include/sys/siginfo.h:404: error: conflicting types for `__file' /usr/include/sys/siginfo.h:273: error: previous declaration of `__file' /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof' /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof' /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl' /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl' /usr/include/sys/siginfo.h:426: error: parse error before '}' token /usr/include/sys/siginfo.h:428: error: parse error before '}' token /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t" /usr/include/sys/siginfo.h:437: error: parse error before '}' token In file included from /usr/include/signal.h:26, from /home/someuser/php_setup_files/php-5.1.4/ext/mysql/php_mysql.c:55: /usr/include/sys/signal.h:85: error: parse error before "siginfo_t" In file included from /home/someuser/php_setup_files/php-5.1.4/ext/mysql/php_mysql.c:55: /usr/include/signal.h:111: error: parse error before "siginfo_t" /usr/include/signal.h:113: error: parse error before "siginfo_t" *** Error code 1 make: Fatal error: Command failed for target `ext/mysql/php_mysql.lo'
  10. That's very useful. Thanks. You know we got through the ./compile finally after resolving all of the paths and installing all of the needed extensions, and now "make" is failing. First it was GD so we pulled the with statement for that temporarily from the ./configure, then make had a problem with mysql. This is very frustrating. It's coming up with parse errors, conflicting types, and previous declarations. The last one ended with Error code 1 make: Fatal error: Command failed for target `ext/mysql/php_mysql.lo'
  11. We're using a Sun server at work for our intranet and I need to configure it so it has all the typical PHP stuff you would get from a web host for PHP5.0.4. We successfully have PHP running, but it's missing some things I need such my PHP pages can't authenticate against our LDAP server now, but it works on a different server. This is what is currently under the configure command section that shows when using the phpinfo() function. [code]'./configure' '--prefix=/usr/local/php' '--with-mysql=/usr/local/mysql' '--with-apxs2=/usr/local/apache2/bin/apxs'[/code] So I need to be able to run XML, XSL, XSLT (all the stuff Dreamweaver needs to process RSS feeds), LDAP authentication and image manipulation if it's done here. I have scoured the internet finding various ways to set up the ./configure, but I would like to try to get everything a web host would typically supply and can't seem to find anything on that. If anyone could PLEASE help me with all the extras, that would be outstanding so we don't have to go through this again because PHP is missing something as I become more advanced. I'm still pretty much a noob.
  12. OK, but what would be the best way to do that? I'm not quite sure how to go about it. Is there possibly a function that MySQL has to do this. I've tried searching around on how to do this, but I can't seem to find anything and I'm not ever sure what to search for.
  13. I wasn't thinking of actually changing the record ID. That's why I would have a whole different column named sort_ID designated for sorting purposes only. Is sort_ID a reserved name for MySQL or something? Is that why you guys are thinking I want to change the record ID? In other words, I have one column named shot_ID that is the auto incremented record number and I would have an additional column named sort_ID. I guess auto-incrementing doesn't work for sort_ID now that I think this out, so I would have to do a PHP calc to generate those numbers, but leaving that aside, do you guys know of a good way or of something that will assist in allowing me to take a record where sort_ID = 23 (not record ID), change it to sort_ID=3, then fix all the records where the sort_ID >=3 and sort_ID < 23 by adding 1 to all of their values. Or is there some other better way to do this. Surely I'm not the first person in the world that wants to have my records sorted in a certain way and have the ability to change the position of a record in the sort.
  14. I'm trying to figure out how to go about creating the ability to move a record within a sort. Here's an example of the situation I'm trying to figure out... I have a column named sort_ID in MySQL that auto increments. Let's say I have a PHP page that displays all 35 records from a table and I'm sorting by sort_ID. I want to change the record where sort_ID = 24 to sort_ID = 3 and then increase all the records by 1 that follow until the record where sort_ID = 23. I also do not want sort_ID to have any skipped numbers. Everything should be consecutive. I would also need this sort_ID column to renumber itself if a record were deleted to keep everything consecutive. I was thinking of somehow doing this with a calculation in Javascript that controls pull down menus that has all of the available sort_ID's using an onChange='renumber()' function or something like that. Then I would have to figure out how to update each and every record through a loop of some sort. Another thought was to have a hidden field that contains what the current sort_ID is and the pull down menu would be the new sort_ID. Then I would pass those parameters to a PHP/MySQL function that does the renumbering somehow through the database. Anyway, if I new a better way, I guess I wouldn't be here posting this. I would think that this type of need isn't that uncommon, so I'm hoping there's some magical function or better way one of you geniouses can point out. I'm still pretty new to the area of PHP/MySQL.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.