Get an error when trying to compile the mod (using the one from
http://hpwww.ec-lyon.fr/~vincent/apache/mod_put.html )

(btw: is there a way to put the following into a script file once i get it
working?)

Roger
[EMAIL PROTECTED]


Here's is what i get when trying to compile:

[root@xxx apache]# apxs -c -o mod_put.so mod_put.cgcc -O3 -fomit-frame-pointer
-fno-exceptions -fno-r tti -pipe -s -mpentium -mcpu=pentium -march=pentium
-ffast-math -fexpensive-optimizations -malign-loops=2 -m align-jumps=2
-malign-functions=2 -mpreferred-stack-boundary=2 -DLINUX=2 -DNO_DBM_REWRITEMAP
-DEAPI -DEAPI_M M -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE
-I/usr/include/apache -c mod_put.c gcc -shared -o mo d_put.so mod_put.o gcc -O3
-fomit-frame-pointer -fno-exceptions -fno-rtti -pipe -s -mpentium -mcpu=pentium
-march=pentium -ffas t-math -fexpensive-optimizations -malign-loops=2
-malign-jumps=2 -malign-functions=2 -mpreferred-stack-bound ary=2 -DLINUX=2
-DNO_DBM_REWRITEMAP -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -fpic
-DSHARED_MODULE - I/usr/include/apache  -c mod_put.c In file included from
httpd.h:71,                  from mod_put.c:73: ap_config.h:84: sys/types.h: No
such file or directory ap_config.h:85: sys/stat.h: No such file or directory
In file included from ap_config.h:115,
                 from httpd.h:71,
                 from mod_put.c:73:
os.h:114: dlfcn.h: No such file or directory
In file included from httpd.h:71,
                 from mod_put.c:73:
ap_config.h:119: sys/param.h: No such file or directory
ap_config.h:492: features.h: No such file or directory
ap_config.h:543: sys/time.h: No such file or directory
ap_config.h:1021: sys/types.h: No such file or directory
In file included from httpd.h:71,
                 from mod_put.c:73:
ap_config.h:1025: dirent.h: No such file or directory
ap_config.h:1034: stdio.h: No such file or directory
ap_config.h:1035: stdlib.h: No such file or directory
ap_config.h:1036: string.h: No such file or directory
In file included from ap_config.h:1040,
                 from httpd.h:71,
                 from mod_put.c:73:
ap_ctype.h:61: ctype.h: No such file or directory
In file included from httpd.h:71,
                 from mod_put.c:73:
ap_config.h:1042: sys/file.h: No such file or directory
ap_config.h:1045: sys/socket.h: No such file or directory
ap_config.h:1047: sys/select.h: No such file or directory
ap_config.h:1050: netinet/in.h: No such file or directory
ap_config.h:1052: netdb.h: No such file or directory
ap_config.h:1053: sys/ioctl.h: No such file or directory
ap_config.h:1055: arpa/inet.h: No such file or directory
ap_config.h:1057: sys/wait.h: No such file or directory
ap_config.h:1058: pwd.h: No such file or directory
ap_config.h:1059: grp.h: No such file or directory
ap_config.h:1060: fcntl.h: No such file or directory
In file included from 
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/include/limits.h:11,
                 from ap_config.h:1072,
                 from httpd.h:71,
                 from mod_put.c:73:
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/include/limits.h:117: limits.h: No such 
file or directory
In file included from httpd.h:71,
                 from mod_put.c:73:
ap_config.h:1073: time.h: No such file or directory
ap_config.h:1077: signal.h: No such file or directory
ap_config.h:1081: errno.h: No such file or directory
ap_config.h:1083: memory.h: No such file or directory
ap_config.h:1095: regex.h: No such file or directory
ap_config.h:1099: sys/resource.h: No such file or directory
ap_config.h:1132: unistd.h: No such file or directory
ap_config.h:1167: setjmp.h: No such file or directory
In file included from mod_put.c:76:
http_log.h:66: syslog.h: No such file or directory
In file included from httpd.h:73,
                 from mod_put.c:73:
ap_mm.h:79: parse error before `size'
ap_mm.h:80: parse error before `mode'
ap_mm.h:84: parse error before `size'
ap_mm.h:85: parse error before `size_t'
ap_mm.h:87: parse error before `number'
ap_mm.h:89: parse error before `ap_MM_sizeof'
ap_mm.h:89: warning: data definition has no type or storage class
ap_mm.h:90: parse error before `ap_MM_maxsize'
ap_mm.h:90: warning: data definition has no type or storage class
ap_mm.h:91: parse error before `ap_MM_available'
ap_mm.h:91: warning: data definition has no type or storage class
ap_mm.h:95: parse error before `size'
ap_mm.h:96: parse error before `mode_t'
ap_mm.h:100: parse error before `size_t'
ap_mm.h:101: parse error before `size_t'
ap_mm.h:103: parse error before `size_t'
ap_mm.h:105: parse error before `ap_mm_sizeof'
ap_mm.h:105: warning: data definition has no type or storage class
ap_mm.h:106: parse error before `ap_mm_maxsize'
ap_mm.h:106: warning: data definition has no type or storage class
ap_mm.h:107: parse error before `ap_mm_available'
ap_mm.h:107: warning: data definition has no type or storage class
ap_mm.h:112: parse error before `size'
ap_mm.h:113: parse error before `mode_t'
ap_mm.h:115: parse error before `ap_mm_core_size'
ap_mm.h:115: warning: data definition has no type or storage class
ap_mm.h:118: parse error before `ap_mm_core_maxsegsize'
ap_mm.h:118: warning: data definition has no type or storage class
ap_mm.h:119: parse error before `ap_mm_core_align2page'
ap_mm.h:119: parse error before `size'
ap_mm.h:119: warning: data definition has no type or storage class
ap_mm.h:120: parse error before `ap_mm_core_align2word'
ap_mm.h:120: parse error before `size'
ap_mm.h:120: warning: data definition has no type or storage class
In file included from httpd.h:75,
                 from mod_put.c:73:
alloc.h:336: parse error before `*'
alloc.h:336: warning: data definition has no type or storage class
alloc.h:337: parse error before `*'
alloc.h:337: warning: data definition has no type or storage class
alloc.h:340: parse error before `FILE'
alloc.h:352: parse error before `*'
alloc.h:352: warning: data definition has no type or storage class
alloc.h:353: parse error before `regex_t'
alloc.h:359: parse error before `FILE'
alloc.h:366: parse error before `*'
alloc.h:366: warning: data definition has no type or storage class
alloc.h:367: parse error before `DIR'
alloc.h:388: parse error before `pid_t'
alloc.h:392: parse error before `FILE'
In file included from httpd.h:86,
                 from mod_put.c:73:
ap.h:68: parse error before `size_t'
ap.h:72: parse error before `size_t'
ap.h:158: parse error before `size_t'
ap.h:160: parse error before `size_t'
In file included from mod_put.c:73:
httpd.h:718: parse error before `time_t'
httpd.h:718: warning: no semicolon at end of struct or union
httpd.h:754: parse error before `mtime'
httpd.h:754: warning: data definition has no type or storage class
httpd.h:846: parse error before `}'
httpd.h:866: field `local_addr' has incomplete type
httpd.h:867: field `remote_addr' has incomplete type
httpd.h:909: field `host_addr' has incomplete type
httpd.h:936: parse error before `FILE'
httpd.h:936: warning: no semicolon at end of struct or union
httpd.h:963: parse error before `server_uid'
httpd.h:963: warning: data definition has no type or storage class
httpd.h:964: parse error before `server_gid'
httpd.h:964: warning: data definition has no type or storage class
httpd.h:973: parse error before `}'
httpd.h:978: field `local_addr' has incomplete type
httpd.h:996: parse error before `time_t'
httpd.h:997: parse error before `time_t'
httpd.h:1052: parse error before `*'
httpd.h:1054: parse error before `ap_regerror'
httpd.h:1054: parse error before `*'
httpd.h:1055: warning: data definition has no type or storage class
httpd.h:1057: parse error before `size_t'
httpd.h:1069: parse error before `size_t'
httpd.h:1083: parse error before `size_t'
httpd.h:1087: parse error before `size_t'
httpd.h:1101: parse error before `ap_uname2id'
httpd.h:1101: warning: data definition has no type or storage class
httpd.h:1102: parse error before `ap_gname2id'
httpd.h:1102: warning: data definition has no type or storage class
httpd.h:1133: parse error before `ap_restart_time'
httpd.h:1133: warning: data definition has no type or storage class
In file included from mod_put.c:77:
http_protocol.h:117: parse error before `ap_rationalize_mtime'
http_protocol.h:117: parse error before `time_t'
http_protocol.h:117: warning: data definition has no type or storage class
http_protocol.h:134: parse error before `*'
http_protocol.h:135: parse error before `*'
http_protocol.h:140: parse error before `ap_send_mmap'
http_protocol.h:140: parse error before `size_t'
http_protocol.h:141: warning: data definition has no type or storage class
mod_put.c: In function `put_set_putenabled_flag':
mod_put.c:95: `NULL' undeclared (first use in this function)
mod_put.c:95: (Each undeclared identifier is reported only once
mod_put.c:95: for each function it appears in.)
mod_put.c: In function `put_set_deleteenabled_flag':
mod_put.c:101: `NULL' undeclared (first use in this function)
mod_put.c: In function `put_set_umask':
mod_put.c:106: `NULL' undeclared (first use in this function)
mod_put.c: At top level:
mod_put.c:111: `NULL' undeclared here (not in a function)
mod_put.c:111: initializer element is not constant
mod_put.c:111: (near initialization for `put_cmds[0].cmd_data')
mod_put.c:112: `NULL' undeclared here (not in a function)
mod_put.c:112: initializer element is not constant
mod_put.c:112: (near initialization for `put_cmds[1].cmd_data')
mod_put.c:113: `NULL' undeclared here (not in a function)
mod_put.c:113: initializer element is not constant
mod_put.c:113: (near initialization for `put_cmds[2].cmd_data')
mod_put.c:114: `NULL' undeclared here (not in a function)
mod_put.c:114: initializer element is not constant
mod_put.c:114: (near initialization for `put_cmds[3].name')
mod_put.c: In function `create_put_dir_config':
mod_put.c:121: `NULL' undeclared (first use in this function)
mod_put.c:125: `S_IROTH' undeclared (first use in this function)
mod_put.c:125: `S_IWOTH' undeclared (first use in this function)
mod_put.c:125: `S_IXOTH' undeclared (first use in this function)
mod_put.c: In function `make_dirs':
mod_put.c:133: warning: assignment makes pointer from integer without a cast
mod_put.c:137: `S_IRWXU' undeclared (first use in this function)
mod_put.c:137: `S_IRWXG' undeclared (first use in this function)
mod_put.c:137: `S_IRWXO' undeclared (first use in this function)
mod_put.c: In function `do_put':
mod_put.c:144: dereferencing pointer to incomplete type
mod_put.c:145: `FILE' undeclared (first use in this function)
mod_put.c:145: `f' undeclared (first use in this function)
mod_put.c:146: parse error before `int'
mod_put.c:147: `mode_t' undeclared (first use in this function)
mod_put.c:152: `old_umask' undeclared (first use in this function)
mod_put.c:154: dereferencing pointer to incomplete type
mod_put.c:156: dereferencing pointer to incomplete type
mod_put.c:156: dereferencing pointer to incomplete type
mod_put.c:156: dereferencing pointer to incomplete type
mod_put.c:156: dereferencing pointer to incomplete type
mod_put.c:156: `NULL' undeclared (first use in this function)
mod_put.c:157: dereferencing pointer to incomplete type
mod_put.c:157: dereferencing pointer to incomplete type
mod_put.c:160: dereferencing pointer to incomplete type
mod_put.c:160: dereferencing pointer to incomplete type
mod_put.c:163: dereferencing pointer to incomplete type
mod_put.c:168: `result' undeclared (first use in this function)
mod_put.c:172: `buffer' undeclared (first use in this function)
mod_put.c:172: dereferencing pointer to incomplete type
mod_put.c:173: `len' undeclared (first use in this function)
mod_put.c:177: dereferencing pointer to incomplete type
mod_put.c:177: dereferencing pointer to incomplete type
mod_put.c:180: dereferencing pointer to incomplete type
mod_put.c: In function `do_delete':
mod_put.c:187: dereferencing pointer to incomplete type
mod_put.c:190: dereferencing pointer to incomplete type
mod_put.c:191: dereferencing pointer to incomplete type
mod_put.c:193: dereferencing pointer to incomplete type
mod_put.c:199: dereferencing pointer to incomplete type
mod_put.c:199: dereferencing pointer to incomplete type
mod_put.c: In function `put_handler':
mod_put.c:206: dereferencing pointer to incomplete type
mod_put.c:207: dereferencing pointer to incomplete type
mod_put.c:215: dereferencing pointer to incomplete type
mod_put.c: At top level:
mod_put.c:222: `NULL' undeclared here (not in a function)
mod_put.c:222: initializer element is not constant
mod_put.c:222: (near initialization for `put_handlers[1].content_type')
mod_put.c:226: `NULL' undeclared here (not in a function)
mod_put.c:226: initializer element is not constant
mod_put.c:226: (near initialization for `put_module.dynamic_load_handle')
mod_put.c:226: `NULL' undeclared here (not in a function)
mod_put.c:226: initializer element is not constant
mod_put.c:226: (near initialization for `put_module.next')
mod_put.c:227: `NULL' undeclared here (not in a function)
mod_put.c:227: initializer element is not constant
mod_put.c:227: (near initialization for `put_module.init')
mod_put.c:229: `NULL' undeclared here (not in a function)
mod_put.c:229: initializer element is not constant
mod_put.c:229: (near initialization for `put_module.merge_dir_config')
mod_put.c:230: `NULL' undeclared here (not in a function)
mod_put.c:230: initializer element is not constant
mod_put.c:235: `NULL' undeclared here (not in a function)
mod_put.c:235: initializer element is not constant
mod_put.c:235: (near initialization for `put_module.ap_check_user_id')
mod_put.c:236: `NULL' undeclared here (not in a function)
mod_put.c:236: initializer element is not constant
mod_put.c:236: (near initialization for `put_module.auth_checker')
mod_put.c:237: `NULL' undeclared here (not in a function)
mod_put.c:237: initializer element is not constant
mod_put.c:237: (near initialization for `put_module.access_checker')
mod_put.c:238: `NULL' undeclared here (not in a function)
mod_put.c:238: initializer element is not constant
mod_put.c:238: (near initialization for `put_module.type_checker')
mod_put.c:239: `NULL' undeclared here (not in a function)
mod_put.c:239: initializer element is not constant
mod_put.c:239: (near initialization for `put_module.fixer_upper')
mod_put.c:240: `NULL' undeclared here (not in a function)
mod_put.c:240: initializer element is not constant
mod_put.c:240: (near initialization for `put_module.logger')
mod_put.c:242: `NULL' undeclared here (not in a function)
mod_put.c:242: initializer element is not constant
mod_put.c:242: (near initialization for `put_module.header_parser')
httpd.h:818: storage size of `finfo' isn't known
apxs:Break: Command failed with rc=65536
[root@xxx apache]#   




On Sun, 30 Jan 2000, you wrote:
> Roger wrote:
> > 
> > eh...not yet.  still have to build that puppy but havn't gotten around to it.
> > will be soon tho'.
> The HTTP1.1 spec doesn't seem to address the mkdir issue.  I'm sure
> someone has a workable solution tho.  Guess i'll have to keep looking or
> do it myself.
> 
> As for mod_put, i've got the same one you do.  It does work, although i
> haven't looked it over for security problems.
> 
> To build it for an Apache which supports DSO's (Air does), just unpack
> the tarball and use apxs to build it:
> 
> $apxs -c -o mod_put.so mod_put.c
> gcc -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pipe -s
> -mpentium -mcpu=pentium -march=pentium -ffast-math
> -fexpensive-optimizations -malign-loops=2 -malign-jumps=2
> -malign-functions=2 -mpreferred-stack-boundary=2 -DLINUX=2
> -DNO_DBM_REWRITEMAP -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite
> -fpic -DSHARED_MODULE -I/usr/include/apache  -c mod_put.c
> gcc -shared -o mod_put.so mod_put.o 
> $
> 
> Then copy it to the apache modules directory, and add it to the
> httpd.conf.
> 
> -Adam
> 
> 
> 
>   which mod and which instructions did you use?
> > 
> > i've got one on my ftp called, "mod_put-1.3" by  Copyright (c) 1995-1997 Lyonel 
>VINCENT
> > just have to follow the instructions on site.  somewhat outdated tho'
> > 
> > On Sun, 30 Jan 2000, you wrote:
> > > You can get mod_put and build it as a DSO.  I recently did this using
> > > the Apache supplied with Air.
> > >
> > > Any ideas on how to create a directory using http?
> > >
> > > -Adam
> > >
> > >
> > >
> > > Roger wrote:
> > > >
> > > > I'm curious as to "why" this has not been implemented into Apache yet?
> > > >
> > > > Think that patch was out in 97 or 98'?
> > > >
> > > > again, this is one of the main reasons people use linux, host httpd and w/ the
> > > > hassle to publish (w/ netscape) makes it somewhat a hinderence.
> > > >
> > > > Is there any work around (besides getting the "put" patch and recompiling
> > > > apache) that i don't know about?
> > > >
> > > > Also, still can't login to my "miny" server here "as root" by using ftp.  Have
> > > > although, been able to gain access "as a user & password" or anonymous..but not
> > > > root (incorrect password error....but it is correct!)
> > > >
> > > >  --
> > > >
> > > > ------------
> > > >
> > > > Sent from:
> > > >
> > > > Lattitude (deg):        32.7130
> > > > Longitude (deg):        -117.1530
> > > > Altitude (ft):          410.0
> > > > GMT to Local (hrs):     -8.0 (daylight savings enabled)
> > > >
> > > > ------------
> > > >
> > > > Created with Linux-Mandrake 7.0!
> > > >
> > > > http://www.linux-mandrake.com/
> > > >
> > > > Currently Beta Testing Mandrake Ver >7.0
> > --
> > 
> > ------------
> > 
> > Sent from:
> > 
> > Lattitude (deg):        32.7130
> > Longitude (deg):        -117.1530
> > Altitude (ft):          410.0
> > GMT to Local (hrs):     -8.0 (daylight savings enabled)
> > 
> > ------------
> > 
> > Created with Linux-Mandrake 7.0!
> > 
> > http://www.linux-mandrake.com/
> > 
> > Currently Beta Testing Mandrake Ver >7.0
-- 

------------

Sent from:

Lattitude (deg):        32.7130
Longitude (deg):        -117.1530
Altitude (ft):          410.0
GMT to Local (hrs):     -8.0 (daylight savings enabled)

------------

Created with Linux-Mandrake 7.0!

http://www.linux-mandrake.com/

Currently Beta Testing Mandrake Ver >7.0

Reply via email to