HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

RH6 RPM building



I am/was trying to build a Redhat 6.0 RPM of the latest hylafax beta rjc10.
To my knowledge my system is not missing anything needed for the compile and
the system has been used successfully build older hylafax RPMs.

I think there are still a few problems with rjc10 (to be expected it is beta
after all). I'm missing the next step here though...

The RPM build expects (and the build seems to require) two .so librarys one
of which is libfaxutil.so.

With the addition of this to %prep:
tcsh -c 'if ! -e util/Makefile.LINUXdso cp util/Makefile.IRIXdso util/Makefile.LINUXdso'
tcsh -c 'if ! -e faxd/Makefile.LINUXdso cp faxd/Makefile.IRIXdso faxd/Makefile.LINUXdso'

and this after configure in %build:
#socklen_t seems to be an unsigned int now.
PORTTMPFILE=`mktemp $0.XXXXXX` || exit 1
fgrep -v 'int socklen_t' port.h > $PORTTMPFILE
mv $PORTTMPFILE port.h

I can get most of the way through the build but now I'm getting this:
/usr/bin/g++  -o libfaxutil.so Array.o BoolArray.o Dictionary.o Obj.o PageSize.o RegEx.o R
egExArray.o RegExDict.o StackBuffer.o Str.o StrArray.o StrDict.o Dispatcher.o IOHandler.o 
Sys.o Syslog.o Timeout.o Fatal.o AtSyntax.o DialRules.o FmtTime.o TimeOfDay.o FaxDB.o Text
Fmt.o Class2Params.o FaxClient.o FaxConfig.o FaxRecvInfo.o FaxSendInfo.o JobExt.o ModemExt
.o SendFaxJob.o SendFaxClient.o TypeRules.o Transport.o InetTransport.o UnixTransport.o SN
PPClient.o SNPPJob.o cvtfacility.o fxassert.o \
     -ltiff  -L../zlib -lz  -L../regex -lregex \
    -lcrypt -lutil -lm 
/usr/lib/crt1.o(.text+0x18): undefined reference to  'main'
collect2: ld returned 1 exit status
make[3]: *** [libfaxutil.so] Error 1

Ideas anyone?

Is someone else already working on this?

I got a static build of rjc10 to compile at one point, I would rather have
the library working though.. They did work in an older version...

Regards,
Rob

--
----------------"Linux the choice of a GNU Generation!"-----------------
Robert Hardy                                          C.E.O. Webcon Inc.
rhardy@webcon.net      PGP Key available by finger        (613) 276-6206




Project hosted by iFAX Solutions