A while back I open the following bug
  http://trac.osgeo.org/mapserver/ticket/2215
on build issues with AGG for the Linux platform, and other added to the bug and it was used to fix the issues before 5.0 was released.

I think it would be appropriate if you did the same around the Solaris build issues. If you doc the issues and workarounds it will help others and it might lead to some changes in the mapserver build process to simplify stuff. Then again these might all be AGG issues, but having a single reference doc will help everyone.

-Steve W.

Trent Erickson wrote:
The sunfreeware gcc package is compiled with --with-ld=/usr/ccs/bin/ld so it can be hard to get around it. (you can see this by running g++ -v) The sun ld version did not want to compile agg for me. I ended up renaming /usr/ccs/bin/ld to /usr/ccs/bin/ld-off I then put it back after the compile. This of course requires root access.

It is not very elegant but it worked. If anyone has any other suggestions I'd love to know how to force the proper ld with resorting to this. It just plain ignored the makefile and environment settings.

-Trent

Nolte, Tim wrote:
OK, well here's my setup. I have the following sunfreeware packages
installed:

    gcc-3.4.6-sol10-x86-local
    make-3.81-sol10-x86-local
    automake-1.10-sol10-x86-local
    libtool-1.5.24-sol10-x86-local

I've set my PATH environment to use '/usr/local/bin' before
'/usr/ccs/bin'. And my g++/gcc/make/ar/ld are all GNU when I run 'type'
on them. I did notice that gcc reports (Configured with: ../configure
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared
--enable-languages=c,c++,f77) so I'm not sure if this would be an issue.
Thanks for any other thoughts.

----
Timothy J Nolte - [EMAIL PROTECTED]
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: Johan Van de Wauw [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 16, 2007 9:58 AM
To: Nolte, Tim
Cc: [email protected]
Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile...

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 <[EMAIL PROTECTED]> 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 - [EMAIL PROTECTED]
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:[EMAIL PROTECTED]
Sent: Monday, October 15, 2007 3:32 PM
To: Nolte, Tim
Cc: [email protected]
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 - [EMAIL PROTECTED]
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



Reply via email to