Re: alpine fails linking because of undefined reference to `RAND_egd'

2014-06-19 Thread Stuart Henderson
On 2014/06/19 10:02, Sebastian Reitenbach wrote:
 
 On Wednesday, June 18, 2014 22:02 CEST, Stuart Henderson st...@openbsd.org 
 wrote:
 
  On 2014/06/18 21:54, Sebastian Reitenbach wrote:
  
   On Wednesday, June 18, 2014 20:23 CEST, Stuart Henderson 
   st...@openbsd.org wrote:
  
On 2014/06/18 18:54, Sebastian Reitenbach wrote:
 Hi,

 not sure if this is known already, but this happens to me on i386:
   
Check you don't have old libs around, especially make sure you've 
followed
the kerberos removal on current.html.
  
I did not upgrade, it happens on a fresh clean install.
 
 as it turned out, i have DEBUG= defined in my /etc/mk.conf, which is 
 triggering
 the build failure.
 
 attached patch allows building alpine with DEBUG in mk.conf.
 
 Don't know if this is the most clever way, but looking at how other ports
 handle RAND_egd they just removed it.
 Also I'm unsure which of the many SUBPACKAGE to bump REVISION ;)

It seems rather strange that setting DEBUG should trigger building code
that uses RAND_egd ..



Re: alpine fails linking because of undefined reference to `RAND_egd'

2014-06-19 Thread Sebastian Reitenbach
 
On Thursday, June 19, 2014 10:28 CEST, Stuart Henderson st...@openbsd.org 
wrote: 
 
 On 2014/06/19 10:02, Sebastian Reitenbach wrote:
  
  On Wednesday, June 18, 2014 22:02 CEST, Stuart Henderson 
  st...@openbsd.org wrote:
  
   On 2014/06/18 21:54, Sebastian Reitenbach wrote:
   
On Wednesday, June 18, 2014 20:23 CEST, Stuart Henderson 
st...@openbsd.org wrote:
   
 On 2014/06/18 18:54, Sebastian Reitenbach wrote:
  Hi,
 
  not sure if this is known already, but this happens to me on i386:

 Check you don't have old libs around, especially make sure you've 
 followed
 the kerberos removal on current.html.
   
 I did not upgrade, it happens on a fresh clean install.
  
  as it turned out, i have DEBUG= defined in my /etc/mk.conf, which is 
  triggering
  the build failure.
  
  attached patch allows building alpine with DEBUG in mk.conf.
  
  Don't know if this is the most clever way, but looking at how other ports
  handle RAND_egd they just removed it.
  Also I'm unsure which of the many SUBPACKAGE to bump REVISION ;)
 
 It seems rather strange that setting DEBUG should trigger building code
 that uses RAND_egd ..
 
it indeed is, but I haven't seen any obvious #ifdef around it. There are some
#ifdefs in that file, but nothing that immediately seems to relate to DEBUG

Sebastian



