Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > porting Help2man
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 12th April 23:49
tellerbop
External User
 
Posts: 1
Default porting Help2man



Hi,
I need for a prog help2man, search for it but not found it.
So i try to port help2man v1.36.4
I have installed gcc 3.4.6

Configure runs ok, but with make i got error:

u:/PERL/BIN/perl.exe help2man.PL
Extracting help2man (with variable substitutions)
gcc -o hacklocaledir.so -fPIC -shared hacklocaledir.c
hacklocaledir.c:1: warning: -fPIC ignored for target (all code is
position independent)
hacklocaledir.c: In function `__open':
hacklocaledir.c:44: error: `RTLD_NEXT' undeclared (first use in this
function)
hacklocaledir.c:44: error: (Each undeclared identifier is reported
only once
hacklocaledir.c:44: error: for each function it appears in.)
make.exe: *** [hacklocaledir.so] Error 1

If i remove the -FPIC from makefile that error is gone.

But other error stays.

Any help :P


btw Just found v1.29 but be curious about this error ....
--
--
With the best regards from the Netherlands,
  Reply With Quote


  sponsored links


2 12th April 23:49
dave yeo
External User
 
Posts: 1
Default porting Help2man



Try running configure --disable-nls. hacklocaldir.c seems to be geared
to create *nix shared lib and would take some work to port to OS/2.
See http://www.opengroup.org/onlinepubs/009695399/functions/dlsym.html
for RTLD_NEXT.
Dave
ps newest is 1.36.4 available at http://ftp.gnu.org/gnu/help2man/
pps once you have help2man, copy it to help2man.cmd and add

extproc perl -S
#!f:/usr/bin/perl
eval 'exec f:/usr/bin/perl -S $0 ${1+"$@"}'
if $running_under_some_shell;

( the eval...${1+"$@"}' is one line) adjusting paths as needed. This way
it will run from cmd.exe as a normal program.
  Reply With Quote
3 12th April 23:49
dave yeo
External User
 
Posts: 1
Default porting Help2man


Sorry, just reread your post and realized that you already have it
  Reply With Quote
4 12th April 23:49
tellerbop
External User
 
Posts: 1
Default porting Help2man


Hi Dave,

Thankz for quick replay.
I build it now and got no error, however it seems not have make a
newer help2man.
It just have made a copy of the help2man that where in the package..
old help2man ³ 15.325³16-10-05³ 17:38
new help2man ³ 15.325³27-09-08³ 8:05

I did a dif on both no differents founds.

Log from the configure:
configure: loading site script u:/moztools/config.site-gcc335b4
function: not found
builtin: not found
checking for perl... u:/PERL/BIN/perl.exe
checking for a BSD-compatible install... /bin/install.exe
checking for makeinfo... U:/usr/bin/makeinfo.exe
checking for install-info... U:/usr/bin/install-info.exe
configure: creating ./config.status
config.status: creating Makefile

Log from the make:
u:/PERL/BIN/perl.exe help2man.PL
Extracting help2man (with variable substitutions)


--
With the best regards from the Netherlands,
  Reply With Quote
5 12th April 23:49
ilya zakharevich
External User
 
Posts: 1
Default porting Help2man


[A complimentary Cc of this posting was sent to
Dave Yeo


With sane enough perl (and sh) paths do not matter. And the eval
2-liner is not touched either if your shell understands `extproc' (do
not all? and if it does not, the first line would give some warnings
anyway, right?).

In short, only the `extproc' line should matter...

Hope this helps,
Ilya
  Reply With Quote
6 12th April 23:49
dave yeo
External User
 
Posts: 1
Default porting Help2man


Ok, good to know. I do have to patch texi2pod.pl in FFmpeg source with
the eval part to build do***entation otherwise the #! /usr/bin/perl -w
fails to find perl which is on a different drive though on the path.
Using your pdksh sh.exe
Dave
  Reply With Quote
7 12th April 23:49
dave yeo
External User
 
Posts: 1
Default porting Help2man


You must have had the first one left over from your first try. Looking
in the source tar ball I don't see a help2man. My build has basically
the same output as yours.
make distclean is good to run before changing configure options.
Dave
  Reply With Quote
8 12th April 23:49
ilya zakharevich
External User
 
Posts: 1
Default porting Help2man


[A complimentary Cc of this posting was sent to
Dave Yeo


I tried a file

#! /no-such/usr/bin/perl -w
print chr(ord) for split //, "Running under perl\n";

It works with

sh -c D:\tcpip\tmp\xx1.pl

but not with

perl -wle "system shift" D:\tcpip\tmp\xx1.pl
The latter behaviour is a bug (the 3rd one in 2 years ;-). >>TODO

Thanks,
Ilya
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666