[Date Prev][Date Next] [Chronological] [Thread] [Top]

SunOS 4.1.4 Compiling Error & GNU's regex



Greetings,

This is in reference to
http://www.openldap.com/lists/openldap-software/9905/msg00068.html

After posting a problem on compiling openldap on SunOS 4.1.4,
michael@roka.net  (Thanks Michael) wrote to install the GNU regex and to
use the -I and -L option.

I have compiled GNU regex (although it gave just the regex.o file, is this
normal?), and I gave GCC the -I and -L option.

But I still get errors, see below for output of make. Any help you would be
appreciated.

(On the side) Is there another regex library I can use besides GNU's?
Thanks ALL



gcc -g -O2 -I../../include -I../../include
-I/export/home/jnoviell/software/regex-0.12 -DHAVE_CONFIG_H
-I/export/home/jnoviell/software/regex-0.12 -target sun4 -c  test.c
/bin/sh /opt/joe/ldap/libtool --mode=link gcc -g -O2 -I../../include
-I../../include   -I/export/home/jnoviell/software/regex-0.12
-DHAVE_CONFIG_H    -version-info 1:0:0   -o ltest test.o
-L/opt/joe/ldap/libraries -lldap -llber
-L/export/home/jnoviell/software/regex-0.12 
libtool: link: warning: `-version-info' is ignored while linking programs
gcc -g -O2 -I../../include -I../../include
-I/export/home/jnoviell/software/regex-0.12 -DHAVE_CONFIG_H -o ltest test.o
-L/opt/joe/ldap/libraries -lldap -llber
-L/export/home/jnoviell/software/regex-0.12
collect2: ld returned 2 exit status
ld: Undefined symbol 
   _regerror 
   _regexec 
   _regcomp 
   _regfree 
*** Error code 1
make: Fatal error: Command failed for target `ltest'
Current working directory /opt/joe/ldap/libraries/libldap
*** Error code 1
make: Fatal error: Command failed for target `all-common'
Current working directory /opt/joe/ldap/libraries
*** Error code 1
make: Fatal error: Command failed for target `all-common'
[coyote] .../ldap {91}% cd libraries
/opt/joe/ldap/libraries




Thanks all

--------------------------------------------------------------------------
Joe Novielli  x.7703  Email: jnoviell@matrox.com
MIS Department 
Matrox Electronic Systems Inc. http://www.matrox.com 
1055 St-Régis Tel: (514) 822-6000  x. 7703
Dorval, Québec Fax: (514) 822-6262 
Canada, H9P 2T4 
--------------------------------------------------------------------------