Sample Linux Server - Error

Hi,

I am a graduate student. I have downloaded one of Sample Proxy Server code from internet.
I have downloaded the code from the following link:
Simple HTTP Proxy Server Implementation, based on wcol - Projects - Michael Vorburger’s Private Homepage

It is showing me the errors while I am trying to run it. Can you help me to come out of it. Or tel me how to use this code.

I want to sompile it using gcc with command
gcc -c main.c (it shows no errors)
gcc -o main main.c ( it shows the following errors)

/tmp/cco5g63x.o: In function `Reception':
main.c:(.text+0x165): undefined reference to `Trace'
main.c:(.text+0x173): undefined reference to `Acceptable'
main.c:(.text+0x1bb): undefined reference to `Trace'
main.c:(.text+0x23f): undefined reference to `Trace'
main.c:(.text+0x2ab): undefined reference to `Trace'
main.c:(.text+0x394): undefined reference to `NormalizeURL'
.
.
.
.
main.c:(.text+0xc86): undefined reference to `Log'
main.c:(.text+0xc94): undefined reference to `Read_Convtable'
main.c:(.text+0xca2): undefined reference to `Read_Accepttable'
collect2: ld returned 1 exit status

Please tel me how to run this code/server. I 'll be realy realy very thankful to you.

[QUOTE=waheed2008]
Hi,

I am a graduate student. I have downloaded one of Sample Proxy Server
code from internet.
I have downloaded the code from the following link:
‘Simple HTTP Proxy Server Implementation, based on wcol - Projects -
Michael Vorburger’s Private Homepage’
(http://vorburger.ch/projects/proxy/index.html)

It is showing me the errors while I am trying to run it. Can you help
me to come out of it. Or tel me how to use this code.

I want to sompile it using gcc with command
gcc -c main.c (it shows no errors)
gcc -o main main.c ( it shows the following errors)

Code:

/tmp/cco5g63x.o: In function Reception': main.c:(.text+0x165): undefined reference to Trace’
main.c:(.text+0x173): undefined reference to Acceptable' main.c:(.text+0x1bb): undefined reference to Trace’
main.c:(.text+0x23f): undefined reference to Trace' main.c:(.text+0x2ab): undefined reference to Trace’
main.c:(.text+0x394): undefined reference to `NormalizeURL’

Hi malcolmlewis,
I have not got your full message. Please send it again.
Thanks

Hi
That link/page was last updated over 10 years ago and links to code
“posting in a newsgroup pointed the author of these lines to wcol-A
[EXTERNAL], a source from 1994.”

I’m thinking gcc has moved on a bit from then and you would need to fix
the code to be compatible with your compiler version.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
up 13 days 16:22, 2 users, load average: 1.52, 1.91, 1.53
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

It has a Makefile, you need to use the Makefile not just compile one file. Try just typing “make” from the folder and see what happens.