Login | Register
My pages Projects Community openCollabNet

Discussions > dev > FTBFS Solaris 10

fsvs
Discussion topic

Hide all messages in topic

All messages in topic

Re: FTBFS Solaris 10

Author pmarek
Full name P.Marek
Date 2009-09-25 09:21:46 PDT
Message Hello Mark!

On Friday 25 September 2009 Petersen, Mark wrote:
> I do have the right headers, but I also have the Sun libiconv and
> Solaris headers could have been interfering.
>
> > Is libiconv in the linker command line, ie. -liconv? Maybe that helps.
>
> It wasn't, and I believe this fixed my problem. Added -liconv to
> EXTRALIBS in src/Makefile, was there a configure flag I should have
> used?
I don't think so.

> > There are some options that can be used for diagnosing on the linker
> > command line ...
> > --trace
> > --print-map
> > --trace-symbol libiconv_open
>
> Where would I have used these, added to the Link command line in
> src/Makefile?
Yes.

But I read your answer that it already works?


> So if anyone else unfamiliar with a Solaris build environment is trying
> to do this here's some help.
...
> Now I'll start trying to use it. Hopefully I don't run into any issues.
Thank you for that description!

Just ask if there's any problem.


Regards,

Phil

--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

RE: FTBFS Solaris 10

Author "Petersen, Mark" <MPetersen at gs1us dot org>
Full name "Petersen, Mark" <MPetersen at gs1us dot org>
Date 2009-09-25 07:43:50 PDT
Message > Do you have the matching header files?
> Is it possible that the .h are from 1.9.2, but your libiconv is
already
> 1.11 (or
> vice-versa?)

I do have the right headers, but I also have the Sun libiconv and
Solaris headers could have been interfering.
 
> Is libiconv in the linker command line, ie. -liconv? Maybe that helps.

It wasn't, and I believe this fixed my problem. Added -liconv to
EXTRALIBS in src/Makefile, was there a configure flag I should have
used?

> There are some options that can be used for diagnosing on the linker
> command line ...
> --trace
> --print-map
> --trace-symbol libiconv_open

Where would I have used these, added to the Link command line in
src/Makefile?



So if anyone else unfamiliar with a Solaris build environment is trying
to do this here's some help.
I used Solaris 10 u07 with sunfreeware svn-1.6.5 and dependencies, along
with sunfreeware GNU utils including gcc.

LD_LIBRARY_PATH=/usr​/local/lib:/usr/loca​l/apache2/lib
NOTE: not including /usr/local/apache2/lib caused some of my previous
problems long ago with a conftest failing during configure.

PATH=/usr/local/bin:​/usr/local/sbin:/usr​/ccs/bin:/bin:/usr/b​in:/usr/sbin
:/sbin

CC=/usr/local/bin/gcc

./configure --with-aprinc=/usr/l​ocal/apache2/include​
--with-aprlib=/usr/l​ocal/apache2/lib --with-svnlib=/usr/local/lib
--with-svninc=/usr/l​ocal/include --enable-dev-fake

Add -liconv to EXTRALIBS in src/Makefile

make

Now I'll start trying to use it. Hopefully I don't run into any issues.

Thanks,
Mark

RE: FTBFS Solaris 10

Author pmarek
Full name P.Marek
Date 2009-09-24 23:03:53 PDT
Message Hello Mark!

> The changes to the 1.2.x branch helped with the fmemopen() error,
Fine!

> still have the libiconv errors.
>
> Link fsvs
> Undefined first referenced
> symbol in file
> libiconv_open helper.o (symbol belongs to
> implicit dependency /usr/local/lib/libiconv.so.2)
> libiconv helper.o (symbol belongs to
> implicit dependency /usr/local/lib/libiconv.so.2)

Hmmm ... your dump shows this functions:
00029f54 g F .text 000008ac libiconv_open
0002a800 g F .text 000000a8 libiconv

