Bug 118117 - mail/qmail broken on amd64 -- fixed
Summary: mail/qmail broken on amd64 -- fixed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Renato Botelho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-19 08:40 UTC by areilly
Modified: 2007-12-26 16:50 UTC (History)
0 users

See Also:


Attachments
file.diff (1.64 KB, patch)
2007-11-19 08:40 UTC, areilly
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description areilly 2007-11-19 08:40:00 UTC
	qmail built from ports (both plain qmail and qmail-tls)
	died on startup with log message:
	alert: oh no! lost spawn connection! dying...

	Investigation showed that qmail-lspawn was dumping core
	in /var/qmail/queue/mess.  Tweaked conf-cc and conf-load
	to not over-optimize or strip, and got a core with debug
	symbols intact.  Found that first access to d[0] was
	segfaulting.  d was not zero, but didn't look like a
	pointer either.  Found that alloc() defn not in scope,
	and on amd64 the assumed int is *not* a useful
	substitute for a char*.

Fix: Applied the following changes after make configure.
	Mostly just brings alloc() defn in scope in spawn.c, but
	also does the non-strip compile and avoids some
	complaints about malloc() not matching system def.
	There are clearly other compile warnings that could be
	bugs, but it seems to be working again, at least...

How-To-Repeat: 	Build qmail from ports on a 64-bit system.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-11-19 10:50:31 UTC
Responsible Changed
From-To: freebsd-ports-bugs->garga

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-12-26 16:43:59 UTC
garga       2007-12-26 16:43:55 UTC

  FreeBSD ports repository

  Modified files:
    mail/qmail           Makefile pkg-plist 
    mail/qmail-mysql     Makefile 
    mail/qmail-spamcontrol Makefile 
    mail/qmail-tls       Makefile 
  Added files:
    mail/qmail/files     extra-patch-amd64 qmail-smtpd.rcNG 
  Log:
  - Fix a segfault on amd64 (except on qmail-spamcontrol and qmail-ldap) [1]
  - Add an rcNG startup example file to QMAIL_PREFIX/boot [2]
  - Bump PORTREVISION due to rcNG add (except for qmail-ldap)
  - Fix make certificate to add ciphers file to QMAIL_PREFIX/control [3]
  
  PR:             ports/118117 [1], ports/117422 [2], ports/118198 [3]
  Submitted by:   Andrew Reilly <areilly@bigpond.net.au> [1] [3]
                  Nick@van-laarhoven.org [2]
  
  Revision  Changes    Path
  1.20      +1 -1      ports/mail/qmail-mysql/Makefile
  1.23      +1 -1      ports/mail/qmail-spamcontrol/Makefile
  1.22      +1 -1      ports/mail/qmail-tls/Makefile
  1.126     +10 -1     ports/mail/qmail/Makefile
  1.1       +20 -0     ports/mail/qmail/files/extra-patch-amd64 (new)
  1.1       +52 -0     ports/mail/qmail/files/qmail-smtpd.rcNG (new)
  1.17      +2 -1      ports/mail/qmail/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Renato Botelho freebsd_committer freebsd_triage 2007-12-26 16:44:27 UTC
State Changed
From-To: open->closed

Committed. Thanks!