Compile SMTP-PROXY -1.1.3 with gcc 2.95.3

Compile SMTP-PROXY -1.1.3 with gcc 2.95.3

Post by Akim Ziad » Wed, 22 May 2002 19:25:54



Hello,
I try to compile Smtp-proxy 1.1.3 on Solaris 8 then i get the following
messages:
********************************************************
# /usr/ccs/bin/make
gcc -ggdb -Wall  -c  main.c
gcc -ggdb -Wall  -c  smtp.c
smtp.c: In function `proxy_request':
smtp.c:446: warning: implicit declaration of function `getdomainname'
gcc -ggdb -Wall  -c  ip-lib.c
ip-lib.c:49: warning: missing braces around initializer
ip-lib.c:49: warning: (near initialization for `_error[0]')
ip-lib.c: In function `get_client_info':
ip-lib.c:161: warning: implicit declaration of function `inet_ntoa'
gcc -ggdb -Wall  -c  lib.c
gcc -o smtp.proxy main.o smtp.o ip-lib.o lib.o
Undefined                       first referenced
 symbol                             in file
socket                              ip-lib.o
getpeername                         ip-lib.o
gethostbyname                       ip-lib.o
getdomainname                       smtp.o
gethostbyaddr                       ip-lib.o
inet_ntoa                           ip-lib.o
connect                             ip-lib.o
ld: fatal: Symbol referencing errors. No output written to smtp.proxy
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `smtp.proxy'

********************************************************
This the makefile:
********************************************************
# more makefile

CC =            gcc
CFLAGS =        -ggdb -Wall

TAR =           smtpproxy-1.1.3
DIR =           smtpproxy-1.1.3

SMTPPROXY =     main.o smtp.o ip-lib.o lib.o

TARGETS =       smtp.proxy

all:            $(TARGETS)
        -ctags *.[ch]

install:        all
        strip $(TARGETS)
        cp $(TARGETS) /usr/local/sbin
        cp *.1 /usr/local/man/man1

smtp.proxy:     $(SMTPPROXY)

tar:            clean
        cd ..; tar cvf $(TAR).tar $(DIR); gzip $(TAR).tar
        mv ../$(TAR).tar.gz .

clean:
        -rm -f *.o cut out $(TARGETS) $(TAR).tar.gz

*******************************************

Any idea please thanks a lot

 
 
 

Compile SMTP-PROXY -1.1.3 with gcc 2.95.3

Post by Martin Pau » Wed, 22 May 2002 21:41:09



> I try to compile Smtp-proxy 1.1.3 on Solaris 8 then i get the following
> messages:

> ...

> Undefined                       first referenced
>  symbol                             in file
> socket                              ip-lib.o

Add the socket and nsl libraries, by replacing:

with


in the makefile.

mp.
--
                         Martin Paul | Systems Administrator

Liechtensteinstrasse 22, A-1090 Wien | Tel: 01 4277 38803
        http://www.par.univie.ac.at/ | Fax: 01 4277 9388

 
 
 

Compile SMTP-PROXY -1.1.3 with gcc 2.95.3

Post by Akim Ziad » Wed, 22 May 2002 21:54:16


Thanks a lot
It works
Akim



> > I try to compile Smtp-proxy 1.1.3 on Solaris 8 then i get the following
> > messages:

> > ...

> > Undefined                       first referenced
> >  symbol                             in file
> > socket                              ip-lib.o

> Add the socket and nsl libraries, by replacing:


> with


> in the makefile.

> mp.
> --
>                          Martin Paul | Systems Administrator

> Liechtensteinstrasse 22, A-1090 Wien | Tel: 01 4277 38803
>         http://www.par.univie.ac.at/ | Fax: 01 4277 9388

 
 
 

Compile SMTP-PROXY -1.1.3 with gcc 2.95.3

Post by hburd » Thu, 23 May 2002 17:27:39


hi;

The socket stuff is missing. The link line should include -lsocket -lnsl

hb


> Hello,
> I try to compile Smtp-proxy 1.1.3 on Solaris 8 then i get the following
> messages:
> ********************************************************
> # /usr/ccs/bin/make
> gcc -ggdb -Wall  -c  main.c
> gcc -ggdb -Wall  -c  smtp.c
> smtp.c: In function `proxy_request':
> smtp.c:446: warning: implicit declaration of function `getdomainname'
> gcc -ggdb -Wall  -c  ip-lib.c
> ip-lib.c:49: warning: missing braces around initializer
> ip-lib.c:49: warning: (near initialization for `_error[0]')
> ip-lib.c: In function `get_client_info':
> ip-lib.c:161: warning: implicit declaration of function `inet_ntoa'
> gcc -ggdb -Wall  -c  lib.c
> gcc -o smtp.proxy main.o smtp.o ip-lib.o lib.o
> Undefined                       first referenced
>  symbol                             in file
> socket                              ip-lib.o
> getpeername                         ip-lib.o
> gethostbyname                       ip-lib.o
> getdomainname                       smtp.o
> gethostbyaddr                       ip-lib.o
> inet_ntoa                           ip-lib.o
> connect                             ip-lib.o
> ld: fatal: Symbol referencing errors. No output written to smtp.proxy
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `smtp.proxy'

> ********************************************************
> This the makefile:
> ********************************************************
> # more makefile

> CC =            gcc
> CFLAGS =        -ggdb -Wall

> TAR =           smtpproxy-1.1.3
> DIR =           smtpproxy-1.1.3

> SMTPPROXY =     main.o smtp.o ip-lib.o lib.o

> TARGETS =       smtp.proxy

> all:            $(TARGETS)
>         -ctags *.[ch]

> install:        all
>         strip $(TARGETS)
>         cp $(TARGETS) /usr/local/sbin
>         cp *.1 /usr/local/man/man1

> smtp.proxy:     $(SMTPPROXY)

> tar:            clean
>         cd ..; tar cvf $(TAR).tar $(DIR); gzip $(TAR).tar
>         mv ../$(TAR).tar.gz .

> clean:
>         -rm -f *.o cut out $(TARGETS) $(TAR).tar.gz

> *******************************************

> Any idea please thanks a lot

 
 
 

1. Need Help Compiling gtk+-1.1.9

I am trying to compile gtk+ to support a program I wanted to try out.
Unfortunately, I get the following response when I run "make":

Making all in po
make[2]:  Entering directory `home/rick/gtk+1.1.9/po`
make[2]:   *** No rule to make target `deNONE`, needed by `all-yes`.
 Stop
make[2]:   Leaving directory `home/rick/gtk+1.1.9/po`

At that point, it gives up.

I have downloaded and compiled glib using the default setings.  I used
"./configure --with-glib=../glib-1.1.9.  Please let me know if I need to
change one of the settings in configure, compile a different version of
gtk, comment out the catalogs in the Makefile, or try something else.

Thanks,
Rick Macchio

2. Help: GENIUS LAN GE2500+ PCI Ethercard

3. gcc 2.95.1 does not compile KDE 1.1.2

4. pparallel port and printing

5. Compile GCC 2.95.3 in RedHat 7.0 failed !!

6. TCP/IP Sybase problem

7. gcc 2.95.2 and compiling apache

8. Hidden form elements

9. Will mplayer compile with gcc-2.95?

10. Help please:gcc 2.95.2 and libstdc++ 2.90.8 won't compile

11. Help Compiling GCC 2.95.1 (Please!! )

12. cannot compile Apache on HPUX 11 using gcc 2.95.3 and binutils 2.11

13. Problems with gcc 2.95.3 when compiling kernel module