bugfindutils - Bugs: bug #11710, 4.2.13 Solaris build failure --...


bug #11710: 4.2.13 Solaris build failure -- regex.c needs to be compiled

Submitted by:  None
Submitted on:  Sun 23 Jan 2005 07:31:40 PM UTC  
Category:  None Severity:  3 - Normal
Item Group:  Compilation Failure Status:  Fixed
Privacy:  Public Assigned to:  James Youngman <jay>
Originator Name:  Martin Buchholz Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  4.2.13
Fixed Release:  4.2.14

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Thu 04 Jan 2007 12:20:06 PM UTC, comment #8: 
James Youngman <jay>
Project AdministratorIn charge of this item.
Wed 03 Jan 2007 09:38:58 PM UTC, comment #7: 

The bug id you posted does not correlate to a similar problem. Could you please recheck the id?

Wed 03 Jan 2007 09:15:41 PM UTC, comment #6: 

The bug was closed because it was fixed.  The bug has occurred for a second time.  A new bug -- bug #17961 -- was logged for the new occurrence of the problem.

James Youngman <jay>
Project AdministratorIn charge of this item.
Wed 03 Jan 2007 08:33:33 PM UTC, comment #5: 

Right.  4.2.29 doesn't compile the regex stuff even when the test correctly fails.  So why is this bug closed?  Is there a new one open?  I've got 4.2.25 installed, so it works OK.

Other (yucky) option is to use libgtksourceview if it exists (Sun provides one).  That has the functions in it, looks like.  That seems like an awfully high-level library for find to depend on, though.

Tue 28 Nov 2006 12:32:03 AM UTC, comment #4: 

This fix was apparently reverted without comment in revision of configure.in:


4.2.29 also fails to build on Solaris.

Michael K. Sanders <msanders>
Wed 27 Sep 2006 01:54:03 PM UTC, comment #3: 

The same thing happens again with AIX and findutils 4.2.28

cc -qlanglvl=ansi  -g   -o find  find.o fstype.o parser.o pred.o tree.o util.o version.o ../lib/libfind.a ../gnulib/lib/libgnulib.a
ld: 0711-317 ERROR: Undefined symbol: .re_match
ld: 0711-317 ERROR: Undefined symbol: .re_set_syntax
ld: 0711-317 ERROR: Undefined symbol: .re_compile_pattern
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

4.2.27 comiles fine.

Fri 28 Jan 2005 08:04:55 AM UTC, comment #2: 

(From Martin)  Yup, I can verify that findutils 4.2.14 fixes
this problem.

Sun 23 Jan 2005 10:29:16 PM UTC, comment #1: 

I have no access to a Solaris box on which to reproduce this problem.    Hence I can't test a fix.  However, I believe that the attached patch, which I have checked into CVS, resolves this difficulty.   This fix will be included in the next release.

James Youngman <jay>
Project AdministratorIn charge of this item.
Sun 23 Jan 2005 07:31:40 PM UTC, original submission:  

The regex functionality on Solaris is not provided by libc,
but the configure test for this is incorrect, so
the compilation fails as follows

gcc  -g -O2   -o find  find.o fstype.o parser.o pred.o tree.o util.o version.o ../lib/libfind.a ../gnulib/lib/libgnulib.a 
Undefined first referenced
 symbol      in file
re_match                            pred.o
re_syntax_options                   parser.o
re_compile_pattern                  parser.o
ld: fatal: Symbol referencing errors. No output written to find

Looking at configure, it tries to autodetect
the presence of regex in libc, but this appears to
be incorrect.

configure --help should include an option
--with-included-regex, but doesn't.

configure appears to define ac_use_included_regex,
but doesn't use the result anywhere.
 $ grep ac_use_included_regex configure



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #2409:  regex-build.patch added by jay (807B - text/x-patch - Patch which should resolve the problem)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jay (Posted a comment)
  • -email is unavailable- added by msanders (Posted a comment)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2005-01-25 jay Open/ClosedOpen => Closed
        Fixed ReleaseNone => 4.2.14
    2005-01-23 jay StatusNone => Fixed
        Assigned toNone => jay
        Release4.2.12 => 4.2.13
        Attached File- => Added regex-build.patch, #2103

    Back to the top

    Powered by Savane 3.5