Solaris AGG Compile...

Johan Van de Wauw johan.vandewauw at GMAIL.COM
Tue Oct 16 09:57:36 EDT 2007


It's been a while since I've worked with solaris, but you should try this

make install CXX=g++ C=gcc AR=gar LD=gld

(no need to edit the makefile)

gar = gnu ar -> now you are using the one from suns's compiler. Idem
for C and C++: make sure you don't mix up the gnu and the sun tools.
idem for ld and the other tools.


On 10/16/07, Nolte, Tim <Tim.Nolte at ipcswirelessinc.com> wrote:
> OK, so a standard 'make' would work, erroring on CC not being defined. I
> made the following changes to Makefile.in.SunOS:
>
>         Changed:
>                 CXX = CC
>         To:
>                 CXX = gcc
>
>         Changed:
>                 C = cc
>         To:
>                 C = gcc
>
>         Changed:
>                 LIB = CC -xar -o
>         To:
>                 LIB = gcc -xar -o
>
> Then I was able to begin running a 'make' but it dies with the
> following:
>
>         gcc: language ar not recognized
>         ...
>         gcc: language ar not recognized
>         Undefined                       first referenced
>          symbol                             in file
>         cos                                 agg_arc.o
>         sin                                 agg_arc.o
>         acos                                agg_arc.o
>         ceil                                agg_image_filters.o
>         fmod                                agg_bezier_arc.o
>         main
> /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/crt1.o
>         sqrt                                agg_bezier_arc.o
>         operator new[](unsigned int)        agg_bspline.o
>         atan2                               agg_curves.o
>         floor                               ctrl/agg_polygon_ctrl.o
>         vtable for __cxxabiv1::__si_class_type_infoctrl/agg_cbox_ctrl.o
>         operator delete[](void*)            agg_bspline.o
>         operator delete(void*)              ctrl/agg_cbox_ctrl.o
>         vtable for __cxxabiv1::__class_type_infoctrl/agg_cbox_ctrl.o
>         __gxx_personality_v0                agg_arc.o
>         __cxa_pure_virtual                  ctrl/agg_cbox_ctrl.o
>         ld: fatal: Symbol referencing errors. No output written to
> libagg.a
>         collect2: ld returned 1 exit status
>         make[1]: *** [all] Error 1
>         make[1]: Leaving directory `/usr/local/agg-2.4/src'
>         make: *** [src/libagg.a] Error 2
>
> Thanks.
>
> ----
> Timothy J Nolte - tnolte at ilpcs.com
> Associate Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS:    616-706-2438
> Fax:    616-554-6484
> Web: www.ipcswirelessinc.com
> -----Original Message-----
> From: Trent Erickson [mailto:trente at umn.edu]
> Sent: Monday, October 15, 2007 3:32 PM
> To: Nolte, Tim
> Cc: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile...
>
> More technical details would be helpful. I can offer my experience
> although it may not be applicable. I have compiled on Solaris 9 using
> the GNU make and ld. Be sure you are using GNU ld. The Sun version
> didn't work for me.
>
> -Trent
>
> Nolte, Tim wrote:
> > I'm at the end of my rope here. I'm running up against a deadline and
> I
> > can't get AGG compiled on Solaris 10 x86 for the life of me. I'm
> afraid
> > I'm going to end up having to go back to GD. I made the mistake of
> using
> > HostGIS to setup and interim mapserver while I rebuild the existing
> one
> > and decided to go with Solaris as the rest of our servers are running
> on
> > it. Anyways, if anyone has successfully compiled AGG on a Solaris box
> it
> > would help me out huge! Thanks.
> >
> > - Tim
> >
> > ----
> > Timothy J Nolte - tnolte at ilpcs.com
> > Associate Network Planning Engineer
> >
> > iPCS Wireless, Inc.
> > 4717 Broadmoor Ave, Suite G
> > Kentwood, MI 49512
> >
> > Office: 616-656-5163
> > PCS:    616-706-2438
> > Fax:    616-554-6484
> > Web: www.ipcswirelessinc.com
> >
> >
>



More information about the mapserver-users mailing list