alpine fails linking because of undefined reference to `RAND_egd'

2014-06-18 Thread Sebastian Reitenbach
Hi,

not sure if this is known already, but this happens to me on i386:

OpenBSD 5.5-current (GENERIC) #177: Sun Jun 15 10:11:48 MDT 2014
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS (AuthenticAMD 586-class) 500 
MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
real mem  = 536375296 (511MB)
avail mem = 515166208 (491MB)



/usr/local/bin/libtool --tag=CC--mode=link cc -pthread -O2 -pipe -g -O0 
`cat ../c-client/LDFLAGS`  -L/usr/lib -L/usr/local/lib -o alpine addrbook.o 
adrbkcmd.o  after.o alpine.o arg.o busy.o  colorconf.o confscroll.o context.o  
dispfilt.o flagmaint.o folder.o  help.o imap.o init.o kblock.o  keymenu.o 
ldapconf.o listsel.o  mailcmd.o mailindx.o mailpart.o  mailview.o newuser.o 
pattern.o  pipe.o print.o radio.o  remote.o reply.o roleconf.o  send.o setup.o 
signal.o  status.o takeaddr.o titlebar.o  smime.o newmail.o date.o 
../pico/libpico.a ../pico/osdep/libpicoosd.a  ../pith/libpith.a 
../pith/osdep/libpithosd.a   ../pith/charconv/libpithcc.a  osdep/libpineosd.a 
../c-client/c-client.a -L/usr/local/lib -lintl -L/usr/local/lib -liconv -lc 
-R/usr/local/lib -lc -L/usr/lib -lssl -lcrypto  -L/usr/local/lib -lintl 
-L/usr/local/lib -liconv -lc -R/usr/local/lib -lncurses -lssl -lcrypto
libtool: link: cc -pthread -O2 -pipe -g -O0 -o alpine addrbook.o adrbkcmd.o 
after.o alpine.o arg.o busy.o colorconf.o confscroll.o context.o dispfilt.o 
flagmaint.o folder.o help.o imap.o init.o kblock.o keymenu.o ldapconf.o 
listsel.o mailcmd.o mailindx.o mailpart.o mailview.o newuser.o pattern.o pipe.o 
print.o radio.o remote.o reply.o roleconf.o send.o setup.o signal.o status.o 
takeaddr.o titlebar.o smime.o newmail.o date.o  -L/usr/lib -L/usr/local/lib 
../pico/libpico.a ../pico/osdep/libpicoosd.a ../pith/libpith.a 
../pith/osdep/libpithosd.a ../pith/charconv/libpithcc.a osdep/libpineosd.a 
../c-client/c-client.a -lintl -lc -liconv -lncurses -lssl -lcrypto -pthread 
-Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/local/lib
../c-client/c-client.a(osdep.o)(.text+0xe0ee): In function `ssl_onceonlyinit':
/home/ports/pobj/alpine-2.11/alpine-2.11/imap/c-client/osdep.c:241: warning: 
tmpnam() possibly used unsafely; consider using mkstemp()
help.o(.text+0xd37): In function `help_processor':
/home/ports/pobj/alpine-2.11/alpine-2.11/alpine/help.c:417: warning: strcpy() 
is almost always misused, please use strlcpy()
alpine.o(.text+0x225): In function `main':
/home/ports/pobj/alpine-2.11/alpine-2.11/alpine/alpine.c:206: warning: 
srandom() seed choices are invariably poor
busy.o(.text+0x48f): In function `busy_cue':
/home/ports/pobj/alpine-2.11/alpine-2.11/alpine/busy.c:270: warning: random() 
isn't random; consider using arc4random()
../c-client/c-client.a(osdep.o)(.text+0x5455): In function `env_init':
/home/ports/pobj/alpine-2.11/alpine-2.11/imap/c-client/env_unix.c:867: warning: 
strcat() is almost always misused, please use strlcat()
../pith/libpith.a(conf.o)(.text+0xba8a): In function `write_pinerc':
/home/ports/pobj/alpine-2.11/alpine-2.11/pith/conf.c:5892: warning: sprintf() 
is often misused, please use snprintf()
../pith/libpith.a(smime.o)(.text+0x119): In function `app_RAND_load_file':
/home/ports/pobj/alpine-2.11/alpine-2.11/pith/smime.c:130: undefined reference 
to `RAND_egd'
collect2: ld returned 1 exit status
*** Error 1 in alpine (Makefile:417 'alpine')
*** Error 1 in alpine (Makefile:530 'all-recursive')
*** Error 1 in alpine (Makefile:338 'all')
*** Error 1 in . (Makefile:448 'all-recursive'



Re: alpine fails linking because of undefined reference to `RAND_egd'

2014-06-18 Thread Stuart Henderson
On 2014/06/18 18:54, Sebastian Reitenbach wrote:
 Hi,
 
 not sure if this is known already, but this happens to me on i386:

Check you don't have old libs around, especially make sure you've followed
the kerberos removal on current.html.



Re: alpine fails linking because of undefined reference to `RAND_egd'

2014-06-18 Thread Sebastian Reitenbach
 
On Wednesday, June 18, 2014 20:23 CEST, Stuart Henderson st...@openbsd.org 
wrote: 
 
 On 2014/06/18 18:54, Sebastian Reitenbach wrote:
  Hi,
  
  not sure if this is known already, but this happens to me on i386:
 
 Check you don't have old libs around, especially make sure you've followed
 the kerberos removal on current.html.
 
 I did not upgrade, it happens on a fresh clean install.

cheers,
Sebastian