> I upgrade from libiconv from 1.9.2 to 1.11 which I believe svn was
> compiled against (I'm using the sunfreeware package) but that didn't
> resolve this.
Do you have the matching header files?
Is it possible that the .h are from 1.9.2, but your libiconv is already 1.11 (or
vice-versa?)

Is libiconv in the linker command line, ie. -liconv? Maybe that helps.

There are some options that can be used for diagnosing on the linker command line ...
  --trace
  --print-map
  --trace-symbol libiconv_open


Regards,

Phil


--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

RE: FTBFS Solaris 10

Author "Petersen, Mark" <MPetersen at gs1us dot org>
Full name "Petersen, Mark" <MPetersen at gs1us dot org>
Date 2009-09-24 08:11:18 PDT
Message The changes to the 1.2.x branch helped with the fmemopen() error, still
have the libiconv errors.

     Link fsvs
Undefined first referenced
 symbol in file
libiconv_open helper.o (symbol belongs to
implicit dependency /usr/local/lib/libiconv.so.2)
libiconv helper.o (symbol belongs to
implicit dependency /usr/local/lib/libiconv.so.2)


I upgrade from libiconv from 1.9.2 to 1.11 which I believe svn was
compiled against (I'm using the sunfreeware package) but that didn't
resolve this.

mark

RE: FTBFS Solaris 10

Author "Petersen, Mark" <MPetersen at gs1us dot org>
Full name "Petersen, Mark" <MPetersen at gs1us dot org>
Date 2009-09-24 07:44:53 PDT
Message I take it back, removing the debug buffer doesn't seem like something I
can do without some direction and I see you committed something for it.
I'll give it a try...

mark

> -----Original Message-----
> From: Philipp Marek [mailto:philipp at marek dot priv dot at]
> Sent: Thursday, September 24, 2009 1:41 AM
> To: Petersen, Mark
> Cc: dev
> Subject: Re: FTBFS Solaris 10
>
> Hello Mark!
>
> > So I'm trying to do this again. I got the configure to run this
time
> > with just a couple WARNINGS.
> ...
> > configure: WARNING:
> > * MAJOR(), MINOR() and MAKEDEV() definitions not found.
> ...
> > * If you *really* need to use device compares, and have *no* other
> > way,
> > * you could try using the --enable-dev-fake option on ./configure.
> > --
> >
> > I get these even when I use the --enable-dev-fake option.
> I'll take a look at that, but I hope that you can ignore this.
>
>
> > Then I run into some path/LD_LIBRARY issues that I think I resolved.
> > Make runs for awhile (with a lot of warnings) and then blows up:
> ...
> > Link fsvs
> > Undefined first referenced
> > symbol in file
> > fmemopen fsvs.o
> fmemopen() is a GNU extension ... if there's no glibc on Solaris you
> might have to kill the debug_buffer option.
>
> I'll put the check into configure in the fsvs-1.2.x branch.
> Please look there from time to time ;-)
>
> > libiconv_open helper.o (symbol belongs to
> > implicit dependency /usr/local/lib/libiconv.so.2)
> > libiconv helper.o (symbol belongs to
> > implicit dependency /usr/local/lib/libiconv.so.2)
> These are the conversion functions - locale to UTF8.
> The libraries are found, I think ...
> What does
> objdump -t /usr/local/lib/libiconv.so.2
> give?
>
>
> Regards,
>
> Phil
>
>
> --
> Versioning your /etc, /home or even your whole installation?
> Try fsvs (fsvs.tigris.org)!

Re: FTBFS Solaris 10

Author pmarek
Full name P.Marek
Date 2009-09-23 23:41:21 PDT
Message Hello Mark!

> So I'm trying to do this again. I got the configure to run this time
> with just a couple WARNINGS.
...
> configure: WARNING:
> * MAJOR(), MINOR() and MAKEDEV() definitions not found.
...
> * If you *really* need to use device compares, and have *no* other
> way,
> * you could try using the --enable-dev-fake option on ./configure.
> --
>
> I get these even when I use the --enable-dev-fake option.
I'll take a look at that, but I hope that you can ignore this.


> Then I run into some path/LD_LIBRARY issues that I think I resolved.
> Make runs for awhile (with a lot of warnings) and then blows up:
...
> Link fsvs
> Undefined first referenced
> symbol in file
> fmemopen fsvs.o
fmemopen() is a GNU extension ... if there's no glibc on Solaris you
might have to kill the debug_buffer option.

I'll put the check into configure in the fsvs-1.2.x branch.
Please look there from time to time ;-)

> libiconv_open helper.o (symbol belongs to
> implicit dependency /usr/local/lib/libiconv.so.2)
> libiconv helper.o (symbol belongs to
> implicit dependency /usr/local/lib/libiconv.so.2)
These are the conversion functions - locale to UTF8.
The libraries are found, I think ...
What does
    objdump -t /usr/local/lib/libiconv.so.2
give?


Regards,

Phil


--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

FTBFS Solaris 10

Author "Petersen, Mark" <MPetersen at gs1us dot org>
Full name "Petersen, Mark" <MPetersen at gs1us dot org>
Date 2009-09-23 12:40:35 PDT
Message So I'm trying to do this again. I got the configure to run this time
with just a couple WARNINGS.

--
config.status: WARNING: 'src/Makefile.in' seems to ignore the
--datarootdir setting
config.status: creating tests/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
configure: WARNING:
  * MAJOR(), MINOR() and MAKEDEV() definitions not found.
  * Fake a definition, but that could make problems for ignore patterns
  * and commits/updates of device nodes, so these will be disabled.
  * Please contact dev at fsvs dot tigris dot org for help, or, if you know your
  * systems' way, to report the correct header name.
  *
  * If you *really* need to use device compares, and have *no* other
way,
  * you could try using the --enable-dev-fake option on ./configure.
--

I get these even when I use the --enable-dev-fake option.

Then I run into some path/LD_LIBRARY issues that I think I resolved.
Make runs for awhile (with a lot of warnings) and then blows up:

waa.c: In function `waa__find_common_base2':
waa.c:2299: warning: 'path2copy' might be used uninitialized in this
function
waa.c:2299: warning: 'basepath2copy' might be used uninitialized in this
function
waa.c:2304: warning: 'fnlen' might be used uninitialized in this
function
     CC warnings.c
     Link fsvs
Undefined first referenced
 symbol in file
fmemopen fsvs.o
libiconv_open helper.o (symbol belongs to
implicit dependency /usr/local/lib/libiconv.so.2)
libiconv helper.o (symbol belongs to
implicit dependency /usr/local/lib/libiconv.so.2)
ld: fatal: Symbol referencing errors. No output written to fsvs
collect2: ld returned 1 exit status
make[1]: *** [fsvs] Error 1
make: *** [default-target] Error 2


I think is Solaris related, but I'm hoping you can point me in the right
direction to overcome this or perhaps just get more details about what
went wrong. Hopefully I can get fsvs running on Solaris soon...

Thanks,
Mark
Messages per page: