Bug 107107 - Proftpd mysql package fails with linker error when upgrading
Summary: Proftpd mysql package fails with linker error when upgrading
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: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-22 21:00 UTC by Johan Svensson
Modified: 2006-12-30 22:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Svensson 2006-12-22 21:00:27 UTC
Getting these errors when updating the proftpd-mysql port with portupgrade:

/usr/ports/ftp/proftpd-mysql/work/proftpd-1.3.1rc1/lib/libsupp.a(getopt.o)(.text+0x5c5): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
/usr/ports/ftp/proftpd-mysql/work/proftpd-1.3.1rc1/lib/libsupp.a(getopt.o)(.text+0x687): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
/usr/ports/ftp/proftpd-mysql/work/proftpd-1.3.1rc1/lib/libsupp.a(getopt.o)(.text+0x8b1): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
/usr/ports/ftp/proftpd-mysql/work/proftpd-1.3.1rc1/lib/libsupp.a(getopt.o)(.text+0xa3a): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
/usr/ports/ftp/proftpd-mysql/work/proftpd-1.3.1rc1/lib/libsupp.a(getopt.o)(.text+0xa99): In function `_getopt_internal':
: undefined reference to `libintl_gettext'
/usr/ports/ftp/proftpd-mysql/work/proftpd-1.3.1rc1/lib/libsupp.a(getopt.o)(.text+0xb04): more undefined references to `libintl_gettext' follow
gmake: *** [proftpd] Error 1
*** Error code 2

Stop in /usr/ports/ftp/proftpd-mysql.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.75918.53 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=proftpd-mysql-1.3.0_5 UPGRADE_PORT_VER=1.3.0_5 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
        ! ftp/proftpd-mysql (proftpd-mysql-1.3.0_5)     (linker error)

How-To-Repeat: To repeat the problem just run portupgrade -a, that's what I'm doing.
Comment 1 Remko Lodder freebsd_committer freebsd_triage 2006-12-22 21:05:52 UTC
Responsible Changed
From-To: freebsd-i386->freebsd-ports-bugs

Proftpd is a port, reassign it to the ports team.
Comment 2 Gabor Kovesdan freebsd_committer freebsd_triage 2006-12-26 18:16:38 UTC
State Changed
From-To: open->closed

Duplicate of ports/107122, where the maintainer already answered and contacted 
the developers about this issue. 


Comment 3 Gabor Kovesdan freebsd_committer freebsd_triage 2006-12-26 18:16:38 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gabor

Track.
Comment 4 michalw 2006-12-26 20:27:23 UTC
Use following patch:

--- lib/getopt.c        2002/02/28 19:30:01     1.3
+++ lib/getopt.c        2006/12/15 18:46:29     1.4
@@ -76,7 +76,7 @@
  # endif
  #endif

-#ifndef _
+#if defined(PR_USE_NLS) && !defined(_)
  /* This is for other GNU distributions with internationalized messages.
     When compiling libc, the _ macro is predefined.  */
  # ifdef HAVE_LIBINTL_H
@@ -85,6 +85,8 @@
  # else
  #  define _(msgid)     (msgid)
  # endif
+#else
+# define _(msgid)      (msgid)
  #endif

  /* This version of `getopt' appears to the caller like standard Unix 
`getopt'
Comment 5 Gabor Kovesdan freebsd_committer freebsd_triage 2006-12-26 21:17:23 UTC
Micha³ Wójcik schrieb:
>  Use following patch:
>  
>  --- lib/getopt.c        2002/02/28 19:30:01     1.3
>  +++ lib/getopt.c        2006/12/15 18:46:29     1.4
>  @@ -76,7 +76,7 @@
>    # endif
>    #endif
>  
>  -#ifndef _
>  +#if defined(PR_USE_NLS) && !defined(_)
>    /* This is for other GNU distributions with internationalized messages.
>       When compiling libc, the _ macro is predefined.  */
>    # ifdef HAVE_LIBINTL_H
>  @@ -85,6 +85,8 @@
>    # else
>    #  define _(msgid)     (msgid)
>    # endif
>  +#else
>  +# define _(msgid)      (msgid)
>    #endif
>  
>    /* This version of `getopt' appears to the caller like standard Unix 
>  `getopt'
>  
>   
This patch doesn't apply on the current version of proftpd from ports 
tree. How did you obtained/generated this patch?

Regards,
Gabor
Comment 6 Gabor Kovesdan freebsd_committer freebsd_triage 2006-12-27 12:44:55 UTC
State Changed
From-To: closed->open

It is reported (via private mail) to have been fixed in vendor's CVS repo: 
http://proftp.cvs.sourceforge.net/proftp/proftpd/lib/getopt.c?view=log 

Please keep CC'ing mailto:bug-followup@FreeBSD.org when writing a reply, 
otherwise the follow-up will not show up here in the audit trail of 
the PR.
Comment 7 Gabor Kovesdan freebsd_committer freebsd_triage 2006-12-27 12:52:10 UTC
Dear Maintainer of ftp/proftpd,

Michal states here, that this bug has been fixed in the proftpd CVS 
repo, but I could not apply his patch. Could you look at this issue, 
please and merge the changes for the port, so that we can add an extra 
patch that fixes this issue? Thanks for your work on maintaining this port.

Regards,
Gabor Kovesdan
Comment 8 Beech Rintoul 2006-12-27 16:51:22 UTC
On Wednesday 27 December 2006 03:52, Gabor Kovesdan wrote:
> Dear Maintainer of ftp/proftpd,
>
> Michal states here, that this bug has been fixed in the proftpd CVS
> repo, but I could not apply his patch. Could you look at this issue,
> please and merge the changes for the port, so that we can add an extra
> patch that fixes this issue? Thanks for your work on maintaining this port.
>
> Regards,
> Gabor Kovesdan


The linker problem has been solved, but I ran into another bug with mod_wrap2. 
I'm communicating with the developers and hopefully I can get this resolved 
today. The other patch is ready to be committed, But miwi is waiting for the 
latest fix. I don't see any point in committing the patch to fix the linker 
probs just to have the build fail on mod_wrap2. In short I'm on it and I'll 
let you know when the patch gets committed.

Beech (Maintainer)

-- 
---------------------------------------------------------------------------------------
Beech Rintoul - Sys. Administrator - beech@alaskaparadise.com
/"\   ASCII Ribbon Campaign  | Alaska Paradise Travel
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
---------------------------------------------------------------------------------------










Comment 9 Martin Wilke freebsd_committer freebsd_triage 2006-12-30 22:46:31 UTC
State Changed
From-To: open->closed

is solved with 107221 commit. Thanks!
Comment 10 Gabor Kovesdan freebsd_committer freebsd_triage 2006-12-30 22:55:55 UTC
Responsible Changed
From-To: gabor->miwi

Over to miwi for tracking.