Problem compiling
Hey,
Im compiling Filedrawers, I got intall all teh dependencies, the machine is i386 with ubuntu. But after Configure i made "make clean" and "make"...and i got this error:
rm -f php/config.php                                                                          
echo '<?php' >> php/config.php                                                                
echo '# php config file generated by Makefile.' >> php/config.php                             
echo "\$service_name = \"mfile.ironman.es\";" >> php/config.php                               
echo "\$service_url = \"http://mfile.ironman.es\";" >> php/config.php                         
echo "\$secure_service_url = \"https://mfile.ironman.es\";" >> \                              
             php/config.php                                                                   
echo "define( \"DB_HOST\", \"db_name\" );" >> \                                               
             php/config.php                                                                   
echo "define( \"DB_NAME\", \"db_username\" );" >> \                                           
             php/config.php                                                                   
echo "define( \"DB_RO_USER\", \"\" );" >> \                                                   
             php/config.php                                                                   
echo "define( \"DB_RO_PASS\", \"\" );" >> \                                                   
             php/config.php                                                                   
echo "define( \"DB_USER\", \"db_user\" );" >> \                                               
             php/config.php                                                                   
echo "define( \"DB_PASS\", \"db_password\" );" >> \                                           
             php/config.php                                                                   
echo "\$allow_support_logging = \"\";" >> \                                                   
             php/config.php                                                                   
echo "define( \"PATHTOIMGS\", \"/usr/local/projects/mfile/images/mime/small/\" );" >> \       
             php/config.php                                                                   
echo '?>' >> php/config.php                                                                   
rm -f upload/filedrawers.conf                                                                 
echo '# CGI config file generated by Makefile.' >> upload/filedrawers.conf                    
echo '' >> upload/filedrawers.conf                                                            
echo '# mysql settings for progress feedback' >> upload/filedrawers.conf                      
echo "progressdbhost          db_name" >> upload/filedrawers.conf                             
echo "progressdblogin         db_user" >> upload/filedrawers.conf                             
echo "progressdbpassword      db_password" >> upload/filedrawers.conf                         
echo "progressdbname          db_username" >> upload/filedrawers.conf                         
echo "progressdbtable         filedrawers_progress" >> upload/filedrawers.conf                
echo "" >> upload/filedrawers.conf                                                            
echo "# only uploads to subdirectories of this path are valid" >> \                           
             upload/filedrawers.conf                                                          
echo "validpath               /afs" >> upload/filedrawers.conf                                
echo "" >> upload/filedrawers.conf                                                            
echo "# redirect here on error" >> upload/filedrawers.conf                                    
echo "errorurl                https://mfile.ironman.es/?error=true" >> upload/filedrawers.conf
( cd pecl; make  )                                                                            
make[1]: Entering directory `/usr/src/filedrawers/pecl'                                       
/bin/sh /usr/src/filedrawers/pecl/libtool --mode=compile gcc  -I.
-I/usr/src/filedrawers/pecl -DPHP_ATOM_INC
-I/usr/src/filedrawers/pecl/include -I/usr/src/filedrawers/pecl/main
-I/usr/src/filedrawers/pecl -I/usr/include/php5
-I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext  -DHAVE_CONFIG_H  -g
-O2   -c /usr/src/filedrawers/pecl/filedrawers.c -o
filedrawers.lo                                                         
mkdir .libs                                                                                   
 gcc -I. -I/usr/src/filedrawers/pecl -DPHP_ATOM_INC
-I/usr/src/filedrawers/pecl/include -I/usr/src/filedrawers/pecl/main
-I/usr/src/filedrawers/pecl -I/usr/include/php5
-I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext -DHAVE_CONFIG_H -g -O2
-c /usr/src/filedrawers/pecl/filedrawers.c  -fPIC -DPIC -o
.libs/filedrawers.o       
/bin/sh /usr/src/filedrawers/pecl/libtool --mode=link gcc
-DPHP_ATOM_INC -I/usr/src/filedrawers/pecl/include
-I/usr/src/filedrawers/pecl/main -I/usr/src/filedrawers/pecl
-I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext  -DHAVE_CONFIG_H  -g
-O2   -o filedrawers.la -export-dynamic -avoid-version -prefer-pic
-module -rpath /usr/src/filedrawers/pecl/modules 
filedrawers.lo                             
gcc -shared  .libs/filedrawers.o   -Wl,-soname -Wl,filedrawers.so -o .libs/filedrawers.so     
creating filedrawers.la                                                                       
(cd .libs && rm -f filedrawers.la && ln -s ../filedrawers.la filedrawers.la)                  
/bin/sh /usr/src/filedrawers/pecl/libtool --mode=install cp
./filedrawers.la
/usr/src/filedrawers/pecl/modules                                                                             
cp ./.libs/filedrawers.so /usr/src/filedrawers/pecl/modules/filedrawers.so                    
cp ./.libs/filedrawers.lai /usr/src/filedrawers/pecl/modules/filedrawers.la                   
PATH="$PATH:/sbin" ldconfig -n /usr/src/filedrawers/pecl/modules                              
----------------------------------------------------------------------                        
Libraries have been installed in:                                                             
   /usr/src/filedrawers/pecl/modules                                                          
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:      
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable  
     during execution                                          
   - add LIBDIR to the `LD_RUN_PATH' environment variable      
     during linking                                            
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag              
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.   
----------------------------------------------------------------------
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
make[1]: Leaving directory `/usr/src/filedrawers/pecl'
cd libcgi; make                                       
make[1]: Entering directory `/usr/src/filedrawers/libcgi'
gcc -Wall -Wstrict-prototypes -g    -c -o cgi.o cgi.c    
cgi.c: In function 'post_getline':                       
cgi.c:91: warning: function declaration isn't a prototype
cgi.c: In function 'cgi_init':                           
cgi.c:148: warning: function declaration isn't a prototype
cgi.c: In function 'mp_get_file':                         
cgi.c:361: warning: function declaration isn't a prototype
cgi.c:364: warning: function declaration isn't a prototype
cgi.c:375: warning: function declaration isn't a prototype
cgi.c:378: warning: function declaration isn't a prototype
cgi.c:385: warning: function declaration isn't a prototype
cgi.c:388: warning: function declaration isn't a prototype
cgi.c:400: warning: function declaration isn't a prototype
cgi.c:420: warning: function declaration isn't a prototype
cgi.c:424: warning: function declaration isn't a prototype
cgi.c: In function 'cgi_multipart':                       
cgi.c:539: warning: function declaration isn't a prototype
cgi.c:614: warning: function declaration isn't a prototype
building normal libcgi.a                                  
make[1]: Leaving directory `/usr/src/filedrawers/libcgi'  
( cd upload; make  )                                      
make[1]: Entering directory `/usr/src/filedrawers/upload' 
gcc -Wall -Wmissing-prototypes -g -O2 -I../libcgi -I/usr/include/mysql
-DBIG_JOINS=1 -Wall -Wmissing-prototypes
\                                                                          
                -D_URL_ERROR_PAGE=\"https://mfile.ironman.es/?error=true\" \                  
               
