[kronolith] MCAL and Solaris problem

C. M. Rahman (jr.) cmrahman@ccsi.com
Wed, 9 Jan 2002 16:31:57 -0600


Looks like I was able to get the MCAL compiled and get the PHP to install.
But when I tried to compile Apache I am getting this error. Maybe I can get
some more help ,

#
./configure --prefix=/export/apache --enable-module=so --activate-module=src
/modules/php4/libphp4.a
Configuring for Apache, Version 1.3.22
 + using installation path layout: Apache (config.layout)
 + activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
....
...
...

cd ..;
gcc  -DSOLARIS2=280 -I/usr/local/webmail/php-4.1.1 -I/usr/local/webmail/php-
4.1.1/main -I/usr/local/webmail/php-4.1.1/main -I/usr/local/webmail/php-4.1.
1/Zend -I/usr/local/webmail/php-4.1.1/Zend -I/usr/local/webmail/php-4.1.1/TS
RM -I/usr/local/webmail/php-4.1.1/TSRM -I/usr/local/webmail/php-4.1.1 -DUSE_
EXPAT -I./lib/expat-lite `./apaci`     -o helpers/dummy
lpers/dummy.c   -R/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/
2.95.3 -R/usr/local/lib -R/usr/local/webmail/imap-2001a/c-client -R/usr/loca
l/mcal -R/usr/local/mysql/lib  -L/usr/ucblib -L/usr/local/lib/gcc-lib/sparc-
sun-solaris2.8/2.95.3 -L/usr/local/lib -L/usr/local/webmail/imap-2001a/c-cli
ent -L/usr/local/mcal -L/usr/local/mysql/lib -Lmodules/php4 -L../modules/php
4 -L../../modules/php4 -lmodphp4  -lpam -lc-client  -ldl -lmysqlclient -lmca
l -lcrypt -lpam -lintl -lcrypt -lresolv -lresolv -lresolv -lm -ldl -lnsl -ls
ocket  -lsocket -lgcc -lcrypt   -lsocket -lnsl -ldl
Undefined                       first referenced
 symbol                             in file
cc_searched                         /usr/local/lib/libmcal.so
cc_vlog                             /usr/local/lib/libmcal.so
cc_login                            /usr/local/lib/libmcal.so
cc_vdlog                            /usr/local/lib/libmcal.so
ld: fatal: Symbol referencing errors. No output written to helpers/dummy
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
======== Error Output for sanity check ========
============= End of Error Report =============

 Aborting!
#



&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*
C.M. Rahman Jr.
CTO
CCS Internet
http://www.ccsi.com
13740 Research Blvd. suite o-4
Austin, TX 78750
Tel: 512-257-2274


----- Original Message -----
From: "Mike Hardy" <mhardy@h3c.com>
To: <kronolith@lists.horde.org>
Sent: Tuesday, January 08, 2002 4:37 PM
Subject: Re: [kronolith] MCAL and Solaris problem


>
> Interesting - I found something that seems to hit that pretty well:
>
> http://mail.gnu.org/pipermail/libtool/2001-January/004302.html
>
> Apparently, the "-z text" is what's messing it up. Maybe cutting and
> pasting the "collect2" line there without the "-z text"?
>
> That's the kind of trial and error I've always had to do when compiling
> bleeding-edge shared libraries on Solaris, unfortunately.
>
> -Mike
>
> On Tue, 8 Jan 2002, C. M. Rahman (jr.) wrote:
>
> > this is what I get with -v option..
> >
> > # make
> > rm -f libmcal.so
> > gcc -v -O0 -Wall -g -Imstore -Iicap    -I.  -shared -o libmcal.so mcal.o
> > datetime.o lex.ical_yy.o icalroutines.o cal_misc.o icap/icap_driver.o
> > mstore/mstore_driver.o
> > Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs
> > gcc version 2.95.3 20010315 (release)
> >
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/collect2 -V -G -dy -z
> > text -Y P,/usr/ccs/lib:/usr/lib -Qy -o libmcal.so
> > /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/crti.o
> > /usr/ccs/lib/values-Xa.o
> >
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/crtbegin.o -L/usr/local/l
> >
ib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/
> > local/lib mcal.o datetime.o lex.ical_yy.o icalroutines.o cal_misc.o
> > icap/icap_driver.o mstore/mstore_driver.o -lgcc -lgcc
> > /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/crtend.o
> > /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/crtn.o
> > ld: Software Generation Utilities - Solaris-ELF (4.0)
> > Text relocation remains                         referenced
> >     against symbol                  offset      in file
> > <unknown>                           0x22e0      mcal.o
> > <unknown>                           0x22e4      mcal.o
> >
> >
> > &*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*
> > C.M. Rahman Jr.
> > CTO
> > CCS Internet
> > http://www.ccsi.com
> > 13740 Research Blvd. suite o-4
> > Austin, TX 78750
> > Tel: 512-257-2274
> >
> >
> > ----- Original Message -----
> > From: "Mike Hardy" <mhardy@h3c.com>
> > To: <kronolith@lists.horde.org>
> > Sent: Tuesday, January 08, 2002 3:41 PM
> > Subject: Re: [kronolith] MCAL and Solaris problem
> >
> >
> > >
> > > On Tue, 8 Jan 2002, C. M. Rahman (jr.) wrote:
> > >
> > > > I am on Sun Solaris 2.8 and getting this error everytime I try to
> > compile
> > > > MCAL. Can somebody help on this issue? I tryed on Solaris 2.7 as
well.
> > but
> > > > no luck
> > >
> > > Solaris...
> > >
> > > > ld: fatal: relocations remain against allocatable but non-writable
> > sections
> > > > collect2: ld returned 1 exit status
> > > > make: *** [libmcal.so] Error 1
> > >
> > > ...with relocation linkage problems
> > >
> > > The only thing I remember about building .so's on Solaris was that it
was
> > > a PITA (pain in the butt)
> > >
> > > You might try altering the makefile so that gcc uses a "-v" argument,
it
> > > will then print out the command line it calls the linker with. Take
that
> > > command line and start changing options on it until it works (I'm
serious
> > > - this worked for me)
> > >
> > > I had to xterms up with one used for trying new link-lines, and the
other
> > > holding the ld manpage on Solaris playing with its dynamic-linking
> > > arguments, and got it right in around 10 minutes. It wasn't fun, but
it
> > > did work.
> > >
> > > Of course, there's only so many arguments to play with, if none of
them
> > > work, its a deeper problem...
> > >
> > > Googling for the error message before spending any time is also a good
way
> > > to find the linker line (or whatever problem it is if its not linkage)
> > >
> > > Hope this helps somewhat-
> > > -Mike
> > >
> > >
> > > --
> > > Kronolith mailing list: http://horde.org/kronolith/
> > > Frequently Asked Questions: http://horde.org/faq/
> > > To unsubscribe, mail: kronolith-unsubscribe@lists.horde.org
> > >
> >
> >
> >
>
>
> --
> Kronolith mailing list: http://horde.org/kronolith/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: kronolith-unsubscribe@lists.horde.org