[Info] error in gettext compilation

Hello,

I just used csup to install ports. And I tried to compile gettext. But I get an error about an undefined symbol "old_res_ptr" at line 178.

Just a few lines before that, the declaration is wrong. It says "old_rec_ptr" instead of "old_res_ptr". Changing this line fixes the problem.

Not sure where to report that, so I'm posting it here since it may help someone somewhere.
 
Not sure where does old_rec_ptr come from.
Code:
> grep -r old_rec_ptr gettext-0.17/ | wc -l
       0
> grep -r old_res_ptr gettext-0.17/ | wc -l
      16
> grep -r old_rec_ptr /usr/ports/devel/gettext/files/ | wc -l
       0

Maybe you have some stale patches in ports/devel/gettext/files/?
 
My FreeBSD 8rc1 has just been installed, and I ran "csup" for the first time ever today. I'd say that I have all the latest files and patches. The error was in "localcharset.c". I cannot check where the file was right now, but I will later
 
Code:
# cd /usr/ports/devel/gettext
# make distclean
===>  Cleaning for gettext-0.17_1
===>  Deleting distfiles for gettext-0.17_1
# make fetch extract
=> gettext-0.17.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from ftp://ftp.mirrorservice.org/sites/ftp.gnu.org/gnu/gettext/.
gettext-0.17.tar.gz                           100% of   11 MB  701 kBps 00m00s
===>  Extracting for gettext-0.17_1
=> MD5 Checksum OK for gettext-0.17.tar.gz.
=> SHA256 Checksum OK for gettext-0.17.tar.gz.
# grep -rli old_[B]rec[/B]_ptr *
# grep -rli old_[B]res[/B]_ptr *
work/gettext-0.17/gettext-runtime/intl/localcharset.c
work/gettext-0.17/gettext-runtime/gnulib-lib/localcharset.c
work/gettext-0.17/gettext-tools/libgettextpo/localcharset.c
work/gettext-0.17/gettext-tools/gnulib-lib/localcharset.c
 
This is madness. The file I had to fix was in :
work/gettext-0.17/gettext-runtime/intl/localcharset.c

I just clean-recompiled it and got no error this time. Corrupted mirror ?

Anyways, thanks for the replies.
 
No, a corrupted mirror would have had SHA256 and MD5 barking at you .. Are/Were the rest of your ports up to date, or did you miss some steps in /usr/ports/UPDATING along the way? Some lower-level tools like libtool can produce very weird errors.
 
After installing freebsd, the first thing I did was installing ports with this command:

Code:
csup -L 2 -h cvsup.FreeBSD.org /usr/share/examples/cvsup/ports-supfile
I didn't use the update command.

I then cd-ed into "ports/graphics/sage/" and entered the "make" command. When it came to gettext, the compilation stopped with the mentioned error. It was definitely a compiler error (undefined symbol blabla). I have no idea how I ended up with a "corrupted" file.

The cpu is a ppc, but I doubt this is the source of the error.
 
Back
Top