-D_FILEDRAWERS_CONFIG_PATH=\"/usr/local/projects/mfile/lib/filedrawers.conf\"
\                                                                                            
                -c tpupload.c                                                                 
tpupload.c:35: error: syntax error before '*' token                                           
tpupload.c:35: warning: type defaults to 'int' in declaration of 'stmt'                       
tpupload.c:35: warning: data definition has no type or storage class                          
tpupload.c: In function 'upload_progress_db_insert':                                          
tpupload.c:103: error: 'MYSQL_BIND' undeclared (first use in this function)                   
tpupload.c:103: error: (Each undeclared identifier is reported only once                      
tpupload.c:103: error: for each function it appears in.)                                      
tpupload.c:103: error: syntax error before 'bind'
tpupload.c:111: warning: implicit declaration of function 'mysql_stmt_init'
tpupload.c:111: warning: assignment makes pointer from integer without a cast
tpupload.c:123: warning: implicit declaration of function 'mysql_stmt_prepare'
tpupload.c:125: warning: implicit declaration of function 'mysql_stmt_error'
tpupload.c:125: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
tpupload.c:130: error: 'bind' undeclared (first use in this function)
tpupload.c:132: error: 'MYSQL_TYPE_STRING' undeclared (first use in this function)
tpupload.c:134: error: 'MYSQL_TYPE_LONGLONG' undeclared (first use in this function)
tpupload.c:136: error: 'MYSQL_TYPE_TINY' undeclared (first use in this function)
tpupload.c:138: warning: implicit declaration of function 'mysql_stmt_bind_param'
tpupload.c:140: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
tpupload.c:148: warning: implicit declaration of function 'mysql_stmt_execute'
tpupload.c:150: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
tpupload.c: In function 'upload_progress_db_update':
tpupload.c:160: error: 'MYSQL_BIND' undeclared (first use in this function)
tpupload.c:160: error: syntax error before 'bind'
tpupload.c:167: warning: assignment makes pointer from integer without a cast
tpupload.c:181: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
tpupload.c:186: error: 'bind' undeclared (first use in this function)
tpupload.c:188: error: 'MYSQL_TYPE_STRING' undeclared (first use in this function)
tpupload.c:189: error: 'MYSQL_TYPE_LONGLONG' undeclared (first use in this function)
tpupload.c:190: error: 'MYSQL_TYPE_TINY' undeclared (first use in this function)
tpupload.c:195: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
tpupload.c:204: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
tpupload.c: In function 'upload_init':
tpupload.c:308: warning: implicit declaration of function 'mysql_stmt_close'
tpupload.c:310: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
make[1]: *** [tpupload.o] Error 1
make[1]: Leaving directory `/usr/src/filedrawers/upload'
make: *** [upload/upload.cgi] Error 2
 
Someone knows what is wrong???
Gracias
Reply to: