RE: GDBM problem during make

"Alex Moen" <[email protected]>
Newsgroups gmane.mail.qpopper
Organization NDTC
Message-ID <[email protected]>
Tony,

Thanks for the reply!  I was beginning to wonder if anyone was on this list
anymore!!!  :)

> Additionally, here's how you can find them, and then see if 
> one of them is good
> 
> $ locate *include*ndbm.h
> /usr/include/gdbm/ndbm.h
> 
> $ grep dbm_pagfno /usr/include/gdbm/ndbm.h
> extern int       dbm_pagfno ();
> 
> So this is good. If the grep turns up nothing, then you have problems.
> 
> -Tony
> ----------------------------------------
> Anthony J. Biacco
> Senior Systems and Network Administrator
> 303-981-4955 

OK, so here's what I have found:

grep  dbm_pagfno `find / -name *ndbm.h`
/usr/include/ndbm.h:#define     dbm_pagfno(__db)        ((__db)->dbm_pagf)
/usr/local/include/ndbm.h:extern int     dbm_pagfno ();

(I'm using Solaris 10, so the locate command doesn't work... Also, this grep
was one command quicker.)

I have tried using both ndbm.h files.  I first moved the /usr/include/ndbm.h
to ndbm.h.old, then ran my configure and make.  Here's my error:

Undefined                       first referenced
 symbol                             in file
dbm_dirfno                          pop_bull.o
ld: fatal: Symbol referencing errors. No output written to popper
collect2: ld returned 1 exit status

Then, I moved the /usr/include/ndbm.h.old file back, and "olded" the
/usr/local/include/ndbm.h.  After destroying and untarring the qpopper.tar
file, and running configure and make again, here's my error:

Undefined                       first referenced
 symbol                             in file
dbm_dirfno                          pop_bull.o
ld: fatal: Symbol referencing errors. No output written to popper
collect2: ld returned 1 exit status

Seems to be the same no matter which file I used.  

ls -l `find / -name *ndbm.h`
-rw-r--r-- 1 root bin 3141 Jan 21  2005 /usr/include/ndbm.h
-rw-r--r-- 1 bin  bin 2003 May  4  2003 /usr/local/include/ndbm.h

The files are different, but both seem to act the same, or at least, result
in the same error.  Here's my configure:

./configure --enable-bulldb=/var/spool/bulls --enable-auto-delete
--enable-server-mode --enable-standalone --enable-log-facility=LOG_LOCAL5
--enable-specialauth  --with-pam --enable-shy
--enable-home-dir-mail=mail/.mail

I am compiling 4.0.9. I have used this exact same configure statement on
Solaris 8, with no problem, using 4.0.9.  I do have more information (in the
form of the config.log and such) if needed....

Thanks!

Alex



> 
> > -----Original Message-----
> > From: Alex Moen [mailto:[email protected]]
> > Sent: Thursday, November 09, 2006 3:58 PM
> > To: Subscribers of Qpopper
> > Subject: RE: GDBM problem during make
> > 
> > Anyone????  If more info is needed, I'd be happy to mail more.
> > 
> > I'd really like to get this going....
> > 
> > Alex
> > 
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: Alex Moen [mailto:[email protected]]
> > Sent: Thursday, November 02, 2006 11:18 AM
> > To: '[email protected]'
> > Subject: GDBM problem during make
> > 
> > 
> > Hi all,
> > 
> > Running into a problem compiling 4.0.9 on a Solaris 10 6-06
> > box, patched to
> > the latest 10_Recommended patchlevel.  Also have lots of 
> GNU software
> > already installed, for instance: autoconf 2.59, automake 1.9, 
> > bison 1.875,
> > flex 2.5, gcc 3.3.2, make 3.80, tcl 8.5, gdbm 1.83 (all from 
> > sunfreeware).
> > 
> > I compile using the following command:
> > 
> > ./configure  --enable-bulldb=/var/spool/bulls --enable-auto-delete 
> > --enable-server-mode --enable-standalone 
> > --enable-log-facility=LOG_LOCAL5 --enable-specialauth --with-pam 
> > --enable-shy --enable-home-dir-mail=mail/.mail
> > 
> > Compile completes with no warnings at all.  However, here's
> > the end of the
> > make output:
> > 
> > ---clip---
> > gcc   pop_dele.o pop_dropcopy.o pop_get_command.o 
> pop_get_subcommand.o
> > pop_init.o pop_last.o pop_list.o pop_log.o pop_lower.o
> > pop_msg.o pop_parse.o
> > pop_pass.o pop_quit.o pop_rset.o pop_send.o pop_stat.o 
> > pop_updt.o pop_user.o
> > pop_xtnd.o pop_xmit.o popper.o pop_bull.o xtnd_xlst.o 
> > pop_uidl.o mktemp.o
> > pop_rpop.o pop_apop.o md5.o pop_auth.o pop_pope.o 
> pop_extend.o scram.o
> > hmac.o base64.o pop_util.o get_sub_opt.o msg_ptr.o drac.o 
> pop_config.o
> > pop_tls.o pop_tls_openssl.o pop_tls_sslplus.o sslplus_utils.o main.o
> > pop_cache.o genpath.o  -o popper ../mmangle/libmangle.a \
> >         -I../common ../common/libcommon.a \
> >         -lnsl -lsocket -lresolv -lmail  -lgdbm -lnsl  
> > -lposix4 -lcrypt -ldl
> > -lpam  
> > Undefined                       first referenced
> >  symbol                             in file
> > dbm_dirfno                          pop_bull.o
> > ld: fatal: Symbol referencing errors. No output written to popper
> > collect2: ld returned 1 exit status
> > make[1]: *** [popper] Error 1
> > make[1]: Leaving directory `/usr/local/source/qpopper4.0.9/popper'
> > make: *** [popper_server] Error 2
> > 
> > What I have tried so far to no avail:
> > -Reinstalling GDBM
> > -Adding the following to Makefile:
> > 	DBM_LIBS        =       -L/usr/local/lib -lgdbm
> > 	LIBS            =       ${NETWORK_LIBS} 
> > ${KERBEROS_LIBS} ${DBM_LIBS}
> > 
> > -Grepping the net for more help
> > 
> > Not sure what I'm missing here.  I have already been able to
> > compile popper
> > without bulletin support, but I really need the bulletins.
> > 
> > I've seen this discussed all over the place, but can't find
> > any resolutions
> > to any problems.
> > 
> > Anyone have any ideas???
> > 
> > Thanks!
> > 
> > Alex
> > 
> > 
> > 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.