vm-pop3 on Solaris

From: Andreas Hoeschler (ahoesch@smartsoft.de)
Date: Thu Aug 12 2004 - 09:38:24 EDT


Hello managers,

I am trying to build vm-pop3d on Solaris 8. I get (complete output
appended to this email).

...
Undefined first referenced
  symbol in file
socket vm-pop3d.o
getpeername vm-pop3d.o
getprotobyname vm-pop3d.o
gethostbyname vm-pop3d.o
accept vm-pop3d.o
bind vm-pop3d.o
inet_ntoa vm-pop3d.o
listen vm-pop3d.o
ld: fatal: Symbol referencing errors. No output written to vm-pop3d
collect2: ld returned 1 exit status
make: *** [vm-pop3d] Error 1

Any idean how to fix this? Which library contains these symbols?

Thanks,

   Andreas

BTW: I am currently using postfix and ipop3d (a bunch of virtual
domains). I would like to allow users to set an autoresponder for their
mail accounts. How should I do that? I am currently considering to use
tequila which I need vm-pop3d for.

************************************************************************
*********************************************************
bash-2.03# ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... ./install-sh -c
checking whether ln -s works... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for paths.h... no
checking for sys/file.h... yes
checking for sys/time.h... yes
checking for syslog.h... yes
checking for unistd.h... yes
checking for shadow.h... yes
checking for security/pam_appl.h... yes
checking for main in -lcrypt... yes
checking for working const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for uid_t in sys/types.h... yes
checking for working alloca.h... yes
checking for alloca... yes
checking return type of signal handlers... void
checking for gethostname... yes
checking for select... yes
checking for socket... no
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
checking for getopt_long... no
Using included getopt_long
checking for dlopen in -ldl... yes
checking for pam_authenticate in -lpam... yes
PAM support enabled
virtual feature is enabled
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
bash-2.03#
bash-2.03# make
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi getopt.c
getopt.c: In function `_getopt_internal':
getopt.c:383: warning: implicit declaration of function `strcmp'
getopt.c:444: warning: implicit declaration of function `strncmp'
getopt.c:445: warning: implicit declaration of function `strlen'
getopt.c:436: warning: `indfound' might be used uninitialized in this
function
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi getopt1.c
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi apop.c
In file included from apop.c:21:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
apop.c: In function `pop3_apop':
apop.c:127: warning: implicit declaration of function `strdup'
apop.c:127: warning: assignment makes pointer from integer without a
cast
apop.c:134: warning: assignment makes pointer from integer without a
cast
apop.c:189: warning: assignment makes pointer from integer without a
cast
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi auth.c
In file included from auth.c:21:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi capa.c
In file included from capa.c:11:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi dele.c
In file included from dele.c:21:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi extra.c
In file included from extra.c:21:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
extra.c: In function `pop3_lock':
extra.c:183: warning: implicit declaration of function `fileno'
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi vm-pop3d.c
In file included from vm-pop3d.c:21:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
vm-pop3d.c: In function `main':
vm-pop3d.c:135: warning: implicit declaration of function `snprintf'
vm-pop3d.c:153: warning: int format, gid_t arg (arg 4)
vm-pop3d.c:206: warning: implicit declaration of function `fileno'
vm-pop3d.c: In function `pop3_mainloop':
vm-pop3d.c:260: warning: implicit declaration of function `fdopen'
vm-pop3d.c:260: warning: assignment makes pointer from integer without
a cast
vm-pop3d.c:284: warning: implicit declaration of function `strdup'
vm-pop3d.c:284: warning: assignment makes pointer from integer without
a cast
vm-pop3d.c:325: warning: implicit declaration of function `strncasecmp'
vm-pop3d.c:337: warning: assignment makes pointer from integer without
a cast
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi list.c
In file included from list.c:20:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi md5.c
md5.c: In function `md5_finish_ctx':
md5.c:117: warning: implicit declaration of function `memcpy'
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi noop.c
In file included from noop.c:21:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi quit.c
In file included from quit.c:21:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
quit.c: In function `pop3_quit':
quit.c:52: warning: implicit declaration of function `fileno'
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi retr.c
In file included from retr.c:21:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi rset.c
In file included from rset.c:21:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi stat.c
In file included from stat.c:21:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi top.c
In file included from top.c:21:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi uidl.c
In file included from uidl.c:8:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
uidl.c: In function `uidl':
uidl.c:36: warning: implicit declaration of function `strncasecmp'
uidl.c:63: warning: implicit declaration of function `snprintf'
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi user.c
In file included from user.c:21:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
user.c: In function `PAM_vmpop3d_conv':
user.c:44: warning: implicit declaration of function `strdup'
user.c:44: warning: assignment makes pointer from integer without a cast
user.c:49: warning: assignment makes pointer from integer without a cast
user.c: At top level:
user.c:68: warning: initialization from incompatible pointer type
user.c: In function `pop3_user':
user.c:123: warning: implicit declaration of function `strcasecmp'
user.c:154: warning: implicit declaration of function `crypt'
user.c:154: warning: passing arg 2 of `strcmp' makes pointer from
integer without a cast
user.c:263: warning: assignment makes pointer from integer without a
cast
user.c:283: warning: assignment makes pointer from integer without a
cast
gcc -c -DHAVE_CONFIG_H -g -O3 -Wall -pedantic -ansi virtual.c
In file included from virtual.c:4:
vm-pop3d.h:81:1: warning: "VIRTUAL_UID" redefined
vm-pop3d.h:21:1: warning: this is the location of the previous
definition
virtual.c: In function `getvirtualpwnam':
virtual.c:40: warning: implicit declaration of function `snprintf'
gcc -o vm-pop3d getopt.o getopt1.o apop.o auth.o capa.o dele.o extra.o
vm-pop3d.o list.o md5.o noop.o quit.o retr.o rset.o stat.o top.o uidl.o
user.o virtual.o -lpam -lcrypt -ldl
Undefined first referenced
  symbol in file
socket vm-pop3d.o
getpeername vm-pop3d.o
getprotobyname vm-pop3d.o
gethostbyname vm-pop3d.o
accept vm-pop3d.o
bind vm-pop3d.o
inet_ntoa vm-pop3d.o
listen vm-pop3d.o
ld: fatal: Symbol referencing errors. No output written to vm-pop3d
collect2: ld returned 1 exit status
make: *** [vm-pop3d] Error 1
bash-2.03#
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:16 EDT