Bug 86010

Summary: Build Problem of mail/normalizemime with FreeBSD 4.11
Product: Ports & Packages Reporter: Nicolas Rachinsky <nr>
Component: Individual Port(s)Assignee: Mario Sergio Fujikawa Ferreira <lioux>
Status: Closed FIXED    
Severity: Affects Only Me CC: lioux
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch-normalizemime.cc none

Description Nicolas Rachinsky 2005-09-12 11:20:07 UTC
mail/normalizemime does not build with FreeBSD 4.11.

> make package clean
===>  Extracting for normalizemime-1.16.20050628
=> Checksum OK for normalizemime.cc.
===>  Patching for normalizemime-1.16.20050628
===>  Applying FreeBSD patches for normalizemime-1.16.20050628
===>   normalizemime-1.16.20050628 depends on shared library: iconv.3 - found
===>  Configuring for normalizemime-1.16.20050628
===>  Building for normalizemime-1.16.20050628
In file included from normalizemime.cc:61:
/usr/include/regex.h:46: syntax error before `;'
/usr/include/regex.h:56: syntax error before `;'
normalizemime.cc: In method `bool regex::exec(const string &, vector<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0>
+>,allocator<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > > > &) const':
normalizemime.cc:166: `struct regmatch_t' has no member named `rm_so'
normalizemime.cc:166: `struct regmatch_t' has no member named `rm_eo'
normalizemime.cc:167: `struct regmatch_t' has no member named `rm_so'
normalizemime.cc:168: `struct regmatch_t' has no member named `rm_so'
normalizemime.cc:168: `struct regmatch_t' has no member named `rm_eo'
normalizemime.cc:168: `struct regmatch_t' has no member named `rm_so'
normalizemime.cc:169: `struct regmatch_t' has no member named `rm_eo'
normalizemime.cc:173: `struct regmatch_t' has no member named `rm_so'
normalizemime.cc:177: `struct regmatch_t' has no member named `rm_eo'
normalizemime.cc:182: `struct regmatch_t' has no member named `rm_so'
normalizemime.cc:182: `struct regmatch_t' has no member named `rm_eo'
normalizemime.cc:182: `struct regmatch_t' has no member named `rm_so'
*** Error code 1

Stop in /usr/exported/ports/mail/normalizemime.

Fix: 

It builds fine with USE_GCC=3.4. And it seems to work.
How-To-Repeat: 
Take a FreeBSD 4.11 System
cd /usr/ports/mail/normalizemime
make build
Comment 1 Jean-Yves Lefort freebsd_committer freebsd_triage 2005-09-12 17:37:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lioux

Over to maintainer.
Comment 2 Mario Sergio Fujikawa Ferreira freebsd_committer freebsd_triage 2005-09-13 04:10:12 UTC
	Could you try using the attached patch?
Just move it over the one inside the normalize port.

$ mv patch-normalizemime.cc /usr/ports/mail/normalizemime/files
$ make build

	Let me know if it works.

	Regards,

-- 
Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
feature, n: a documented bug | bug, n: an undocumented feature
Comment 3 Nicolas Rachinsky 2005-09-13 08:34:33 UTC
* Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> [2005-09-13 00:10 -0300]:
> 	Could you try using the attached patch?

It builds with the attached patch. But your previous commit to
Makefile (1.2) is enough to build it. I missed the commit, sorry.

I think you can just close this PR.

Sorry again,
Nicolas (updating his Freshports watchlist now)
Comment 4 Mario Sergio Fujikawa Ferreira freebsd_committer freebsd_triage 2005-09-13 17:54:13 UTC
State Changed
From-To: open->closed

Port had already been fixed, thanks!